mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Fixed some newline/comma tests
This commit is contained in:
@@ -551,7 +551,7 @@ namespace Test
|
|||||||
out << YAML::Key << "baz" << YAML::Value << "baz value" << YAML::Comment("baz!");
|
out << YAML::Key << "baz" << YAML::Value << "baz value" << YAML::Comment("baz!");
|
||||||
out << YAML::EndMap;
|
out << YAML::EndMap;
|
||||||
|
|
||||||
desiredOutput = "{foo: foo value, bar: bar value, # bar!\nbaz: baz value # baz!\n}";
|
desiredOutput = "{foo: foo value, bar: bar value, # bar!\nbaz: baz value, # baz!\n}";
|
||||||
}
|
}
|
||||||
|
|
||||||
void Indentation(YAML::Emitter& out, std::string& desiredOutput)
|
void Indentation(YAML::Emitter& out, std::string& desiredOutput)
|
||||||
@@ -598,7 +598,7 @@ namespace Test
|
|||||||
out << YAML::EndMap;
|
out << YAML::EndMap;
|
||||||
out << YAML::EndSeq;
|
out << YAML::EndSeq;
|
||||||
|
|
||||||
desiredOutput = "- key 1: value 1\n key 2: [a, b, c]\n- ? [1, 2]\n :\n a: b";
|
desiredOutput = "- key 1: value 1\n key 2: [a, b, c]\n- [1, 2]:\n a: b";
|
||||||
}
|
}
|
||||||
|
|
||||||
void Null(YAML::Emitter& out, std::string& desiredOutput)
|
void Null(YAML::Emitter& out, std::string& desiredOutput)
|
||||||
|
Reference in New Issue
Block a user