Add test to verify that ~ is loaded as null.
This commit is contained in:
parent
cc229e87b3
commit
bfb5703ce9
@ -226,5 +226,10 @@ TEST(NodeTest, IncompleteJson) {
|
||||
}
|
||||
}
|
||||
|
||||
TEST(NodeTest, LoadTildeAsNull) {
|
||||
Node node = Load("~");
|
||||
ASSERT_TRUE(node.IsNull());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace YAML
|
||||
|
Loading…
Reference in New Issue
Block a user