diff options
author | Eduardo Julian | 2017-09-19 21:52:42 -0400 |
---|---|---|
committer | Eduardo Julian | 2017-09-19 21:52:42 -0400 |
commit | 70534ffd9c346ac23f9d5574b9c7820dccebc350 (patch) | |
tree | e2370a43a8bb2bdcb349d5bbbe477312859365f3 /stdlib/test/test/lux.lux | |
parent | e717f33e192a5969760c033c47f9c4709485dd76 (diff) |
- Some refactoring.
- Moved "assume" and "default" to lux/data/maybe.
Diffstat (limited to '')
-rw-r--r-- | stdlib/test/test/lux.lux | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/stdlib/test/test/lux.lux b/stdlib/test/test/lux.lux index 41b3bc555..546d7f14f 100644 --- a/stdlib/test/test/lux.lux +++ b/stdlib/test/test/lux.lux @@ -5,7 +5,8 @@ [io] [math] ["R" math/random] - (data [text "T/" Eq<Text>] + (data [maybe] + [text "T/" Eq<Text>] text/format) [macro] (macro ["s" syntax #+ syntax:]))) @@ -161,10 +162,10 @@ false))) (test "Can have defaults for Maybe values." - (and (is "yolo" (default "yolo" + (and (is "yolo" (maybe;default "yolo" #;None)) - (is "lol" (default "yolo" + (is "lol" (maybe;default "yolo" (#;Some "lol"))))) )) |