Adapt multi-line test

This is the use case the more demanding: multi-line not finishing by
EOL.
Adapt the expect case for it.
This commit is contained in:
Didier Roche 2023-07-26 13:16:54 +02:00
parent 67c19dca01
commit 4d8518bd51
No known key found for this signature in database
GPG key ID: 98B24A9CE4AC208E

View file

@ -134,9 +134,10 @@ func TestDomain_CheckExportFormatting(t *testing.T) {
msgstr ""
msgid "myid"
msgstr "test string"
msgstr ""
"test string\n"
"with \"newline\""`
if string(poBytes) != expectedOutput {
t.Errorf("Exported PO format does not match. Received:\n\n%v\n\n\nExpected:\n\n%v", string(poBytes), expectedOutput)
}