We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b7183b commit e2f8b30Copy full SHA for e2f8b30
src/tests/test_float_value.cpp
@@ -35,9 +35,11 @@ int main() {
35
ret = -1;
36
}
37
38
+ std::string value_float = yaml["float"];
39
+
40
std::string expected_val_str = "1.0001";
- if (yaml.getRoot()->getElement("float")->getValue() != expected_val_str) {
- std::cerr << "Parameter 'float' has value '" << yaml.getRoot()->getElement("float")->getValue() << "', but expected '" << expected_val_str << "'" << std::endl;
41
+ if (value_float != expected_val_str) {
42
+ std::cerr << "Parameter 'float' has value '" << value_float << "', but expected '" << expected_val_str << "'" << std::endl;
43
44
45
0 commit comments