aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/control/reader.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/test/lux/control/reader.lux')
-rw-r--r--stdlib/source/test/lux/control/reader.lux9
1 files changed, 5 insertions, 4 deletions
diff --git a/stdlib/source/test/lux/control/reader.lux b/stdlib/source/test/lux/control/reader.lux
index 434ec5896..4ad1e2a45 100644
--- a/stdlib/source/test/lux/control/reader.lux
+++ b/stdlib/source/test/lux/control/reader.lux
@@ -9,6 +9,7 @@
["$." apply]
["$." monad]]}]
[data
+ ["." name]
[number
["n" nat]]
[text
@@ -32,7 +33,7 @@
(def: #export test
Test
- (<| (_.context (%.name (name-of /._)))
+ (<| (_.context (name.module (name-of /._)))
(do r.monad
[sample r.nat
factor r.nat]
@@ -41,14 +42,14 @@
($apply.spec ..injection ..comparison /.apply)
($monad.spec ..injection ..comparison /.monad)
- (_.test "Can query the environment."
+ (_.test (%.name (name-of /.ask))
(n.= sample
(/.run sample /.ask)))
- (_.test "Can modify an environment locally."
+ (_.test (%.name (name-of /.local))
(n.= (n.* factor sample)
(/.run sample (/.local (n.* factor) /.ask))))
(let [(^open "io@.") io.monad]
- (_.test "Can add reader functionality to any monad."
+ (_.test (%.name (name-of /.with))
(|> (: (/.Reader Any (IO Nat))
(do (/.with io.monad)
[a (/.lift (io@wrap sample))