fix testcase

This commit is contained in:
astroshim 2017-03-15 19:14:22 +09:00
parent ac92cdb514
commit aad7ee89a7

View file

@ -93,6 +93,12 @@ public class PythonInterpreterTest implements InterpreterOutputListener {
pythonInterpreter.close();
}
@Test
public void testInterpret() throws InterruptedException, IOException {
InterpreterResult result = pythonInterpreter.interpret("print \"hi\"", context);
assertEquals(InterpreterResult.Code.SUCCESS, result.code());
}
@Test
public void testInterpretInvalidSyntax() throws IOException {
InterpreterResult result = pythonInterpreter.interpret("for x in range(0,3): print (\"hi\")\n", context);