diff options
Diffstat (limited to '')
-rw-r--r-- | stdlib/test/test/lux/host.jvm.lux | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/test/test/lux/host.jvm.lux b/stdlib/test/test/lux/host.jvm.lux index 2444de871..caa943771 100644 --- a/stdlib/test/test/lux/host.jvm.lux +++ b/stdlib/test/test/lux/host.jvm.lux @@ -83,10 +83,10 @@ (context: "Miscellaneous" ($_ seq (test "Can check if an object is of a certain class." - (and (&.instance? String "") - (not (&.instance? Long "")) - (&.instance? Object "") - (not (&.instance? Object (&.null))))) + (and (case (&.check String "") (#.Some _) true #.None false) + (case (&.check Long "") (#.Some _) false #.None true) + (case (&.check Object "") (#.Some _) true #.None false) + (case (&.check Object (&.null)) (#.Some _) false #.None true))) (test "Can run code in a 'synchronized' block." (&.synchronized "" #1)) |