Adding upstream version 2:9.1.1230.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
parent
95f88d82e6
commit
0985b09abd
6270 changed files with 2000183 additions and 0 deletions
44
runtime/syntax/testdir/input/java_string.java
Normal file
44
runtime/syntax/testdir/input/java_string.java
Normal file
|
@ -0,0 +1,44 @@
|
|||
class StringTests
|
||||
{
|
||||
static {
|
||||
String s1 = "A quick brown fox jumps over the lazy dog";
|
||||
String s2 = "\"Woof\s!\"";
|
||||
String s3 = """
|
||||
A\s\
|
||||
quick \
|
||||
brown\s\
|
||||
fox \
|
||||
jumps\s\
|
||||
over \
|
||||
the\s\
|
||||
lazy \
|
||||
dog""";
|
||||
String s4 = """
|
||||
"Woof\s!\"""";
|
||||
String s5 = """
|
||||
String s3 = \"""
|
||||
A\\s\\
|
||||
quick \\
|
||||
brown\\s\\
|
||||
fox \\
|
||||
jumps\\s\\
|
||||
over \\
|
||||
the\\s\\
|
||||
lazy \\
|
||||
dog\""";""";
|
||||
|
||||
// There are SPACE, FF, HT, CR, and LF after """.
|
||||
String empty = """
|
||||
""";
|
||||
|
||||
System.out.println("""
|
||||
"
|
||||
""
|
||||
""\u005c"
|
||||
""\u005c""
|
||||
""\"\u0022\u0022
|
||||
""\"""\u005c\u0022
|
||||
""\"""\""
|
||||
""\"""\""\"""");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue