Skip to content

Commit 26eb0d0

Browse files
committed
Fix testEscapeQuotes test
1 parent 52ac6e3 commit 26eb0d0

File tree

1 file changed

+4
-2
lines changed
  • systems.comodal.json_iterator/src/test/java/systems/comodal/jsoniter

1 file changed

+4
-2
lines changed

systems.comodal.json_iterator/src/test/java/systems/comodal/jsoniter/TestString.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ void testEscapeQuotes() {
4343

4444
nestedJson = """
4545
{"hello": "\\"world\\""}""";
46-
assertEquals(escaped, JIUtil.escapeQuotes(nestedJson));
47-
assertEquals(escaped, JIUtil.escapeQuotesChecked(nestedJson));
46+
assertEquals("""
47+
{\\"hello\\": \\"\\"world\\"\\"}""", JIUtil.escapeQuotes(nestedJson));
48+
assertEquals("""
49+
{\\"hello\\": \\"\\"world\\"\\"}""", JIUtil.escapeQuotesChecked(nestedJson));
4850

4951
assertTrue(escaped == JIUtil.escapeQuotes(escaped));
5052
assertTrue(escaped == JIUtil.escapeQuotesChecked(escaped));

0 commit comments

Comments
 (0)