From f42848fae9221e86464ab2295011ae5ead4bfbf0 Mon Sep 17 00:00:00 2001 From: Florian Albrechtskirchinger Date: Sun, 3 Apr 2022 19:26:04 +0200 Subject: [PATCH] Fix regression test for 2958 --- test/src/unit-regression2.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/src/unit-regression2.cpp b/test/src/unit-regression2.cpp index b8cc5107b5..bb668c5d9c 100644 --- a/test/src/unit-regression2.cpp +++ b/test/src/unit-regression2.cpp @@ -715,7 +715,6 @@ TEST_CASE("regression tests 2") { std::string p = "/root"; - // matching types json test1; test1[json::json_pointer(p)] = json::object(); CHECK(test1.dump() == "{\"root\":{}}"); @@ -724,10 +723,10 @@ TEST_CASE("regression tests 2") test2[ordered_json::json_pointer(p)] = json::object(); CHECK(test2.dump() == "{\"root\":{}}"); - // mixed type - the JSON Pointer is implicitly converted into a string "/root" + // json::json_pointer and ordered_json::json_pointer are the same type; behave as above ordered_json test3; test3[json::json_pointer(p)] = json::object(); - CHECK(test3.dump() == "{\"/root\":{}}"); + CHECK(test3.dump() == "{\"root\":{}}"); } SECTION("issue #2982 - to_{binary format} does not provide a mechanism for specifying a custom allocator for the returned type")