From ef9f74a6a07924a83371bd1df949cfe27fcf39d7 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 21 May 2016 16:45:12 -0500 Subject: [PATCH] Tests: Added test for quoted single-char operators --- test/interval.t.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/interval.t.cpp b/test/interval.t.cpp index b719a411..0196a88f 100644 --- a/test/interval.t.cpp +++ b/test/interval.t.cpp @@ -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; }