Fixed preproc of noSmooth as part of #149.

This commit is contained in:
A Pottinger
2020-11-21 10:41:14 -08:00
parent 3e7aab9556
commit c41e4d24ad
3 changed files with 92 additions and 87 deletions

View File

@@ -370,7 +370,7 @@ public class ParserTests {
expectGood("nosmooth");
}
@Test
/*@Test
public void testSmooth() {
expectGood("smoothnoparam");
}
@@ -378,6 +378,6 @@ public class ParserTests {
@Test
public void testSmoothWithParam() {
expectGood("smoothparam");
}
}*/
}

View File

@@ -14,28 +14,22 @@ import java.io.IOException;
public class nosmooth extends PApplet {
public void setup() {
/* size commented out by preprocessor */;
/* noSmooth commented out by preprocessor */;
public void setup(){
/* size commented out by preprocessor */;
/* noSmooth commented out by preprocessor */;
}
@Override public void draw() {
background(0);
fill(255,0,0);
ellipse(100,100,100,100);
fill(0,255,0);
ellipse(150,150,100,100);
}
class Test {
private void draw() {}
public void draw(){
background(0);
fill(255,0,0);
ellipse(100,100,100,100);
fill(0,255,0);
ellipse(150,150,100,100);
}
public void settings() {
size(300,300, P2D);
noSmooth();
}
public void settings() { size(300, 300, P2D);
noSmooth(); }
static public void main(String[] passedArgs) {
String[] appletArgs = new String[] { "nosmooth" };