failing test for < on Byte

This commit is contained in:
Dmitry Jemerov
2011-04-07 14:58:11 +02:00
parent 339dbbdc8c
commit 3cc3f374b9
@@ -259,6 +259,11 @@ public class NamespaceGenTest extends LightCodeInsightFixtureTestCase {
Byte.valueOf((byte) 127), Byte.valueOf((byte) 127), 1);
}
public void testByteLess() throws Exception {
binOpTest("fun foo(a: Byte, b: Byte): Boolean = a < b",
Byte.valueOf((byte) 126), Byte.valueOf((byte) 127), 1);
}
private void binOpTest(final String text, final Object arg1, final Object arg2, final int expected) throws Exception {
loadText(text);
System.out.println(generateToText());