test for keyPressed unhiding
ADD
testing/resources/test_keyPressed_redefined.py
+def settings():
+ size(48, 48, P2D)
+
+def draw():
+ if frameCount > 1:
+ raise Exception("Expected to exit.")
+ assert(keyPressed == False)
+ __keyPressed__()
+
+def keyPressed():
+ print "OK"
+ exit()
\ No newline at end of file

MODIFY
testing/src/test/jycessing/JycessingTests.java
testing/src/test/jycessing/JycessingTests.java
@@ -324,4 +324,9 @@ public class JycessingTests {
public void g() throws Exception {
expectOK("g");
}
+
+ @Test
+ public void keyPressed_redefined() throws Exception {
+ expectOK("keyPressed_redefined");
+ }
}

test for keyPressed unhiding