aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/debug.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/test/lux/debug.lux20
1 files changed, 10 insertions, 10 deletions
diff --git a/stdlib/source/test/lux/debug.lux b/stdlib/source/test/lux/debug.lux
index 80f78b281..d912904ec 100644
--- a/stdlib/source/test/lux/debug.lux
+++ b/stdlib/source/test/lux/debug.lux
@@ -78,14 +78,14 @@
sample_frac random.frac]
(in (`` (and (case (/.representation (type [Bit Int Frac])
[sample_bit sample_int sample_frac])
- {#try.Success actual}
+ {try.#Success actual}
(text\= (format "[" (%.bit sample_bit)
" " (%.int sample_int)
" " (%.frac sample_frac)
"]")
actual)
- {#try.Failure error}
+ {try.#Failure error}
false)
... TODO: Uncomment after switching from the old (tag+last?) to the new (lefts+right?) representation for variants
... (~~ (template [<lefts> <right?> <value> <format>]
@@ -179,16 +179,16 @@
(try\each (text\= (%.maybe %.nat <sample>)))
(try.else false))]
- [{#.Some sample_nat}]
- [#.None]
+ [{.#Some sample_nat}]
+ [{.#None}]
))
)))
(_.cover [/.cannot_represent_value]
(case (/.representation (-> Nat Nat) (|>>))
- {#try.Success representation}
+ {try.#Success representation}
false
- {#try.Failure error}
+ {try.#Failure error}
(exception.match? /.cannot_represent_value error)))
)))
@@ -219,11 +219,11 @@
(syntax: (macro_error [macro <code>.any])
(function (_ compiler)
(case ((macro.expansion macro) compiler)
- {#try.Failure error}
- {#try.Success [compiler (list (code.text error))]}
+ {try.#Failure error}
+ {try.#Success [compiler (list (code.text error))]}
- {#try.Success _}
- {#try.Failure "OOPS!"})))
+ {try.#Success _}
+ {try.#Failure "OOPS!"})))
(type: My_Text
Text)