We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5f6ff1 commit 498f50dCopy full SHA for 498f50d
1 file changed
JShellWrapper/src/test/java/JShellWrapperTest.java
@@ -242,4 +242,24 @@ void testRejectedAndMultiples() {
242
false
243
""");
244
}
245
+ @Test
246
+ void testMultilinesAndHardcodedNewLineInString() {
247
+ evalTest("""
248
+ eval
249
+ 3
250
+ {
251
+ System.out.println("\\n");
252
+ }""",
253
+ """
254
+ OK
255
+ 1
256
+ VALID
257
+ ADDITION
258
259
+ {\\n System.out.println("\\\\n");\\n}
260
+
261
262
+ false
263
+ \\n\\n""");
264
+ }
265
0 commit comments