mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Tests: Added ::cursor
This commit is contained in:
parent
c8dd54986e
commit
09f23afc38
1 changed files with 2 additions and 1 deletions
|
@ -31,7 +31,7 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int main (int, char**)
|
||||
{
|
||||
UnitTest t (64);
|
||||
UnitTest t (65);
|
||||
|
||||
// Pig::skipN
|
||||
Pig p0 ("12345");
|
||||
|
@ -143,6 +143,7 @@ int main (int, char**)
|
|||
t.is ((int)p13.save (), 0, "save '123' --> 0");
|
||||
t.ok (p13.skipN (2), "skipN=2 '123' --> true");
|
||||
t.is (p13.dump (), "≪123≫ l3 c2", "dump: " + p13.dump ());
|
||||
t.is ((int)p13.cursor (), 2, "cursor '123' --> 2");
|
||||
t.is ((int)p13.restore (), 0, "restore '123' --> 0");
|
||||
t.is (p13.dump (), "≪123≫ l3 c0", "dump: " + p13.dump ());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue