From 8d104e6fe3f2212e165b85ec1a4f9e269406e27e Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Wed, 28 Feb 2018 22:40:48 +0100 Subject: [PATCH] :green_heart: fixed test case --- test/src/unit-readme.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/src/unit-readme.cpp b/test/src/unit-readme.cpp index 05f356a8..45d43879 100644 --- a/test/src/unit-readme.cpp +++ b/test/src/unit-readme.cpp @@ -152,6 +152,10 @@ TEST_CASE("README", "[hide]") j.push_back(1); j.push_back(true); + // comparison + bool x = (j == "[\"foo\", 1, true]"_json); // true + CHECK(x == true); + // iterate the array for (json::iterator it = j.begin(); it != j.end(); ++it) { @@ -176,10 +180,6 @@ TEST_CASE("README", "[hide]") j.type(); // json::value_t::array j.clear(); // the array is empty again - // comparison - bool x = (j == "[\"foo\", 1, true]"_json); // true - CHECK(x == true); - // create an object json o; o["foo"] = 23;