1
0
mirror of https://github.com/nlohmann/json synced 2024-11-30 07:30:06 +00:00

fixed test case coverage

This commit is contained in:
Niels 2015-02-15 11:53:24 +01:00
parent bb558d8e6f
commit b21bf95620

View File

@ -5514,6 +5514,12 @@ TEST_CASE("lexer class")
}
}
}
SECTION("to_unicode")
{
CHECK(json::lexer::to_unicode<char>(0x1F4A9) == "💩");
CHECK_THROWS_AS(json::lexer::to_unicode<char>(0x110000), std::out_of_range);
}
}
TEST_CASE("parser class")