From b21bf95620128f3e77286f1208fbc1f2f579ff8b Mon Sep 17 00:00:00 2001 From: Niels Date: Sun, 15 Feb 2015 11:53:24 +0100 Subject: [PATCH] fixed test case coverage --- test/unit.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/unit.cpp b/test/unit.cpp index 86d903fe7..4dd4edc0a 100644 --- a/test/unit.cpp +++ b/test/unit.cpp @@ -5514,6 +5514,12 @@ TEST_CASE("lexer class") } } } + + SECTION("to_unicode") + { + CHECK(json::lexer::to_unicode(0x1F4A9) == "💩"); + CHECK_THROWS_AS(json::lexer::to_unicode(0x110000), std::out_of_range); + } } TEST_CASE("parser class") -- GitLab