From 001cf4d2c83cd8012afd9d49cc800f7d2561e88c Mon Sep 17 00:00:00 2001 From: Andre Vehreschild Date: Wed, 30 Mar 2022 18:04:43 +0200 Subject: [PATCH] Single CR not quoted and escaped from usertype. --- test/integration/emitter_test.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/integration/emitter_test.cpp b/test/integration/emitter_test.cpp index f1d6308..560f631 100644 --- a/test/integration/emitter_test.cpp +++ b/test/integration/emitter_test.cpp @@ -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 fv; fv.push_back(Foo(5, "hello"));