From 3fc1424e6260c96f3ed255714ba29a56b6439299 Mon Sep 17 00:00:00 2001 From: ipknHama Date: Thu, 8 Jan 2015 08:20:38 +0900 Subject: fix issue #39, bug at assigning vector to json wvalue --- tests/unittest.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/unittest.cpp b/tests/unittest.cpp index 57a4324..3a48f20 100644 --- a/tests/unittest.cpp +++ b/tests/unittest.cpp @@ -539,6 +539,10 @@ TEST(json_write) y["scores"]["a"]["b"]["c"] = nullptr; ASSERT_EQUAL(R"({"scores":{"a":{"b":{"c":null}}}})", json::dump(y)); + + y["scores"] = std::vector{1,2,3}; + ASSERT_EQUAL(R"({"scores":[1,2,3]})", json::dump(y)); + } TEST(template_basic) -- cgit v1.2.3-54-g00ecf