mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
Fix reading empty token stack with a node with properties but no scalar.
E.g. `!2`.
This commit is contained in:
@@ -257,5 +257,10 @@ TEST(NodeTest, LoadTagWithParenthesis) {
|
||||
EXPECT_EQ(node.as<std::string>(), "foo");
|
||||
}
|
||||
|
||||
TEST(NodeTest, LoadTagWithNullScalar) {
|
||||
Node node = Load("!2");
|
||||
EXPECT_TRUE(node.IsNull());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace YAML
|
||||
|
Reference in New Issue
Block a user