Update of /cvsroot/nice/Nice/testsuite/compiler/syntax
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20906/testsuite/compiler/syntax
Modified Files:
strings.testsuite
Log Message:
Prevent collapsing consecutive multiline string litterals into one.
Index: strings.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/syntax/strings.testsuite,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** strings.testsuite 21 Nov 2003 16:05:13 -0000 1.1
--- strings.testsuite 24 Jun 2004 14:01:28 -0000 1.2
***************
*** 10,11 ****
--- 10,31 ----
s = "l has length " l.size;
assert s.equals("l has length 0");
+
+ /// PASS
+ assert """abc
+ def\nghi
+ xyz""".equals("abc\n def\nghi\n xyz");
+
+ /// PASS
+ String x = """ " """;
+ assert x.equals(" \" ");
+
+ /// PASS
+ boolean ok = false;
+ String s1 = """
+ 1
+ """;
+ ok = true;
+ String s2 = """
+ 2
+ """;
+ assert ok;
|