aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/macro.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/test/lux/macro.lux64
1 files changed, 32 insertions, 32 deletions
diff --git a/stdlib/source/test/lux/macro.lux b/stdlib/source/test/lux/macro.lux
index 2266d973a..db57938a1 100644
--- a/stdlib/source/test/lux/macro.lux
+++ b/stdlib/source/test/lux/macro.lux
@@ -39,7 +39,7 @@
(template: (!global <definition>)
[(: [Text .Global]
- [(template.text [<definition>]) {#.Definition [true .Macro <definition>]}])])
+ [(template.text [<definition>]) {.#Definition [true .Macro <definition>]}])])
(syntax: (pow/2 [number <code>.any])
(in (list (` (nat.* (~ number) (~ number))))))
@@ -65,40 +65,40 @@
current_module (name.module (name_of .._))]]
(in [seed
identifier_prefix
- [#.info [#.target ""
- #.version ""
- #.mode #.Build]
- #.source [location.dummy 0 ""]
- #.location location.dummy
- #.current_module {#.Some current_module}
- #.modules (list [macro_module
- [#.module_hash 0
- #.module_aliases (list)
- #.definitions (: (List [Text .Global])
+ [.#info [.#target ""
+ .#version ""
+ .#mode {.#Build}]
+ .#source [location.dummy 0 ""]
+ .#location location.dummy
+ .#current_module {.#Some current_module}
+ .#modules (list [macro_module
+ [.#module_hash 0
+ .#module_aliases (list)
+ .#definitions (: (List [Text .Global])
(list (!global /.log_single_expansion!)
(!global /.log_expansion!)
(!global /.log_full_expansion!)))
- #.imports (list)
- #.module_state #.Active]]
+ .#imports (list)
+ .#module_state {.#Active}]]
[current_module
- [#.module_hash 0
- #.module_aliases (list)
- #.definitions (: (List [Text .Global])
+ [.#module_hash 0
+ .#module_aliases (list)
+ .#definitions (: (List [Text .Global])
(list (!global ..pow/2)
(!global ..pow/4)
(!global ..repeated)))
- #.imports (list)
- #.module_state #.Active]])
- #.scopes (list)
- #.type_context [#.ex_counter 0
- #.var_counter 0
- #.var_bindings (list)]
- #.expected #.None
- #.seed seed
- #.scope_type_vars (list)
- #.extensions []
- #.eval (:as (-> Type Code (Meta Any)) [])
- #.host []]])))
+ .#imports (list)
+ .#module_state {.#Active}]])
+ .#scopes (list)
+ .#type_context [.#ex_counter 0
+ .#var_counter 0
+ .#var_bindings (list)]
+ .#expected {.#None}
+ .#seed seed
+ .#scope_type_vars (list)
+ .#extensions []
+ .#eval (:as (-> Type Code (Meta Any)) [])
+ .#host []]])))
(def: expander
Test
@@ -140,7 +140,7 @@
(bit\= (not (nat.= 1 repetitions))
(|> (/.one_expansion (` (..repeated (~ (code.nat repetitions)) (~ pow/1))))
(meta.result lux)
- (!expect {#try.Failure _}))))
+ (!expect {try.#Failure _}))))
))))
(def: .public test
@@ -154,13 +154,13 @@
(|> (/.identifier identifier_prefix)
(\ meta.monad each %.code)
(meta.result lux)
- (!expect (^multi {#try.Success actual_identifier}
+ (!expect (^multi {try.#Success actual_identifier}
(and (text.contains? identifier_prefix actual_identifier)
(text.contains? (%.nat seed) actual_identifier))))))
(_.cover [/.wrong_syntax_error]
(|> (/.single_expansion (` (/.log_single_expansion!)))
(meta.result lux)
- (!expect (^multi {#try.Failure error}
+ (!expect (^multi {try.#Failure error}
(text.contains? (/.wrong_syntax_error (name_of /.log_single_expansion!))
error)))))
(_.cover [/.with_identifiers]
@@ -168,7 +168,7 @@
(|> (/.with_identifiers [<expected>]
(\ meta.monad in <expected>))
(meta.result lux)
- (!expect (^multi {#try.Success [_ {#.Identifier ["" actual]}]}
+ (!expect (^multi {try.#Success [_ {.#Identifier ["" actual]}]}
(text.contains? (template.text [<expected>])
actual))))))
))