Add test for an empty string not being null
This commit is contained in:
parent
1025f76df1
commit
f9ff72dee7
@ -171,6 +171,11 @@ TEST(LoadNodeTest, ResetNode) {
|
||||
EXPECT_EQ(node, other);
|
||||
}
|
||||
|
||||
TEST(LoadNodeTest, EmptyString) {
|
||||
Node node = Load("\"\"");
|
||||
EXPECT_TRUE(!node.IsNull());
|
||||
}
|
||||
|
||||
TEST(LoadNodeTest, DereferenceIteratorError) {
|
||||
Node node = Load("[{a: b}, 1, 2]");
|
||||
EXPECT_THROW(node.begin()->first.as<int>(), InvalidNode);
|
||||
|
Loading…
Reference in New Issue
Block a user