minor changes

This commit is contained in:
Niels 2014-12-29 19:54:31 +01:00
parent 0b8dda1e0c
commit 15a9d3cff6
3 changed files with 13 additions and 11 deletions

View file

@ -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);
}
}