mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Tests: Added ::skipWS tests
This commit is contained in:
parent
b382bcba1e
commit
c94fc0b70d
1 changed files with 10 additions and 2 deletions
|
@ -31,8 +31,16 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int main (int, char**)
|
||||
{
|
||||
UnitTest t (1);
|
||||
t.skip ("No tests");
|
||||
UnitTest t (4);
|
||||
|
||||
Pig p0 (" one");
|
||||
t.ok (p0.skipWS (), "' one' -> 'one' true");
|
||||
t.is (p0.dump (), "≪ one≫ l4 m1 c1", "dump");
|
||||
t.diag (p0.dump ());
|
||||
|
||||
t.notok (p0.skipWS (), "'one' -> 'one' false");
|
||||
t.is (p0.dump (), "≪ one≫ l4 m1 c1", "dump");
|
||||
t.diag (p0.dump ());
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue