mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Moar tests
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
import processing.core.*;
|
||||
import processing.xml.*;
|
||||
|
||||
import java.applet.*;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Frame;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.awt.event.KeyEvent;
|
||||
import java.awt.event.FocusEvent;
|
||||
import java.awt.Image;
|
||||
import java.io.*;
|
||||
import java.net.*;
|
||||
import java.text.*;
|
||||
import java.util.*;
|
||||
import java.util.zip.*;
|
||||
import java.util.regex.*;
|
||||
|
||||
public class bug281 extends PApplet {
|
||||
public void setup() {
|
||||
if ( "monopoly".charAt( 3 ) == '(' )
|
||||
{
|
||||
println("parcheesi");
|
||||
}
|
||||
noLoop();
|
||||
}
|
||||
static public void main(String args[]) {
|
||||
PApplet.main(new String[] { "--bgcolor=null", "bug281" });
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
if ( "monopoly".charAt( 3 ) == '(' )
|
||||
{
|
||||
println("parcheesi");
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
import processing.core.*;
|
||||
import processing.xml.*;
|
||||
|
||||
import java.applet.*;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Frame;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.awt.event.KeyEvent;
|
||||
import java.awt.event.FocusEvent;
|
||||
import java.awt.Image;
|
||||
import java.io.*;
|
||||
import java.net.*;
|
||||
import java.text.*;
|
||||
import java.util.*;
|
||||
import java.util.zip.*;
|
||||
import java.util.regex.*;
|
||||
|
||||
public class bug481 extends PApplet {
|
||||
public void setup() {
|
||||
Class[] abc = new Class[]{Applet.class};
|
||||
noLoop();
|
||||
}
|
||||
static public void main(String args[]) {
|
||||
PApplet.main(new String[] { "--bgcolor=null", "bug481" });
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Class[] abc = new Class[]{Applet.class};
|
||||
@@ -163,6 +163,16 @@ public class ParserTests {
|
||||
"Web colors must be exactly 6 hex digits. This looks like 5.", 4);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void bug281() {
|
||||
expectGood("bug281");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void bug481() {
|
||||
expectGood("bug481");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void bug1511() {
|
||||
expectGood("bug1511");
|
||||
|
||||
Reference in New Issue
Block a user