mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Tests: Added test for quoted single-char operators
This commit is contained in:
parent
12fbf35349
commit
ef9f74a6a0
1 changed files with 7 additions and 1 deletions
|
@ -31,7 +31,7 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int main (int, char**)
|
||||
{
|
||||
UnitTest t (38);
|
||||
UnitTest t (39);
|
||||
|
||||
// bool is_started () const;
|
||||
// bool is_ended () const;
|
||||
|
@ -167,6 +167,12 @@ int main (int, char**)
|
|||
t.ok (i20.hasTag ("foo"), "hasTag positive");
|
||||
t.notok (i20.hasTag ("bar"), "hasTag negative");
|
||||
|
||||
Interval i21;
|
||||
i21.tag ("one-two");
|
||||
i21.tag ("three");
|
||||
t.is (i21.json (), "{\"tags\":[\"one-two\",\"three\"]}",
|
||||
"JSON '{\"tags\":[\"one-two\",\"three\"]}'");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue