File tree Expand file tree Collapse file tree 3 files changed +68
-0
lines changed
Expand file tree Collapse file tree 3 files changed +68
-0
lines changed Original file line number Diff line number Diff line change @@ -425,6 +425,11 @@ public void testMultilineString() {
425425 expectGood ("multilinestr" );
426426 }
427427
428+ @ Test
429+ public void testMultilineStringClass () {
430+ expectGood ("multilinestrclass" );
431+ }
432+
428433 @ Test
429434 public void testMultiMultilineString () {
430435 expectGood ("multimultilinestr" );
Original file line number Diff line number Diff line change 1+ import processing.core.*;
2+ import processing.data.*;
3+ import processing.event.*;
4+ import processing.opengl.*;
5+
6+ import java.util.HashMap;
7+ import java.util.ArrayList;
8+ import java.io.File;
9+ import java.io.BufferedReader;
10+ import java.io.PrintWriter;
11+ import java.io.InputStream;
12+ import java.io.OutputStream;
13+ import java.io.IOException;
14+
15+ public class multilinestrclass extends PApplet {
16+
17+ class TestClass {
18+ final String testMultiline1 = "\nline1 \"\nline 2 \"\"\nline 3\nline 4";
19+
20+ public String getStr() {
21+ return testMultiline1;
22+ }
23+ }
24+
25+
26+ public void setup() {
27+ TestClass test = new TestClass();
28+ println(test.getStr());
29+ }
30+
31+ public void draw() {
32+ }
33+
34+
35+ static public void main(String[] passedArgs) {
36+ String[] appletArgs = new String[] { "multilinestrclass" };
37+ if (passedArgs != null) {
38+ PApplet.main(concat(appletArgs, passedArgs));
39+ } else {
40+ PApplet.main(appletArgs);
41+ }
42+ }
43+ }
Original file line number Diff line number Diff line change 1+ class TestClass {
2+ final String testMultiline1 = " " "
3+ line1 "
4+ line 2 " "
5+ line 3
6+ line 4 " " " ;
7+
8+ String getStr() {
9+ return testMultiline1;
10+ }
11+ }
12+
13+
14+ void setup() {
15+ TestClass test = new TestClass();
16+ println(test.getStr());
17+ }
18+
19+ void draw() {
20+ }
You can’t perform that action at this time.
0 commit comments