Add test to verify that ~ is loaded as null.

This commit is contained in:
Jesse Beder 2016-04-01 20:01:01 -05:00
parent cc229e87b3
commit bfb5703ce9

View File

@ -226,5 +226,10 @@ TEST(NodeTest, IncompleteJson) {
}
}
TEST(NodeTest, LoadTildeAsNull) {
Node node = Load("~");
ASSERT_TRUE(node.IsNull());
}
} // namespace
} // namespace YAML