aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/world
diff options
context:
space:
mode:
authorEduardo Julian2022-03-15 07:24:35 -0400
committerEduardo Julian2022-03-15 07:24:35 -0400
commitbc36487224f670c23002cc4575c0dba3e5dc1be1 (patch)
tree01601f7e5d992ace77a16cfa90240ffc4511a7af /stdlib/source/test/lux/world
parent4ef1ac1dfe0edd1a11bb7f1fd13c8b6cb8f1bab4 (diff)
De-sigil-ification: ^
Diffstat (limited to 'stdlib/source/test/lux/world')
-rw-r--r--stdlib/source/test/lux/world/file.lux6
-rw-r--r--stdlib/source/test/lux/world/file/watch.lux6
2 files changed, 7 insertions, 5 deletions
diff --git a/stdlib/source/test/lux/world/file.lux b/stdlib/source/test/lux/world/file.lux
index 5c05b5437..f494b7705 100644
--- a/stdlib/source/test/lux/world/file.lux
+++ b/stdlib/source/test/lux/world/file.lux
@@ -17,6 +17,8 @@
[collection
["[0]" dictionary {"+" Dictionary}]
["[0]" list]]]
+ [macro
+ ["^" pattern]]
[math
["[0]" random]]
[time
@@ -70,8 +72,8 @@
[now instant.now
disk' (atom.read! disk)]
(case (dictionary.value @ disk')
- (^or {.#None}
- {.#Some {.#Left _}})
+ (^.or {.#None}
+ {.#Some {.#Left _}})
(do !
[_ (atom.compare_and_swap! disk' (dictionary.has @ {.#Left [now it]} disk') disk)]
(case (/.parent fs @)
diff --git a/stdlib/source/test/lux/world/file/watch.lux b/stdlib/source/test/lux/world/file/watch.lux
index cd7c95c46..cbdb160d9 100644
--- a/stdlib/source/test/lux/world/file/watch.lux
+++ b/stdlib/source/test/lux/world/file/watch.lux
@@ -104,7 +104,7 @@
poll/pre (# watcher poll [])
poll/post (# watcher poll [])]
(in (and (case poll/pre
- (^ (list [concern actual_path]))
+ (pattern (list [concern actual_path]))
(and (text#= expected_path actual_path)
(and (/.creation? concern)
(not (/.modification? concern))
@@ -122,7 +122,7 @@
poll/2 (# watcher poll [])
poll/2' (# watcher poll [])]
(in (and (case poll/2
- (^ (list [concern actual_path]))
+ (pattern (list [concern actual_path]))
(and (text#= expected_path actual_path)
(and (not (/.creation? concern))
(/.modification? concern)
@@ -139,7 +139,7 @@
poll/3 (# watcher poll [])
poll/3' (# watcher poll [])]
(in (and (case poll/3
- (^ (list [concern actual_path]))
+ (pattern (list [concern actual_path]))
(and (not (/.creation? concern))
(not (/.modification? concern))
(/.deletion? concern))