Improve bytecode generation.

This commit is contained in:
James Roseborough
2010-04-24 17:18:52 +00:00
parent 612b75d201
commit c1f67181fa
4 changed files with 28 additions and 12 deletions

View File

@@ -333,5 +333,10 @@ public class FragmentsTest extends TestCase {
"end\n" +
"return foo()\n" );
}
public void testTestSimpleBinops() {
runFragment( LuaValue.varargsOf(new LuaValue[] {
LuaValue.FALSE, LuaValue.FALSE, LuaValue.TRUE, LuaValue.TRUE, LuaValue.FALSE }),
"local a,b,c = 2,-2.5,0\n" +
"return (a==c), (b==c), (a==a), (a>c), (b>0)\n" );
}
}