mirror of
https://github.com/nlohmann/json.git
synced 2026-08-21 16:43:17 +00:00
updated README
This commit is contained in:
@@ -408,6 +408,11 @@ TEST_CASE("array")
|
||||
CHECK(j_vec.type() == json::value_t::array);
|
||||
CHECK(j_vec.size() == 4);
|
||||
|
||||
std::vector<std::vector<int>> cr_vector {{1, 2}, {3}, {4, 5, 6}};
|
||||
json j_vecr(cr_vector);
|
||||
CHECK(j_vecr.type() == json::value_t::array);
|
||||
CHECK(j_vecr.size() == 3);
|
||||
|
||||
std::set<std::string> c_set {"one", "two", "three", "four", "one"};
|
||||
json j_set(c_set);
|
||||
CHECK(j_set.type() == json::value_t::array);
|
||||
|
||||
Reference in New Issue
Block a user