aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/host.jvm.lux
diff options
context:
space:
mode:
authorEduardo Julian2020-12-02 06:42:20 -0400
committerEduardo Julian2020-12-02 06:42:20 -0400
commit34e310622bdeb1d0588c0664c0e78cbaa84f837c (patch)
treeeb7c04185b57c781f45d0ccdb955bc9afc2aa8dc /stdlib/source/test/lux/host.jvm.lux
parent982a19e0c5d57b53f9726b780fec4c18f0787b4f (diff)
Re-named "::" and ":::" macros to "\" and "\\", to be consistent with the convention that only macros that deal with types may start with a colon.
Diffstat (limited to 'stdlib/source/test/lux/host.jvm.lux')
-rw-r--r--stdlib/source/test/lux/host.jvm.lux10
1 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/source/test/lux/host.jvm.lux b/stdlib/source/test/lux/host.jvm.lux
index bda13403b..3a55a232d 100644
--- a/stdlib/source/test/lux/host.jvm.lux
+++ b/stdlib/source/test/lux/host.jvm.lux
@@ -94,8 +94,8 @@
(def: miscellaneous
Test
(do {! r.monad}
- [sample (:: ! map (|>> (:coerce java/lang/Object))
- (r.ascii 1))]
+ [sample (\ ! map (|>> (:coerce java/lang/Object))
+ (r.ascii 1))]
($_ _.and
(_.test "Can check if an object is of a certain class."
(and (case (/.check java/lang/String sample) (#.Some _) true #.None false)
@@ -125,9 +125,9 @@
(def: arrays
Test
(do {! r.monad}
- [size (|> r.nat (:: ! map (|>> (n.% 100) (n.max 1))))
- idx (|> r.nat (:: ! map (n.% size)))
- value (:: ! map (|>> (:coerce java/lang/Long)) r.int)]
+ [size (|> r.nat (\ ! map (|>> (n.% 100) (n.max 1))))
+ idx (|> r.nat (\ ! map (n.% size)))
+ value (\ ! map (|>> (:coerce java/lang/Long)) r.int)]
($_ _.and
(_.test "Can create arrays of some length."
(n.= size (/.array-length (/.array java/lang/Long size))))