aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unittest.cpp4
1 files changed, 4 insertions, 0 deletions
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<int>{1,2,3};
+ ASSERT_EQUAL(R"({"scores":[1,2,3]})", json::dump(y));
+
}
TEST(template_basic)