From eca4b8785c94b977b532715e59c4ef387fcb10ac Mon Sep 17 00:00:00 2001 From: chenguoping Date: Tue, 2 Jun 2020 15:44:26 +0800 Subject: [PATCH] fix test case in PR#1006 --- test/src/unit-alt-string.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/src/unit-alt-string.cpp b/test/src/unit-alt-string.cpp index 52a8e442..c8317b4d 100644 --- a/test/src/unit-alt-string.cpp +++ b/test/src/unit-alt-string.cpp @@ -225,9 +225,9 @@ TEST_CASE("alternative string type") { alt_json doc; - doc["list"] = { 1, 0, 2 }; + doc["object"] = { {"currency", "USD"}, {"value", 42.99} }; alt_string dump = doc.dump(); - CHECK(dump == R"({"list":[1,0,2]})"); + CHECK(dump == R"({"object":{"currency":"USD","value":42.99}})"); } }