From 4d23c49601c120881f88be795fc44f5dccd65ec9 Mon Sep 17 00:00:00 2001 From: Niels Date: Wed, 11 Feb 2015 13:25:04 +0100 Subject: [PATCH] another test case --- test/unit.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/unit.cpp b/test/unit.cpp index cb6919ee..fbbc58ea 100644 --- a/test/unit.cpp +++ b/test/unit.cpp @@ -3912,6 +3912,11 @@ TEST_CASE("deserialization") ss >> j; CHECK(j == json({"foo", 1, 2, 3, false, {{"one", 1}}})); } + + SECTION("user-defined string literal") + { + CHECK("[\"foo\",1,2,3,false,{\"one\":1}]"_json == json({"foo", 1, 2, 3, false, {{"one", 1}}})); + } }