aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/host.old.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/test/lux/host.old.lux')
-rw-r--r--stdlib/source/test/lux/host.old.lux10
1 files changed, 6 insertions, 4 deletions
diff --git a/stdlib/source/test/lux/host.old.lux b/stdlib/source/test/lux/host.old.lux
index c9446b857..19e8ae9ba 100644
--- a/stdlib/source/test/lux/host.old.lux
+++ b/stdlib/source/test/lux/host.old.lux
@@ -4,7 +4,9 @@
[control
pipe]
[data
- ["." text ("#;." equivalence)]]
+ ["." text ("#;." equivalence)]
+ [number
+ ["i" int]]]
[math
["r" random]]
["_" test (#+ Test)]]
@@ -66,9 +68,9 @@
(`` ($_ _.and
(~~ (template [<to> <from> <message>]
[(_.test <message>
- (or (|> sample <to> <from> (i/= sample))
+ (or (|> sample <to> <from> (i.= sample))
(let [capped-sample (|> sample <to> <from>)]
- (|> capped-sample <to> <from> (i/= capped-sample)))))]
+ (|> capped-sample <to> <from> (i.= capped-sample)))))]
[/.long-to-byte /.byte-to-long "Can succesfully convert to/from byte."]
[/.long-to-short /.short-to-long "Can succesfully convert to/from short."]
@@ -122,7 +124,7 @@
(_.test "Can set and get array values."
(let [arr (/.array Long size)]
(exec (/.array-write idx value arr)
- (i/= value (/.array-read idx arr))))))))
+ (i.= value (/.array-read idx arr))))))))
(def: #export test
($_ _.and