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