From 104c4b5286cec3b5034c506681ffaf3f3e59bf9b Mon Sep 17 00:00:00 2001 From: Niels Date: Sun, 31 Jan 2016 15:04:38 +0100 Subject: [PATCH] improve code coverage --- ChangeLog.md | 2 ++ test/unit.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ChangeLog.md b/ChangeLog.md index d0bbc0b8..bb325598 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -5,10 +5,12 @@ All notable changes to this project will be documented in this file. This projec [Full Changelog](https://github.com/nlohmann/json/compare/v1.1.0...HEAD) +- Provide a FAQ [\#163](https://github.com/nlohmann/json/issues/163) - Issue \#178 - Extending support to full uint64\_t/int64\_t range and unsigned type \(updated\) [\#193](https://github.com/nlohmann/json/pull/193) ([twelsby](https://github.com/twelsby)) - Small bugs in json.hpp \(get\_number\) and unit.cpp \(non-standard integer type test\) [\#199](https://github.com/nlohmann/json/issues/199) - GCC/clang floating point parsing bug in strtod\(\) [\#195](https://github.com/nlohmann/json/issues/195) +- Bugs in miloyip/nativejson-benchmark: roundtrips [\#187](https://github.com/nlohmann/json/issues/187) - Floating point exceptions [\#181](https://github.com/nlohmann/json/issues/181) - Implicit assignment to std::string fails [\#144](https://github.com/nlohmann/json/issues/144) - Issue \#195 - update Travis to Trusty due to gcc/clang strtod\(\) bug [\#196](https://github.com/nlohmann/json/pull/196) ([twelsby](https://github.com/twelsby)) diff --git a/test/unit.cpp b/test/unit.cpp index efb8adae..1c3957a4 100644 --- a/test/unit.cpp +++ b/test/unit.cpp @@ -9566,6 +9566,8 @@ TEST_CASE("parser class") // error: backspace in string CHECK_THROWS_AS(json::parser("\"\b\"").parse(), std::invalid_argument); CHECK_THROWS_WITH(json::parser("\"\b\"").parse(), "parse error - unexpected '\"'"); + // improve code coverage + CHECK_THROWS_AS(json::parser("\uFF01").parse(), std::invalid_argument); } SECTION("escaped")