Skip to content

Commit

Permalink
Fix testEscapeQuotes test
Browse files Browse the repository at this point in the history
  • Loading branch information
jpe42 committed Feb 17, 2024
1 parent 52ac6e3 commit 26eb0d0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ void testEscapeQuotes() {

nestedJson = """
{"hello": "\\"world\\""}""";
assertEquals(escaped, JIUtil.escapeQuotes(nestedJson));
assertEquals(escaped, JIUtil.escapeQuotesChecked(nestedJson));
assertEquals("""
{\\"hello\\": \\"\\"world\\"\\"}""", JIUtil.escapeQuotes(nestedJson));
assertEquals("""
{\\"hello\\": \\"\\"world\\"\\"}""", JIUtil.escapeQuotesChecked(nestedJson));

assertTrue(escaped == JIUtil.escapeQuotes(escaped));
assertTrue(escaped == JIUtil.escapeQuotesChecked(escaped));
Expand Down

0 comments on commit 26eb0d0

Please sign in to comment.