Single CR not quoted and escaped from usertype.

This commit is contained in:
Andre Vehreschild 2022-03-30 18:04:43 +02:00
parent edadfecdc6
commit 001cf4d2c8

View File

@ -968,6 +968,14 @@ TEST_F(EmitterTest, UserType) {
ExpectEmit("- x: 5\n bar: hello\n- x: 3\n bar: goodbye");
}
TEST_F(EmitterTest, UserType2) {
out << BeginSeq;
out << Foo(5, "\r");
out << EndSeq;
ExpectEmit("- x: 5\n bar: \"\\r\"");
}
TEST_F(EmitterTest, UserTypeInContainer) {
std::vector<Foo> fv;
fv.push_back(Foo(5, "hello"));