aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/control/concurrency/semaphore.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/test/lux/control/concurrency/semaphore.lux')
-rw-r--r--stdlib/source/test/lux/control/concurrency/semaphore.lux16
1 files changed, 8 insertions, 8 deletions
diff --git a/stdlib/source/test/lux/control/concurrency/semaphore.lux b/stdlib/source/test/lux/control/concurrency/semaphore.lux
index 44b2241f3..da3c90bae 100644
--- a/stdlib/source/test/lux/control/concurrency/semaphore.lux
+++ b/stdlib/source/test/lux/control/concurrency/semaphore.lux
@@ -45,10 +45,10 @@
[result (async.within ..delay (/.wait! semaphore))]
(_.cover' [/.semaphore]
(case result
- {#.Some _}
+ {.#Some _}
true
- #.None
+ {.#None}
false)))))
(do [! random.monad]
[initial_open_positions (|> random.nat (\ ! each (|>> (n.% 10) (n.max 1))))
@@ -58,10 +58,10 @@
result (async.within ..delay (/.wait! semaphore))]
(_.cover' [/.wait!]
(case result
- {#.Some _}
+ {.#Some _}
false
- #.None
+ {.#None}
true)))))
(do [! random.monad]
[initial_open_positions (|> random.nat (\ ! each (|>> (n.% 10) (n.max 1))))
@@ -74,7 +74,7 @@
result/1 (async.within ..delay block)]
(_.cover' [/.signal!]
(case [result/0 result/1 open_positions]
- [#.None {#.Some _} {#try.Success +0}]
+ [{.#None} {.#Some _} {try.#Success +0}]
true
_
@@ -86,7 +86,7 @@
[outcome (/.signal! semaphore)]
(_.cover' [/.semaphore_is_maxed_out]
(case outcome
- {#try.Failure error}
+ {try.#Failure error}
(exception.match? /.semaphore_is_maxed_out error)
_
@@ -145,10 +145,10 @@
[raw random.nat]
(_.cover [/.Limit /.limit]
(case [raw (/.limit raw)]
- [0 #.None]
+ [0 {.#None}]
true
- [_ {#.Some limit}]
+ [_ {.#Some limit}]
(and (n.> 0 raw)
(n.= raw (refinement.value limit)))