mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Tests: Added ::peek
This commit is contained in:
parent
ad8ee168e5
commit
4d70105f77
1 changed files with 6 additions and 1 deletions
|
@ -31,7 +31,7 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int main (int, char**)
|
||||
{
|
||||
UnitTest t (55);
|
||||
UnitTest t (57);
|
||||
|
||||
// Pig::skipN
|
||||
Pig p0 ("12345");
|
||||
|
@ -150,6 +150,11 @@ int main (int, char**)
|
|||
t.is (p11.dump (), "≪123≫ l3 c3", "dump");
|
||||
t.diag (p11.dump ());
|
||||
|
||||
// Pig::peek
|
||||
Pig p12 ("123");
|
||||
t.is (p12.peek (), '1', "peek '123' --> '1'");
|
||||
t.is (p12.dump (), "≪123≫ l3 c0", "dump");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue