failing test for try/catch

This commit is contained in:
Dmitry Jemerov
2011-04-28 18:31:40 +02:00
parent 89d7adbf73
commit a61e045e85
2 changed files with 16 additions and 0 deletions
@@ -100,4 +100,11 @@ public class ControlStructuresTest extends CodegenTestCase {
}
assertTrue(caught);
}
public void testTryCatch() throws Exception {
loadFile("tryCatch.jet");
final Method main = generateFunction();
assertEquals("no message", main.invoke(null, "0"));
assertEquals("xxx", main.invoke(null, "a"));
}
}