mirror of
https://github.com/processing/processing4.git
synced 2026-01-28 19:01:08 +01:00
Though the test isn't broken, just adding a multiline string within a class test case just out of an abundance of caution.
44 lines
936 B
Plaintext
44 lines
936 B
Plaintext
import processing.core.*;
|
|
import processing.data.*;
|
|
import processing.event.*;
|
|
import processing.opengl.*;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.ArrayList;
|
|
import java.io.File;
|
|
import java.io.BufferedReader;
|
|
import java.io.PrintWriter;
|
|
import java.io.InputStream;
|
|
import java.io.OutputStream;
|
|
import java.io.IOException;
|
|
|
|
public class multilinestrclass extends PApplet {
|
|
|
|
class TestClass {
|
|
final String testMultiline1 = "\nline1 \"\nline 2 \"\"\nline 3\nline 4";
|
|
|
|
public String getStr() {
|
|
return testMultiline1;
|
|
}
|
|
}
|
|
|
|
|
|
public void setup() {
|
|
TestClass test = new TestClass();
|
|
println(test.getStr());
|
|
}
|
|
|
|
public void draw() {
|
|
}
|
|
|
|
|
|
static public void main(String[] passedArgs) {
|
|
String[] appletArgs = new String[] { "multilinestrclass" };
|
|
if (passedArgs != null) {
|
|
PApplet.main(concat(appletArgs, passedArgs));
|
|
} else {
|
|
PApplet.main(appletArgs);
|
|
}
|
|
}
|
|
}
|