aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/test/lux.lux')
-rw-r--r--stdlib/source/test/lux.lux92
1 files changed, 46 insertions, 46 deletions
diff --git a/stdlib/source/test/lux.lux b/stdlib/source/test/lux.lux
index e8a6a482d..743c108f7 100644
--- a/stdlib/source/test/lux.lux
+++ b/stdlib/source/test/lux.lux
@@ -371,7 +371,7 @@
))
(_.cover [/.Ann]
(|> example
- (value@ /.#meta)
+ (the /.#meta)
(location#= location.dummy)))
)))
@@ -382,7 +382,7 @@
"This is an arbitrary text whose only purpose is to be found, somewhere, in the source-code.")
(/.macro: (found_crosshair? tokens lux)
- (let [[_ _ source_code] (value@ .#source lux)]
+ (let [[_ _ source_code] (the .#source lux)]
{.#Right [lux (list (code.bit (text.contains? ..crosshair source_code)))]}))
(/.macro: (sum tokens)
@@ -762,72 +762,72 @@
#big_right [#small_left start/s
#small_right text]]]]
($_ _.and
- (_.cover [/.value@]
+ (_.cover [/.the]
(and (and (|> sample
- (/.value@ #big_left)
+ (/.the #big_left)
(same? start/b))
(|> sample
- ((/.value@ #big_left))
+ ((/.the #big_left))
(same? start/b)))
(and (|> sample
- (/.value@ [#big_right #small_left])
+ (/.the [#big_right #small_left])
(same? start/s))
(|> sample
- ((/.value@ [#big_right #small_left]))
+ ((/.the [#big_right #small_left]))
(same? start/s)))))
- (_.cover [/.with@]
+ (_.cover [/.has]
(and (and (|> sample
- (/.with@ #big_left shift/b)
- (/.value@ #big_left)
+ (/.has #big_left shift/b)
+ (/.the #big_left)
(same? shift/b))
(|> sample
- ((/.with@ #big_left shift/b))
- (/.value@ #big_left)
+ ((/.has #big_left shift/b))
+ (/.the #big_left)
(same? shift/b))
(|> sample
- ((/.with@ #big_left) shift/b)
- (/.value@ #big_left)
+ ((/.has #big_left) shift/b)
+ (/.the #big_left)
(same? shift/b)))
(and (|> sample
- (/.with@ [#big_right #small_left] shift/s)
- (/.value@ [#big_right #small_left])
+ (/.has [#big_right #small_left] shift/s)
+ (/.the [#big_right #small_left])
(same? shift/s))
(|> sample
- ((/.with@ [#big_right #small_left] shift/s))
- (/.value@ [#big_right #small_left])
+ ((/.has [#big_right #small_left] shift/s))
+ (/.the [#big_right #small_left])
(same? shift/s))
(|> sample
- ((/.with@ [#big_right #small_left]) shift/s)
- (/.value@ [#big_right #small_left])
+ ((/.has [#big_right #small_left]) shift/s)
+ (/.the [#big_right #small_left])
(same? shift/s)))))
- (_.cover [/.revised@]
+ (_.cover [/.revised]
(and (and (|> sample
- (/.revised@ #big_left (n.+ shift/b))
- (/.value@ #big_left)
+ (/.revised #big_left (n.+ shift/b))
+ (/.the #big_left)
(n.= expected/b))
(|> sample
- ((/.revised@ #big_left (n.+ shift/b)))
- (/.value@ #big_left)
+ ((/.revised #big_left (n.+ shift/b)))
+ (/.the #big_left)
(n.= expected/b))
(|> sample
((: (-> (-> Nat Nat) (-> Big Big))
- (/.revised@ #big_left))
+ (/.revised #big_left))
(n.+ shift/b))
- (/.value@ #big_left)
+ (/.the #big_left)
(n.= expected/b)))
(and (|> sample
- (/.revised@ [#big_right #small_left] (n.+ shift/s))
- (/.value@ [#big_right #small_left])
+ (/.revised [#big_right #small_left] (n.+ shift/s))
+ (/.the [#big_right #small_left])
(n.= expected/s))
(|> sample
- ((/.revised@ [#big_right #small_left] (n.+ shift/s)))
- (/.value@ [#big_right #small_left])
+ ((/.revised [#big_right #small_left] (n.+ shift/s)))
+ (/.the [#big_right #small_left])
(n.= expected/s))
(|> sample
((: (-> (-> Nat Nat) (-> Big Big))
- (/.revised@ [#big_right #small_left]))
+ (/.revised [#big_right #small_left]))
(n.+ shift/s))
- (/.value@ [#big_right #small_left])
+ (/.the [#big_right #small_left])
(n.= expected/s)))))
)))
@@ -1042,11 +1042,11 @@
(/.case [..#left expected_nat ..#right expected_int]
(/.^ (!pair 0 +0)) true
_ false))
- (_.cover [/.^@]
+ (_.cover [/.^let]
(let [expected_pair (: (Pair Nat Int)
[..#left expected_nat ..#right expected_int])]
(/.case expected_pair
- (/.^@ actual_pair (/.^ (!pair actual_left actual_right)))
+ (/.^let actual_pair (/.^ (!pair actual_left actual_right)))
(and (/.same? expected_pair actual_pair)
(/.same? expected_nat actual_left)
(/.same? expected_int actual_right)))))
@@ -1140,13 +1140,13 @@
(syntax: (for_meta|Info [])
(function (_ lux)
- (let [info (value@ .#info lux)
+ (let [info (the .#info lux)
conforming_target!
- (set.member? ..possible_targets (value@ .#target info))
+ (set.member? ..possible_targets (the .#target info))
compiling!
- (case (value@ .#mode info)
+ (case (the .#mode info)
{.#Build} true
_ false)]
{.#Right [lux (list (code.bit (and conforming_target!
@@ -1155,7 +1155,7 @@
(syntax: (for_meta|Module_State [])
(do meta.monad
[prelude_module (meta.module .prelude_module)]
- (in (list (code.bit (case (value@ .#module_state prelude_module)
+ (in (list (code.bit (case (the .#module_state prelude_module)
{.#Active} false
_ true))))))
@@ -1192,22 +1192,22 @@
let/2 <code>.local_symbol
let/3 <code>.local_symbol])
- (in (list (code.bit (case (value@ .#scopes *lux*)
+ (in (list (code.bit (case (the .#scopes *lux*)
(^ (list& scope/2 _))
- (let [locals/2 (value@ .#locals scope/2)
+ (let [locals/2 (the .#locals scope/2)
expected_locals/2 (set.of_list text.hash (list fn/2 var/2 let/2
let/3))
actual_locals/2 (|> locals/2
- (value@ .#mappings)
+ (the .#mappings)
(list#each product.left)
(set.of_list text.hash))
correct_locals!
- (and (n.= 4 (value@ .#counter locals/2))
+ (and (n.= 4 (the .#counter locals/2))
(set#= expected_locals/2
actual_locals/2))
- captured/2 (value@ .#captured scope/2)
+ captured/2 (the .#captured scope/2)
local? (: (-> Ref Bit)
(function (_ ref)
@@ -1219,13 +1219,13 @@
binding? (: (-> (-> Ref Bit) Text Bit)
(function (_ is? name)
(|> captured/2
- (value@ .#mappings)
+ (the .#mappings)
(plist.value name)
(maybe#each (|>> product.right is?))
(maybe.else false))))
correct_closure!
- (and (n.= 6 (value@ .#counter captured/2))
+ (and (n.= 6 (the .#counter captured/2))
(binding? local? fn/1)
(binding? local? var/1)
(binding? local? let/1)