This commit is contained in:
Dmitry Jemerov
2011-04-07 15:11:24 +02:00
parent cd3ed17e25
commit b6a078a562
3 changed files with 9 additions and 2 deletions
@@ -275,6 +275,10 @@ public class NamespaceGenTest extends LightCodeInsightFixtureTestCase {
assertEquals(true, main.invoke(null));
}
public void testChar() throws Exception {
binOpTest("fun foo(a: Char, b: Char): Int = a + b", 'A', (char) 3, (int) 'D');
}
private void binOpTest(final String text, final Object arg1, final Object arg2, final Object expected) throws Exception {
loadText(text);
System.out.println(generateToText());