fixed a bug that was found in the discussion of #274
This commit is contained in:
1 parent
51a3829680
commit
ddfe86cc49
3 files changed
+10
-2
No files matched your search
@@ -10359,6 +10359,14 @@ TEST_CASE("parser class")
|
||||
CHECK(j_empty_array == json());
|
||||
}
|
||||
}
|
||||
|
||||
SECTION("copy constructor")
|
||||
{
|
||||
json::string_t* s = new json::string_t("[1,2,3,4]");
|
||||
json::parser p(*s);
|
||||
delete s;
|
||||
CHECK(p.parse() == json({1, 2, 3, 4}));
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("README", "[hide]")
|
||||
|
||||
Reference in new issue
Block a user