Closed tonypan1995 closed 2 years ago
The API robowflex::IO::isNode() (link) is supposed to return false if the entry of a file does not exist, but it returns true.
robowflex::IO::isNode()
In the following test.yaml, we have null for key1, something for key2, and key3 does not exist:
key1: null key2: "test"
isNode() correctly returns false for node["key1"], and true for node["key2"], but it still returns true for node["key3"].
isNode()
node["key1"]
node["key2"]
node["key3"]
This bug is seen with using yaml-cpp version 0.5.2 on ubuntu 18.04.
The API
robowflex::IO::isNode()
(link) is supposed to return false if the entry of a file does not exist, but it returns true.In the following test.yaml, we have null for key1, something for key2, and key3 does not exist:
isNode()
correctly returns false fornode["key1"]
, and true fornode["key2"]
, but it still returns true fornode["key3"]
.This bug is seen with using yaml-cpp version 0.5.2 on ubuntu 18.04.