Commit 7afabc2b authored by Niels's avatar Niels

another test case

parent ee45bca4
......@@ -171,6 +171,7 @@ TEST_CASE("array")
json nonarray3 = json(2);
json empty3 = json();
CHECK_THROWS_AS(nonarray2.push_back(nonarray3), std::runtime_error);
CHECK_THROWS_AS(nonarray2.push_back(3), std::runtime_error);
CHECK_NOTHROW(empty3.push_back(nonarray3));
CHECK(empty3.type() == json::value_type::array);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment