From 2b825760b548381acb66c290ee768fcd0acd71b5 Mon Sep 17 00:00:00 2001 From: Niels Date: Sun, 3 May 2015 21:37:14 +0200 Subject: [PATCH] removed failing test case --- test/unit.cpp | 52 --------------------------------------------------- 1 file changed, 52 deletions(-) diff --git a/test/unit.cpp b/test/unit.cpp index 9a8fc1c4..dbde58be 100644 --- a/test/unit.cpp +++ b/test/unit.cpp @@ -7800,58 +7800,6 @@ TEST_CASE("parser class") CHECK (j_array.is_discarded()); } } - - SECTION("second closing event") - { - bool second = false; - json j_object = json::parse(s_object, [&second](int, json::parse_event_t e, const json&) - { - if (e == json::parse_event_t::object_end) - { - if (second) - { - assert(false); - return false; - } - else - { - second = true; - return true; - } - } - else - { - return true; - } - }); - - CHECK (j_object.is_discarded()); - CHECK(second); - - second = false; - json j_array = json::parse(s_array, [&second](int, json::parse_event_t e, const json&) - { - if (e == json::parse_event_t::array_end) - { - if (second) - { - return false; - } - else - { - second = true; - return true; - } - } - else - { - return true; - } - }); - - CHECK (j_array.is_discarded()); - CHECK(second); - } } } }