Permalink
Browse files

test for core class import

  • Loading branch information...
1 parent 15d6749 commit 92a7a2019c715571035fe5ce8f93bafae20c5000 @jdf committed Sep 14, 2010
@@ -7,8 +7,7 @@
def setup():
size(10, 10, P3D)
- print "OK"
noLoop();
def draw():
- pass
+ print "OK"
@@ -0,0 +1,2 @@
+print PVector(1, 2, 3)
+print PFont
@@ -19,6 +19,7 @@ private static String run(final String testResource) throws Exception {
System.setOut(new PrintStream(baos, true));
Runner.main(new String[] { "testing/test_resources/test_"
+ testResource + ".py" });
+ Thread.sleep(500);
return new String(baos.toByteArray()).replaceAll("\r\n", "\n")
.replaceAll("\r", "\n");
} finally {
@@ -94,6 +95,11 @@ public void calendar() throws Exception {
testImport("calendar");
}
+ @Test
+ public void processing_core() throws Exception {
+ assertEquals("[ 1.0, 2.0, 3.0 ]\n<type 'processing.core.PFont'>\n", run("pcore"));
+ }
+
public static void main(final String[] args) {
JUnitCore.runClasses(JycessingTests.class);
}

0 comments on commit 92a7a20

Please sign in to comment.