Commit f9ff72de authored by Jesse Beder's avatar Jesse Beder
Browse files

Add test for an empty string not being null

parent 1025f76d
......@@ -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);
......
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