aboutsummaryrefslogtreecommitdiff
path: root/stdlib/test
diff options
context:
space:
mode:
authorEduardo Julian2018-12-15 19:34:57 -0400
committerEduardo Julian2018-12-15 19:34:57 -0400
commit00b9d6913fd39266208c7c8b61250967bb0f6636 (patch)
tree265b437be71727964190d1b546b1ea8a45ffeb00 /stdlib/test
parentde728c05f0c7fbc47b0d0d9db02d141d734eb755 (diff)
Changed the "instance?" macro in "lux/host.jvm.lux" into the "check" macro.
Diffstat (limited to 'stdlib/test')
-rw-r--r--stdlib/test/test/lux/host.jvm.lux8
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))