diff options
Diffstat (limited to 'test/optionals.tm')
| -rw-r--r-- | test/optionals.tm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/optionals.tm b/test/optionals.tm index e2cdf9a6..26e825ae 100644 --- a/test/optionals.tm +++ b/test/optionals.tm @@ -83,6 +83,15 @@ func main(): 5 = 5? : Int? + >> (5?):or_else(-1) + = 5 : Int + + >> (5?):or_fail() + = 5 : Int + + >> (!Int):or_else(-1) + = -1 : Int + do: !! Ints: >> yep := maybe_int(yes) |
