From 4c55ada0f7a90a802cb443385e34f26021ff83db Mon Sep 17 00:00:00 2001 From: Niels Date: Sun, 12 Apr 2015 18:33:38 +0200 Subject: [PATCH] another test case --- test/unit.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/test/unit.cpp b/test/unit.cpp index 66d5de23..d6b2b420 100644 --- a/test/unit.cpp +++ b/test/unit.cpp @@ -7346,9 +7346,16 @@ TEST_CASE("parser class") // exotic test cases for full coverage { - std::stringstream ss; - ss << "\"\\u000\n1\""; - CHECK(json::parser(ss).parse().get() == "\x01"); + { + std::stringstream ss; + ss << "\"\\u000\n1\""; + CHECK(json::parser(ss).parse().get() == "\x01"); + } + { + std::stringstream ss; + ss << "\"\\u00\n01\""; + CHECK(json::parser(ss).parse().get() == "\x01"); + } } CHECK(json::parser("\"\\u0001\"").parse().get() == "\x01");