Tests: Added test for quoted single-char operators

This commit is contained in:
Paul Beckingham 2016-05-21 16:45:12 -05:00
parent 12fbf35349
commit ef9f74a6a0

View file

@ -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;
}