1.1 --- a/vm/src/test/java/org/apidesign/vm4brwsr/InstanceTest.java Mon Jan 14 10:57:51 2013 +0100
1.2 +++ b/vm/src/test/java/org/apidesign/vm4brwsr/InstanceTest.java Fri Feb 01 15:19:16 2013 +0100
1.3 @@ -80,16 +80,23 @@
1.4 @Test public void isInstanceOf() throws Exception {
1.5 assertExec(
1.6 "Yes, we are instance",
1.7 - Instance.class, "instanceOf__ZZ",
1.8 - Double.valueOf(1.0), true
1.9 + Instance.class, "instanceOf__ZI",
1.10 + Double.valueOf(1.0), 2
1.11 );
1.12 }
1.13
1.14 @Test public void notInstanceOf() throws Exception {
1.15 assertExec(
1.16 "No, we are not an instance",
1.17 - Instance.class, "instanceOf__ZZ",
1.18 - Double.valueOf(0.0), false
1.19 + Instance.class, "instanceOf__ZI",
1.20 + Double.valueOf(0.0), 1
1.21 + );
1.22 + }
1.23 + @Test public void nullInstanceOf() throws Exception {
1.24 + assertExec(
1.25 + "No, null is not an instance",
1.26 + Instance.class, "instanceOf__ZI",
1.27 + Double.valueOf(0.0), 0
1.28 );
1.29 }
1.30