File tree Expand file tree Collapse file tree 5 files changed +70
-0
lines changed
src/test/processing/parsing Expand file tree Collapse file tree 5 files changed +70
-0
lines changed Original file line number Diff line number Diff line change 1+ import processing.core.*;
2+ import processing.xml.*;
3+
4+ import java.applet.*;
5+ import java.awt.Dimension;
6+ import java.awt.Frame;
7+ import java.awt.event.MouseEvent;
8+ import java.awt.event.KeyEvent;
9+ import java.awt.event.FocusEvent;
10+ import java.awt.Image;
11+ import java.io.*;
12+ import java.net.*;
13+ import java.text.*;
14+ import java.util.*;
15+ import java.util.zip.*;
16+ import java.util.regex.*;
17+
18+ public class bug281 extends PApplet {
19+ public void setup() {
20+ if ( "monopoly".charAt( 3 ) == '(' )
21+ {
22+ println("parcheesi");
23+ }
24+ noLoop();
25+ }
26+ static public void main(String args[]) {
27+ PApplet.main(new String[] { "--bgcolor=null", "bug281" });
28+ }
29+ }
Original file line number Diff line number Diff line change 1+ if ( " monopoly" . charAt( 3 ) == ' (' )
2+ {
3+ println (" parcheesi" );
4+ }
Original file line number Diff line number Diff line change 1+ import processing.core.*;
2+ import processing.xml.*;
3+
4+ import java.applet.*;
5+ import java.awt.Dimension;
6+ import java.awt.Frame;
7+ import java.awt.event.MouseEvent;
8+ import java.awt.event.KeyEvent;
9+ import java.awt.event.FocusEvent;
10+ import java.awt.Image;
11+ import java.io.*;
12+ import java.net.*;
13+ import java.text.*;
14+ import java.util.*;
15+ import java.util.zip.*;
16+ import java.util.regex.*;
17+
18+ public class bug481 extends PApplet {
19+ public void setup() {
20+ Class[] abc = new Class[]{Applet.class};
21+ noLoop();
22+ }
23+ static public void main(String args[]) {
24+ PApplet.main(new String[] { "--bgcolor=null", "bug481" });
25+ }
26+ }
Original file line number Diff line number Diff line change 1+ Class [] abc = new Class []{Applet . class};
Original file line number Diff line number Diff line change @@ -163,6 +163,16 @@ public void bug196() {
163163 "Web colors must be exactly 6 hex digits. This looks like 5." , 4 );
164164 }
165165
166+ @ Test
167+ public void bug281 () {
168+ expectGood ("bug281" );
169+ }
170+
171+ @ Test
172+ public void bug481 () {
173+ expectGood ("bug481" );
174+ }
175+
166176 @ Test
167177 public void bug1511 () {
168178 expectGood ("bug1511" );
You can’t perform that action at this time.
0 commit comments