aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-15 16:42:42 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-15 16:42:42 -0400
commit835eb7e89627eea923bfd57bdacba7065c6b1d4c (patch)
tree68fd9832252e728ccf0c7277a5a2f492e41c261c /test
parentfb37b0ee4253651cab10b41cc2e1f536b17b26d4 (diff)
Add optional:or_exit(...)
Diffstat (limited to 'test')
-rw-r--r--test/optionals.tm3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/optionals.tm b/test/optionals.tm
index ced42274..05008e20 100644
--- a/test/optionals.tm
+++ b/test/optionals.tm
@@ -89,6 +89,9 @@ func main():
>> (5?):or_fail()
= 5 : Int
+ >> (5?):or_exit()
+ = 5 : Int
+
>> (!Int):or_else(-1)
= -1 : Int