aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoripknHama <ipknhama@gmail.com>2015-01-08 08:20:38 +0900
committeripknHama <ipknhama@gmail.com>2015-01-08 08:22:06 +0900
commit3fc1424e6260c96f3ed255714ba29a56b6439299 (patch)
tree438590a8422004d24014a223653c952041f371e2 /tests
parent345174564afb6ac44ac9eb11367e974c040965b4 (diff)
downloadcrow-3fc1424e6260c96f3ed255714ba29a56b6439299.tar.gz
crow-3fc1424e6260c96f3ed255714ba29a56b6439299.zip
fix issue #39, bug at assigning vector to json wvalue
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)