From 8b777146fc6eb07fd473a7972ce7d9534feefdb5 Mon Sep 17 00:00:00 2001 From: joshua Date: Wed, 3 Aug 2022 11:26:29 +0100 Subject: [PATCH] Fix java query test --- java/query/test/TypeQLQueryTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/query/test/TypeQLQueryTest.java b/java/query/test/TypeQLQueryTest.java index 0346386d4..4a7205681 100644 --- a/java/query/test/TypeQLQueryTest.java +++ b/java/query/test/TypeQLQueryTest.java @@ -114,7 +114,7 @@ public void testInsertQueryToString() { @Test public void testEscapeStrings() { assertEquals("insert\n$x \"hello\nworld\";", TypeQL.insert(var("x").eq("hello\nworld")).toString()); - assertEquals("insert\n$x \"hello\\nworld\";", TypeQL.insert(var("x").eq("hello\\nworld")).toString()); + assertEquals("insert\n$x \"hello\\\\nworld\";", TypeQL.insert(var("x").eq("hello\\nworld")).toString()); } @Test