mirror of
https://github.com/nlohmann/json
synced 2025-01-12 10:20:14 +00:00
+ error fix
This commit is contained in:
parent
0720323ed7
commit
1c10efb7be
@ -151,8 +151,8 @@ TEST_CASE("array")
|
|||||||
CHECK_THROWS_AS(nonarray += 2, std::runtime_error);
|
CHECK_THROWS_AS(nonarray += 2, std::runtime_error);
|
||||||
|
|
||||||
{
|
{
|
||||||
JSON nonarray2 = JSON(nullptr);
|
JSON nonarray2 = JSON(1);
|
||||||
JSON nonarray3 = JSON(nullptr);
|
JSON nonarray3 = JSON(2);
|
||||||
CHECK_THROWS_AS(nonarray2.push_back(nonarray3), std::runtime_error);
|
CHECK_THROWS_AS(nonarray2.push_back(nonarray3), std::runtime_error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user