mirror of
https://github.com/nlohmann/json.git
synced 2026-10-06 14:40:32 +00:00
minor changes
This commit is contained in:
1 parent
0b8dda1e0c
commit
15a9d3cff6
3 files changed
+13
-11
No files matched your search
@@ -281,6 +281,12 @@ TEST_CASE("array")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// edge case: This should be an array with two elements which are in
|
||||
// turn arrays with two strings. However, this is treated like the
|
||||
// initializer list of an object.
|
||||
JSON j_should_be_an_array = { {"foo", "bar"}, {"baz", "bat"} };
|
||||
CHECK(j_should_be_an_array.type() == JSON::value_type::object);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user