aboutsummaryrefslogtreecommitdiff
path: root/stdlib/test
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/test/test/lux/cli.lux6
-rw-r--r--stdlib/test/test/lux/concurrency/atom.lux3
-rw-r--r--stdlib/test/test/lux/concurrency/promise.lux6
-rw-r--r--stdlib/test/test/lux/concurrency/stm.lux3
-rw-r--r--stdlib/test/test/lux/control/effect.lux3
-rw-r--r--stdlib/test/test/lux/control/interval.lux4
-rw-r--r--stdlib/test/test/lux/control/pipe.lux (renamed from stdlib/test/test/lux/pipe.lux)6
-rw-r--r--stdlib/test/test/lux/data/char.lux6
-rw-r--r--stdlib/test/test/lux/data/coll/array.lux6
-rw-r--r--stdlib/test/test/lux/data/coll/dict.lux3
-rw-r--r--stdlib/test/test/lux/data/coll/list.lux6
-rw-r--r--stdlib/test/test/lux/data/coll/ordered.lux3
-rw-r--r--stdlib/test/test/lux/data/coll/priority-queue.lux3
-rw-r--r--stdlib/test/test/lux/data/coll/queue.lux3
-rw-r--r--stdlib/test/test/lux/data/coll/seq.lux6
-rw-r--r--stdlib/test/test/lux/data/coll/set.lux3
-rw-r--r--stdlib/test/test/lux/data/coll/stack.lux3
-rw-r--r--stdlib/test/test/lux/data/coll/stream.lux3
-rw-r--r--stdlib/test/test/lux/data/coll/tree/rose.lux3
-rw-r--r--stdlib/test/test/lux/data/coll/tree/zipper.lux6
-rw-r--r--stdlib/test/test/lux/data/coll/vector.lux5
-rw-r--r--stdlib/test/test/lux/data/error.lux6
-rw-r--r--stdlib/test/test/lux/data/error/exception.lux3
-rw-r--r--stdlib/test/test/lux/data/format/json.lux4
-rw-r--r--stdlib/test/test/lux/data/ident.lux6
-rw-r--r--stdlib/test/test/lux/data/log.lux6
-rw-r--r--stdlib/test/test/lux/data/maybe.lux6
-rw-r--r--stdlib/test/test/lux/data/number.lux6
-rw-r--r--stdlib/test/test/lux/data/number/complex.lux6
-rw-r--r--stdlib/test/test/lux/data/number/ratio.lux6
-rw-r--r--stdlib/test/test/lux/data/sum.lux6
-rw-r--r--stdlib/test/test/lux/data/text.lux6
-rw-r--r--stdlib/test/test/lux/data/text/lexer.lux (renamed from stdlib/test/test/lux/lexer.lux)8
-rw-r--r--stdlib/test/test/lux/data/text/regex.lux (renamed from stdlib/test/test/lux/lexer/regex.lux)12
-rw-r--r--stdlib/test/test/lux/function/cont.lux3
-rw-r--r--stdlib/test/test/lux/function/reader.lux6
-rw-r--r--stdlib/test/test/lux/function/state.lux6
-rw-r--r--stdlib/test/test/lux/function/thunk.lux1
-rw-r--r--stdlib/test/test/lux/host.js.lux3
-rw-r--r--stdlib/test/test/lux/host.jvm.lux6
-rw-r--r--stdlib/test/test/lux/macro/ast.lux1
-rw-r--r--stdlib/test/test/lux/macro/poly/eq.lux1
-rw-r--r--stdlib/test/test/lux/macro/poly/functor.lux1
-rw-r--r--stdlib/test/test/lux/macro/poly/text-encoder.lux1
-rw-r--r--stdlib/test/test/lux/macro/syntax.lux1
-rw-r--r--stdlib/test/test/lux/math.lux1
-rw-r--r--stdlib/test/test/lux/math/logic/continuous.lux1
-rw-r--r--stdlib/test/test/lux/math/logic/fuzzy.lux1
-rw-r--r--stdlib/test/test/lux/math/simple.lux1
-rw-r--r--stdlib/test/test/lux/type.lux4
-rw-r--r--stdlib/test/test/lux/type/auto.lux6
-rw-r--r--stdlib/test/test/lux/type/check.lux1
-rw-r--r--stdlib/test/tests.lux72
53 files changed, 134 insertions, 154 deletions
diff --git a/stdlib/test/test/lux/cli.lux b/stdlib/test/test/lux/cli.lux
index 8393d459b..b8ed6ca0c 100644
--- a/stdlib/test/test/lux/cli.lux
+++ b/stdlib/test/test/lux/cli.lux
@@ -1,7 +1,8 @@
(;module:
lux
(lux [io]
- (control monad)
+ (control monad
+ pipe)
(data text/format
[text "Text/" Eq<Text>]
[number]
@@ -9,8 +10,7 @@
[sum]
(coll [list]))
["&" cli]
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(test: "CLI"
diff --git a/stdlib/test/test/lux/concurrency/atom.lux b/stdlib/test/test/lux/concurrency/atom.lux
index 9b6248ec8..84deafa07 100644
--- a/stdlib/test/test/lux/concurrency/atom.lux
+++ b/stdlib/test/test/lux/concurrency/atom.lux
@@ -6,8 +6,7 @@
(coll [list "" Functor<List>])
text/format)
(concurrency ["&" atom])
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(test: "Atoms"
diff --git a/stdlib/test/test/lux/concurrency/promise.lux b/stdlib/test/test/lux/concurrency/promise.lux
index a054e5a96..7ad25fc46 100644
--- a/stdlib/test/test/lux/concurrency/promise.lux
+++ b/stdlib/test/test/lux/concurrency/promise.lux
@@ -1,13 +1,13 @@
(;module:
lux
(lux [io #- run]
- (control monad)
+ (control monad
+ pipe)
(data [number]
text/format
[error #- fail])
(concurrency ["&" promise])
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(test: "Promises"
diff --git a/stdlib/test/test/lux/concurrency/stm.lux b/stdlib/test/test/lux/concurrency/stm.lux
index d48d20a9d..d6b6c1d43 100644
--- a/stdlib/test/test/lux/concurrency/stm.lux
+++ b/stdlib/test/test/lux/concurrency/stm.lux
@@ -7,8 +7,7 @@
text/format)
(concurrency ["&" stm]
[promise])
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(def: iterations/processes Int 100)
diff --git a/stdlib/test/test/lux/control/effect.lux b/stdlib/test/test/lux/control/effect.lux
index 59fc116dc..39e5afa5d 100644
--- a/stdlib/test/test/lux/control/effect.lux
+++ b/stdlib/test/test/lux/control/effect.lux
@@ -7,8 +7,7 @@
(data [text]
text/format)
[macro]
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(do-template [<effect> <op> <field>]
diff --git a/stdlib/test/test/lux/control/interval.lux b/stdlib/test/test/lux/control/interval.lux
index 2127ff6df..b4c48a541 100644
--- a/stdlib/test/test/lux/control/interval.lux
+++ b/stdlib/test/test/lux/control/interval.lux
@@ -2,14 +2,14 @@
lux
lux/test
(lux (control monad
+ pipe
["&" interval])
[io]
["R" math/random]
(data text/format
[number]
["S" coll/set]
- ["L" coll/list])
- pipe))
+ ["L" coll/list])))
(test: "Equality."
[bottom R;int
diff --git a/stdlib/test/test/lux/pipe.lux b/stdlib/test/test/lux/control/pipe.lux
index 08866a3f4..4687a5635 100644
--- a/stdlib/test/test/lux/pipe.lux
+++ b/stdlib/test/test/lux/control/pipe.lux
@@ -1,14 +1,14 @@
(;module:
lux
(lux [io]
- (control monad)
+ (control monad
+ pipe)
(data text/format
[number]
[product]
identity
[text "T/" Eq<Text>])
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(test: "Pipes"
diff --git a/stdlib/test/test/lux/data/char.lux b/stdlib/test/test/lux/data/char.lux
index 5025a1283..dd3c0c2da 100644
--- a/stdlib/test/test/lux/data/char.lux
+++ b/stdlib/test/test/lux/data/char.lux
@@ -1,12 +1,12 @@
(;module:
lux
- (lux (control [monad])
+ (lux (control [monad]
+ pipe)
[io]
(data char
[text]
text/format)
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(test: "Char operations"
diff --git a/stdlib/test/test/lux/data/coll/array.lux b/stdlib/test/test/lux/data/coll/array.lux
index b5003f703..f7d09ae9a 100644
--- a/stdlib/test/test/lux/data/coll/array.lux
+++ b/stdlib/test/test/lux/data/coll/array.lux
@@ -1,12 +1,12 @@
(;module:
lux
- (lux (control [monad])
+ (lux (control [monad]
+ pipe)
[io]
(data (coll ["&" array]
[list])
[number])
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(def: bounded-size
diff --git a/stdlib/test/test/lux/data/coll/dict.lux b/stdlib/test/test/lux/data/coll/dict.lux
index 3df06abcf..34e99cf58 100644
--- a/stdlib/test/test/lux/data/coll/dict.lux
+++ b/stdlib/test/test/lux/data/coll/dict.lux
@@ -9,8 +9,7 @@
[char]
(coll ["&" dict]
[list "List/" Fold<List> Functor<List>]))
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(test: "Dictionaries."
diff --git a/stdlib/test/test/lux/data/coll/list.lux b/stdlib/test/test/lux/data/coll/list.lux
index fe381340d..bd6f78015 100644
--- a/stdlib/test/test/lux/data/coll/list.lux
+++ b/stdlib/test/test/lux/data/coll/list.lux
@@ -1,14 +1,14 @@
(;module:
lux
(lux [io]
- (control monad)
+ (control monad
+ pipe)
(data (coll ["&" list])
[text "Text/" Monoid<Text>]
[number]
[bool]
[product])
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(def: bounded-size
diff --git a/stdlib/test/test/lux/data/coll/ordered.lux b/stdlib/test/test/lux/data/coll/ordered.lux
index ffc2bf309..c1f5c9944 100644
--- a/stdlib/test/test/lux/data/coll/ordered.lux
+++ b/stdlib/test/test/lux/data/coll/ordered.lux
@@ -7,8 +7,7 @@
[list "" Fold<List>])
[number]
text/format)
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(def: gen-nat
diff --git a/stdlib/test/test/lux/data/coll/priority-queue.lux b/stdlib/test/test/lux/data/coll/priority-queue.lux
index de885f1ee..3e28334db 100644
--- a/stdlib/test/test/lux/data/coll/priority-queue.lux
+++ b/stdlib/test/test/lux/data/coll/priority-queue.lux
@@ -4,8 +4,7 @@
(control monad)
(data (coll ["&" priority-queue])
[number])
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(def: (gen-queue size)
diff --git a/stdlib/test/test/lux/data/coll/queue.lux b/stdlib/test/test/lux/data/coll/queue.lux
index fac5cef12..44123f8e3 100644
--- a/stdlib/test/test/lux/data/coll/queue.lux
+++ b/stdlib/test/test/lux/data/coll/queue.lux
@@ -4,8 +4,7 @@
(control monad)
(data (coll ["&" queue])
[number])
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(test: "Queues"
diff --git a/stdlib/test/test/lux/data/coll/seq.lux b/stdlib/test/test/lux/data/coll/seq.lux
index 5fe3a5af1..a111ecb0e 100644
--- a/stdlib/test/test/lux/data/coll/seq.lux
+++ b/stdlib/test/test/lux/data/coll/seq.lux
@@ -1,7 +1,8 @@
(;module:
lux
(lux [io]
- (control monad)
+ (control monad
+ pipe)
(data (coll ["&" seq]
["F" tree/finger]
["L" list])
@@ -10,8 +11,7 @@
[bool]
[product]
maybe)
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(def: bounded-size
diff --git a/stdlib/test/test/lux/data/coll/set.lux b/stdlib/test/test/lux/data/coll/set.lux
index 2a4f05bb1..a91813675 100644
--- a/stdlib/test/test/lux/data/coll/set.lux
+++ b/stdlib/test/test/lux/data/coll/set.lux
@@ -5,8 +5,7 @@
(data (coll ["&" set]
[list "" Fold<List>])
[number])
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(def: gen-nat
diff --git a/stdlib/test/test/lux/data/coll/stack.lux b/stdlib/test/test/lux/data/coll/stack.lux
index 4c44cbf06..6d26c569d 100644
--- a/stdlib/test/test/lux/data/coll/stack.lux
+++ b/stdlib/test/test/lux/data/coll/stack.lux
@@ -5,8 +5,7 @@
(data (coll ["&" stack]
[list "" Fold<List>])
[number])
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(def: gen-nat
diff --git a/stdlib/test/test/lux/data/coll/stream.lux b/stdlib/test/test/lux/data/coll/stream.lux
index 2be6aa054..2ee3013e2 100644
--- a/stdlib/test/test/lux/data/coll/stream.lux
+++ b/stdlib/test/test/lux/data/coll/stream.lux
@@ -9,8 +9,7 @@
["&" stream])
[number "Nat/" Codec<Text,Nat>])
(function [cont])
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(test: "Streams"
diff --git a/stdlib/test/test/lux/data/coll/tree/rose.lux b/stdlib/test/test/lux/data/coll/tree/rose.lux
index ef43fae44..a4839c2a5 100644
--- a/stdlib/test/test/lux/data/coll/tree/rose.lux
+++ b/stdlib/test/test/lux/data/coll/tree/rose.lux
@@ -5,8 +5,7 @@
(data (coll (tree ["&" rose])
[list "List/" Monad<List>])
[number])
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(def: gen-nat
diff --git a/stdlib/test/test/lux/data/coll/tree/zipper.lux b/stdlib/test/test/lux/data/coll/tree/zipper.lux
index ed0318cfe..143229dc5 100644
--- a/stdlib/test/test/lux/data/coll/tree/zipper.lux
+++ b/stdlib/test/test/lux/data/coll/tree/zipper.lux
@@ -1,15 +1,15 @@
(;module:
lux
(lux [io]
- (control monad)
+ (control monad
+ pipe)
(data (coll [list "List/" Fold<List> Functor<List>]
(tree ["&" zipper]
[rose]))
[text "Text/" Monoid<Text>]
text/format
[number])
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(def: gen-tree
diff --git a/stdlib/test/test/lux/data/coll/vector.lux b/stdlib/test/test/lux/data/coll/vector.lux
index 735374c5c..6ad6934db 100644
--- a/stdlib/test/test/lux/data/coll/vector.lux
+++ b/stdlib/test/test/lux/data/coll/vector.lux
@@ -7,12 +7,11 @@
[text "Text/" Monoid<Text>]
text/format
[number])
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(test: "Vectors"
- [size (|> R;nat (:: @ map (n.% +100)))
+ [size (|> R;nat (:: @ map (|>. (n.% +100) (n.max +1))))
idx (|> R;nat (:: @ map (n.% size)))
sample (R;vector size R;nat)
other-sample (R;vector size R;nat)
diff --git a/stdlib/test/test/lux/data/error.lux b/stdlib/test/test/lux/data/error.lux
index 34f505142..d90387c89 100644
--- a/stdlib/test/test/lux/data/error.lux
+++ b/stdlib/test/test/lux/data/error.lux
@@ -1,10 +1,10 @@
(;module:
lux
(lux [io]
- (control monad)
+ (control monad
+ pipe)
(data text/format
- ["&" error])
- pipe)
+ ["&" error]))
lux/test)
(test: "Errors"
diff --git a/stdlib/test/test/lux/data/error/exception.lux b/stdlib/test/test/lux/data/error/exception.lux
index 41d01077e..bc84df7f5 100644
--- a/stdlib/test/test/lux/data/error/exception.lux
+++ b/stdlib/test/test/lux/data/error/exception.lux
@@ -7,8 +7,7 @@
[text]
text/format
[number])
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(exception: Some-Exception)
diff --git a/stdlib/test/test/lux/data/format/json.lux b/stdlib/test/test/lux/data/format/json.lux
index ad70d5c0e..37fe49786 100644
--- a/stdlib/test/test/lux/data/format/json.lux
+++ b/stdlib/test/test/lux/data/format/json.lux
@@ -3,7 +3,8 @@
(lux [io]
(control monad
codec
- eq)
+ eq
+ pipe)
(data [text "Text/" Monoid<Text>]
text/format
[error #- fail]
@@ -21,7 +22,6 @@
[syntax #+ syntax:]
[poly #+ derived:])
["R" math/random]
- pipe
test)
)
diff --git a/stdlib/test/test/lux/data/ident.lux b/stdlib/test/test/lux/data/ident.lux
index f88693003..07aaf8d0a 100644
--- a/stdlib/test/test/lux/data/ident.lux
+++ b/stdlib/test/test/lux/data/ident.lux
@@ -1,12 +1,12 @@
(;module:
lux
(lux [io]
- (control monad)
+ (control monad
+ pipe)
(data ["&" ident]
[text "Text/" Eq<Text>]
text/format)
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(def: (gen-part size)
diff --git a/stdlib/test/test/lux/data/log.lux b/stdlib/test/test/lux/data/log.lux
index 40a124490..ea174fc6b 100644
--- a/stdlib/test/test/lux/data/log.lux
+++ b/stdlib/test/test/lux/data/log.lux
@@ -1,12 +1,12 @@
(;module:
lux
(lux [io]
- (control monad)
+ (control monad
+ pipe)
(data ["&" log]
[text "Text/" Monoid<Text> Eq<Text>]
[number]
- [product])
- pipe)
+ [product]))
lux/test)
(test: "Logs"
diff --git a/stdlib/test/test/lux/data/maybe.lux b/stdlib/test/test/lux/data/maybe.lux
index 07961a6d0..8cfb4c38f 100644
--- a/stdlib/test/test/lux/data/maybe.lux
+++ b/stdlib/test/test/lux/data/maybe.lux
@@ -1,11 +1,11 @@
(;module:
lux
(lux [io]
- (control monad)
+ (control monad
+ pipe)
(data ["&" maybe]
[text "Text/" Monoid<Text>]
- [number])
- pipe)
+ [number]))
lux/test)
(test: "Maybe"
diff --git a/stdlib/test/test/lux/data/number.lux b/stdlib/test/test/lux/data/number.lux
index ad89649ba..eefbd584b 100644
--- a/stdlib/test/test/lux/data/number.lux
+++ b/stdlib/test/test/lux/data/number.lux
@@ -1,12 +1,12 @@
(;module:
lux
(lux [io]
- (control monad)
+ (control monad
+ pipe)
(data number
[text "Text/" Monoid<Text> Eq<Text>]
text/format)
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(do-template [category rand-gen <Eq> <Order>]
diff --git a/stdlib/test/test/lux/data/number/complex.lux b/stdlib/test/test/lux/data/number/complex.lux
index 8ed27680c..9555c031e 100644
--- a/stdlib/test/test/lux/data/number/complex.lux
+++ b/stdlib/test/test/lux/data/number/complex.lux
@@ -1,7 +1,8 @@
(;module:
lux
(lux [io]
- (control monad)
+ (control monad
+ pipe)
(data [text "Text/" Monoid<Text>]
text/format
[bool "b/" Eq<Bool>]
@@ -10,8 +11,7 @@
(coll [list "List/" Fold<List> Functor<List>])
[product])
[math]
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
## Based on org.apache.commons.math4.complex.Complex
diff --git a/stdlib/test/test/lux/data/number/ratio.lux b/stdlib/test/test/lux/data/number/ratio.lux
index c1f7e104f..7ae36e573 100644
--- a/stdlib/test/test/lux/data/number/ratio.lux
+++ b/stdlib/test/test/lux/data/number/ratio.lux
@@ -1,7 +1,8 @@
(;module:
lux
(lux [io]
- (control monad)
+ (control monad
+ pipe)
(data [text "Text/" Monoid<Text>]
text/format
[bool "b/" Eq<Bool>]
@@ -9,8 +10,7 @@
["&" number/ratio "&/" Number<Ratio>]
(coll [list "List/" Fold<List> Functor<List>])
[product])
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(def: gen-part
diff --git a/stdlib/test/test/lux/data/sum.lux b/stdlib/test/test/lux/data/sum.lux
index 8ab124c1b..389ff1b9e 100644
--- a/stdlib/test/test/lux/data/sum.lux
+++ b/stdlib/test/test/lux/data/sum.lux
@@ -1,12 +1,12 @@
(;module:
lux
(lux [io]
- (control monad)
+ (control monad
+ pipe)
(data sum
[text "Text/" Monoid<Text>]
[number]
- (coll [list]))
- pipe)
+ (coll [list])))
lux/test)
(test: "Sum operations"
diff --git a/stdlib/test/test/lux/data/text.lux b/stdlib/test/test/lux/data/text.lux
index 4563d9b12..f306778ba 100644
--- a/stdlib/test/test/lux/data/text.lux
+++ b/stdlib/test/test/lux/data/text.lux
@@ -1,14 +1,14 @@
(;module:
lux
(lux [io]
- (control monad)
+ (control monad
+ pipe)
(data ["&" text]
[char]
text/format
[number]
(coll [list]))
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(test: "Size"
diff --git a/stdlib/test/test/lux/lexer.lux b/stdlib/test/test/lux/data/text/lexer.lux
index 0bfd8dec7..92aeca0d8 100644
--- a/stdlib/test/test/lux/lexer.lux
+++ b/stdlib/test/test/lux/data/text/lexer.lux
@@ -1,15 +1,15 @@
(;module:
lux
- (lux (control monad)
+ (lux (control monad
+ pipe)
[io]
(data [error #- fail]
[text "T/" Eq<Text>]
text/format
+ ["&" text/lexer]
[char "C/" Eq<Char>]
(coll [list]))
- ["R" math/random]
- pipe
- ["&" lexer])
+ ["R" math/random])
lux/test)
## [Utils]
diff --git a/stdlib/test/test/lux/lexer/regex.lux b/stdlib/test/test/lux/data/text/regex.lux
index 1a21111f8..e737d5ee4 100644
--- a/stdlib/test/test/lux/lexer/regex.lux
+++ b/stdlib/test/test/lux/data/text/regex.lux
@@ -1,18 +1,18 @@
(;module:
lux
(lux [io]
- (control monad)
+ (control monad
+ pipe)
(data [error #- fail]
[product]
[text "T/" Eq<Text>]
- text/format)
+ text/format
+ (text [lexer]
+ ["&" regex]))
[compiler]
(macro [ast]
["s" syntax #+ syntax:])
- ["R" math/random]
- pipe
- [lexer]
- (lexer ["&" regex]))
+ ["R" math/random])
lux/test)
## [Utils]
diff --git a/stdlib/test/test/lux/function/cont.lux b/stdlib/test/test/lux/function/cont.lux
index ba1224bb8..c2e36a06b 100644
--- a/stdlib/test/test/lux/function/cont.lux
+++ b/stdlib/test/test/lux/function/cont.lux
@@ -7,8 +7,7 @@
[number]
[product])
(function ["&" cont])
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(test: "Continuations"
diff --git a/stdlib/test/test/lux/function/reader.lux b/stdlib/test/test/lux/function/reader.lux
index 14b95af94..602efc603 100644
--- a/stdlib/test/test/lux/function/reader.lux
+++ b/stdlib/test/test/lux/function/reader.lux
@@ -1,12 +1,12 @@
(;module:
lux
(lux [io]
- (control monad)
+ (control monad
+ pipe)
(data [text "Text/" Monoid<Text>]
text/format
[number])
- (function ["&" reader])
- pipe)
+ (function ["&" reader]))
lux/test)
(test: "Readers"
diff --git a/stdlib/test/test/lux/function/state.lux b/stdlib/test/test/lux/function/state.lux
index 186b786e0..9ef61e4d3 100644
--- a/stdlib/test/test/lux/function/state.lux
+++ b/stdlib/test/test/lux/function/state.lux
@@ -1,13 +1,13 @@
(;module:
lux
(lux [io]
- (control monad)
+ (control monad
+ pipe)
(data [text "Text/" Monoid<Text>]
text/format
[number]
[product])
- (function ["&" state])
- pipe)
+ (function ["&" state]))
lux/test)
(test: "State"
diff --git a/stdlib/test/test/lux/function/thunk.lux b/stdlib/test/test/lux/function/thunk.lux
index e3e9aca1b..753398f77 100644
--- a/stdlib/test/test/lux/function/thunk.lux
+++ b/stdlib/test/test/lux/function/thunk.lux
@@ -3,7 +3,6 @@
(lux [io]
(control monad)
(function ["&" thunk])
- pipe
["R" math/random])
lux/test)
diff --git a/stdlib/test/test/lux/host.js.lux b/stdlib/test/test/lux/host.js.lux
index 7d79b2b87..b7dbe043f 100644
--- a/stdlib/test/test/lux/host.js.lux
+++ b/stdlib/test/test/lux/host.js.lux
@@ -4,8 +4,7 @@
(control monad)
(data text/format)
["&" host]
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(test: "JavaScript operations"
diff --git a/stdlib/test/test/lux/host.jvm.lux b/stdlib/test/test/lux/host.jvm.lux
index f58b706d5..4bd96ad62 100644
--- a/stdlib/test/test/lux/host.jvm.lux
+++ b/stdlib/test/test/lux/host.jvm.lux
@@ -1,14 +1,14 @@
(;module:
lux
(lux [io]
- (control monad)
+ (control monad
+ pipe)
(data text/format
[number]
[product]
[text "Text/" Eq<Text>])
["&" host #+ jvm-import class: interface: object]
- ["R" math/random]
- pipe)
+ ["R" math/random])
lux/test)
(jvm-import java.lang.Exception
diff --git a/stdlib/test/test/lux/macro/ast.lux b/stdlib/test/test/lux/macro/ast.lux
index 768dafbf8..95ac999a0 100644
--- a/stdlib/test/test/lux/macro/ast.lux
+++ b/stdlib/test/test/lux/macro/ast.lux
@@ -6,7 +6,6 @@
text/format
[number])
["R" math/random]
- pipe
(macro ["&" ast]))
lux/test)
diff --git a/stdlib/test/test/lux/macro/poly/eq.lux b/stdlib/test/test/lux/macro/poly/eq.lux
index c2f9c0ac1..3cd515fc6 100644
--- a/stdlib/test/test/lux/macro/poly/eq.lux
+++ b/stdlib/test/test/lux/macro/poly/eq.lux
@@ -9,7 +9,6 @@
[char]
[text])
["R" math/random]
- pipe
[macro]
(macro [poly #+ derived:]
["&" poly/eq]))
diff --git a/stdlib/test/test/lux/macro/poly/functor.lux b/stdlib/test/test/lux/macro/poly/functor.lux
index b98d75c7a..3294556a4 100644
--- a/stdlib/test/test/lux/macro/poly/functor.lux
+++ b/stdlib/test/test/lux/macro/poly/functor.lux
@@ -10,7 +10,6 @@
[char]
[text])
["R" math/random]
- pipe
[macro]
(macro [poly #+ derived:]
["&" poly/functor]))
diff --git a/stdlib/test/test/lux/macro/poly/text-encoder.lux b/stdlib/test/test/lux/macro/poly/text-encoder.lux
index ec312e62b..ec392fc8e 100644
--- a/stdlib/test/test/lux/macro/poly/text-encoder.lux
+++ b/stdlib/test/test/lux/macro/poly/text-encoder.lux
@@ -9,7 +9,6 @@
[char]
[text])
["R" math/random]
- pipe
[macro]
(macro [poly #+ derived:]
["&" poly/text-encoder]))
diff --git a/stdlib/test/test/lux/macro/syntax.lux b/stdlib/test/test/lux/macro/syntax.lux
index b9dd304e1..11d456236 100644
--- a/stdlib/test/test/lux/macro/syntax.lux
+++ b/stdlib/test/test/lux/macro/syntax.lux
@@ -11,7 +11,6 @@
[ident]
[error #- fail])
["R" math/random]
- pipe
[compiler]
(macro [ast]
["s" syntax #+ syntax: Syntax]))
diff --git a/stdlib/test/test/lux/math.lux b/stdlib/test/test/lux/math.lux
index 4d8b8d12a..2b834b9cc 100644
--- a/stdlib/test/test/lux/math.lux
+++ b/stdlib/test/test/lux/math.lux
@@ -9,7 +9,6 @@
(coll [list "List/" Fold<List> Functor<List>])
[product])
["R" math/random]
- pipe
["&" math])
lux/test)
diff --git a/stdlib/test/test/lux/math/logic/continuous.lux b/stdlib/test/test/lux/math/logic/continuous.lux
index fa08ec864..b1770c815 100644
--- a/stdlib/test/test/lux/math/logic/continuous.lux
+++ b/stdlib/test/test/lux/math/logic/continuous.lux
@@ -3,7 +3,6 @@
(lux [io]
(control monad)
["R" math/random]
- pipe
["&" math/logic/continuous])
lux/test)
diff --git a/stdlib/test/test/lux/math/logic/fuzzy.lux b/stdlib/test/test/lux/math/logic/fuzzy.lux
index afcd8b731..284fffa4b 100644
--- a/stdlib/test/test/lux/math/logic/fuzzy.lux
+++ b/stdlib/test/test/lux/math/logic/fuzzy.lux
@@ -8,7 +8,6 @@
[number]
text/format)
["R" math/random]
- pipe
(math/logic ["&" fuzzy]
continuous))
lux/test)
diff --git a/stdlib/test/test/lux/math/simple.lux b/stdlib/test/test/lux/math/simple.lux
index 32f5fb20c..9aec7f1fc 100644
--- a/stdlib/test/test/lux/math/simple.lux
+++ b/stdlib/test/test/lux/math/simple.lux
@@ -9,7 +9,6 @@
(coll [list "List/" Fold<List> Functor<List>])
[product])
["R" math/random]
- pipe
["&" math/simple])
lux/test)
diff --git a/stdlib/test/test/lux/type.lux b/stdlib/test/test/lux/type.lux
index e9401c738..d1098b960 100644
--- a/stdlib/test/test/lux/type.lux
+++ b/stdlib/test/test/lux/type.lux
@@ -1,14 +1,14 @@
(;module:
lux
(lux [io]
- (control monad)
+ (control monad
+ pipe)
(data [text "Text/" Monoid<Text>]
text/format
[number]
maybe
(coll [list]))
["R" math/random]
- pipe
["&" type])
lux/test)
diff --git a/stdlib/test/test/lux/type/auto.lux b/stdlib/test/test/lux/type/auto.lux
index 536e3b851..c7e321240 100644
--- a/stdlib/test/test/lux/type/auto.lux
+++ b/stdlib/test/test/lux/type/auto.lux
@@ -11,7 +11,6 @@
maybe
(coll [list]))
["R" math/random]
- pipe
[type]
type/auto)
lux/test)
@@ -32,4 +31,9 @@
(::: =
(list;n.range +1 +10)
(list;n.range +1 +10)))
+
+ (assert "Can automatically select third-order structures."
+ (let [lln (::: map (list;n.range +1)
+ (list;n.range +1 +10))]
+ (::: = lln lln)))
))
diff --git a/stdlib/test/test/lux/type/check.lux b/stdlib/test/test/lux/type/check.lux
index 47904c41b..d76a53622 100644
--- a/stdlib/test/test/lux/type/check.lux
+++ b/stdlib/test/test/lux/type/check.lux
@@ -8,7 +8,6 @@
maybe
(coll [list]))
["R" math/random]
- pipe
[type]
["&" type/check])
lux/test)
diff --git a/stdlib/test/tests.lux b/stdlib/test/tests.lux
index c773b3f17..6b23caebd 100644
--- a/stdlib/test/tests.lux
+++ b/stdlib/test/tests.lux
@@ -9,9 +9,6 @@
(lux ["_;" cli]
["_;" host]
["_;" io]
- ["_;" pipe]
- ["_;" lexer]
- (lexer ["_;" regex])
(function ["_;" cont]
["_;" reader]
["_;" state]
@@ -22,45 +19,44 @@
["_;" promise]
["_;" stm])
(control ["_;" effect]
- ["_;" interval])
- (data [bit]
- [bool]
- [char]
- [error]
- [ident]
- [identity]
- [log]
- [maybe]
- [number]
+ ["_;" interval]
+ ["_;" pipe])
+ (data ["_;" bit]
+ ["_;" bool]
+ ["_;" char]
+ ["_;" error]
+ ["_;" ident]
+ ["_;" identity]
+ ["_;" log]
+ ["_;" maybe]
+ ["_;" number]
(number ["_;" ratio]
["_;" complex])
- [product]
- [sum]
- [text]
- (error [exception])
- (format [json])
- (coll [array]
- [dict]
- [list]
- [queue]
- [set]
- [ordered]
- [stack]
- ## [vector]
- (tree [rose]
- [zipper])
+ ["_;" product]
+ ["_;" sum]
+ ["_;" text]
+ (error ["_;" exception])
+ (format ["_;" json])
+ (coll ["_;" array]
+ ["_;" dict]
+ ["_;" list]
+ ["_;" queue]
+ ["_;" set]
+ ["_;" ordered]
+ ["_;" stack]
+ ["_;" vector]
+ (tree ["_;" rose]
+ ["_;" zipper])
["_;" seq]
["_;" priority-queue]
["_;" stream])
- (text [format])
- )
+ (text ["_;" format]
+ ["_;" lexer]
+ ["_;" regex]))
["_;" math]
(math ["_;" simple]
(logic ["_;" continuous]
- ["_;" fuzzy])
- ## ["_;" random]
- )
- ## ["_;" macro]
+ ["_;" fuzzy]))
(macro ["_;" ast]
["_;" syntax]
(poly ["poly_;" eq]
@@ -69,7 +65,13 @@
["_;" type]
(type ["_;" check]
["_;" auto])
- )))
+ ))
+ (lux (control [contract])
+ (data [env]
+ [trace]
+ [store])
+ [macro]
+ (math [random])))
## [Program]
(program: args