Add tests for J2me platform math.

This commit is contained in:
James Roseborough
2008-07-21 23:01:59 +00:00
parent 6642b38f91
commit 80d8fccd1a
3 changed files with 191 additions and 3 deletions

View File

@@ -61,7 +61,6 @@ public class J2sePlatform extends Platform {
switch ( id ) {
case MathLib.ATAN2: return Math.atan2(a, b);
case MathLib.FMOD: return a - (b * ((int)(a/b)));
case MathLib.LDEXP: return a * Math.pow(2, b);
case MathLib.POW: return Math.pow(a, b);
}
throw new LuaErrorException( "unsupported math op" );