test(quartz): also normalize CRLF on Jackson output

Jackson's pretty-printer can emit \r\n on Windows depending on the
configured DefaultIndenter, so the previous one-sided normalization
still mismatched. Normalize both sides of the assert to LF.
This commit is contained in:
davotoula
2026-04-25 15:16:37 +02:00
parent 680b1f0ef6
commit adfdfa45cc
@@ -49,7 +49,7 @@ class InliningTagArrayPrettyPrinterTest {
}
""".trimIndent()
val json = writer.writeValueAsString(data)
assertEquals(expected.replace("\r\n", "\n"), json)
assertEquals(expected.replace("\r\n", "\n"), json.replace("\r\n", "\n"))
val data2 =
mapOf(
@@ -65,7 +65,7 @@ class InliningTagArrayPrettyPrinterTest {
}
""".trimIndent()
val json2 = writer.writeValueAsString(data2)
assertEquals(expected2.replace("\r\n", "\n"), json2)
assertEquals(expected2.replace("\r\n", "\n"), json2.replace("\r\n", "\n"))
}
@Test
@@ -90,6 +90,6 @@ class InliningTagArrayPrettyPrinterTest {
val prettified = mapper.writerWithDefaultPrettyPrinter().writeValueAsString(tree)
assertEquals(nostrObject.replace("\r\n", "\n"), prettified)
assertEquals(nostrObject.replace("\r\n", "\n"), prettified.replace("\r\n", "\n"))
}
}