Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix bug #16, not knowing about PyUnicode

  • Loading branch information...
commit 0e2ca02b3b3edd3e7e4b7e1d66cef1068589fac8 1 parent 373eb56
@jdf authored
View
5 buildtime/py/processing_parser.py
@@ -79,9 +79,10 @@ def __init__(self, to_python_prefix, to_java_format, typecheck_format):
'%s.asLong()',
None),
Class.forName("java.lang.String"):
- ClassConversionInfo('new PyString',
+ ClassConversionInfo('new PyUnicode',
'%s.asString()',
- '%(name)s == PyString.TYPE'),
+ '(%(name)s == PyString.TYPE'
+ '|| %(name)s == PyUnicode.TYPE)'),
PRIMITIVES['char']:
ClassConversionInfo('new PyInteger',
'%s.asInt()',
View
5 testing/tests/test/jycessing/JycessingTests.java
@@ -112,6 +112,11 @@ public void loadPixels() throws Exception {
assertEquals("OK\n", run("loadPixels"));
}
+ @Test
+ public void unicode() throws Exception {
+ assertEquals("OK\n", run("unicode"));
+ }
+
public static void main(final String[] args) {
JUnitCore.runClasses(JycessingTests.class);
}
Please sign in to comment.
Something went wrong with that request. Please try again.