1.1 --- a/rt/vm/src/test/java/org/apidesign/vm4brwsr/MathTest.java Tue Feb 24 11:12:53 2015 +0100
1.2 +++ b/rt/vm/src/test/java/org/apidesign/vm4brwsr/MathTest.java Fri Feb 27 19:28:07 2015 +0100
1.3 @@ -92,6 +92,26 @@
1.4 Math.IEEEremainder(Integer.MAX_VALUE, -4.5), Integer.MAX_VALUE, -4.5
1.5 );
1.6 }
1.7 +
1.8 + @Test public void isNaN() throws Exception {
1.9 + boolean nan = Double.isNaN(Double.NaN);
1.10 + assertExec("Same result 1", Double.class, "isNaN__ZD",
1.11 + 1.0, Double.NaN
1.12 + );
1.13 + }
1.14 +
1.15 + @Test public void isInfinite() throws Exception {
1.16 + assertExec("Same result 1", Double.class, "isInfinite__ZD",
1.17 + 1.0, Double.POSITIVE_INFINITY
1.18 + );
1.19 + }
1.20 +
1.21 + @Test public void isNegInfinite() throws Exception {
1.22 + assertExec("Same result 1", Double.class, "isInfinite__ZD",
1.23 + 1.0, Double.NEGATIVE_INFINITY
1.24 + );
1.25 + }
1.26 +
1.27
1.28 private static TestVM code;
1.29