From 9f9d293bad3792cb7120901b0d5ea7e93fc09b66 Mon Sep 17 00:00:00 2001 From: Niels Date: Wed, 6 May 2015 21:32:41 +0200 Subject: [PATCH] valgrind still makes problems --- test/error/fail06.json | 1 + test/error/fail25.json | 1 + test/error/fail27.json | 2 ++ test/error/fail28.json | 2 ++ test/unit.cpp | 2 -- 5 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 test/error/fail06.json create mode 100644 test/error/fail25.json create mode 100644 test/error/fail27.json create mode 100644 test/error/fail28.json diff --git a/test/error/fail06.json b/test/error/fail06.json new file mode 100644 index 0000000000..ed91580e1b --- /dev/null +++ b/test/error/fail06.json @@ -0,0 +1 @@ +[ , "<-- missing value"] \ No newline at end of file diff --git a/test/error/fail25.json b/test/error/fail25.json new file mode 100644 index 0000000000..8b7ad23e01 --- /dev/null +++ b/test/error/fail25.json @@ -0,0 +1 @@ +[" tab character in string "] \ No newline at end of file diff --git a/test/error/fail27.json b/test/error/fail27.json new file mode 100644 index 0000000000..6b01a2ca4a --- /dev/null +++ b/test/error/fail27.json @@ -0,0 +1,2 @@ +["line +break"] \ No newline at end of file diff --git a/test/error/fail28.json b/test/error/fail28.json new file mode 100644 index 0000000000..621a0101c6 --- /dev/null +++ b/test/error/fail28.json @@ -0,0 +1,2 @@ +["line\ +break"] \ No newline at end of file diff --git a/test/unit.cpp b/test/unit.cpp index 7644c90419..236e1f93d0 100644 --- a/test/unit.cpp +++ b/test/unit.cpp @@ -8456,13 +8456,11 @@ TEST_CASE("regression tests") SECTION("NAN value") { CHECK(json(NAN) == json()); - CHECK(json(static_cast(NAN)) == json()); } SECTION("infinity") { CHECK(json(INFINITY) == json()); - CHECK(json(static_cast(INFINITY)) == json()); } } }