diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/optionals.tm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/optionals.tm b/test/optionals.tm index 5c18d58d..a3f33d6c 100644 --- a/test/optionals.tm +++ b/test/optionals.tm @@ -274,3 +274,13 @@ func main(): >> maybe_int(yes)! = 123 : Int + + # Test comparisons, hashing, equality: + >> (!Int == 5?) + = no + >> (5? == 5?) + = yes + >> {!Int, !Int} + = {!Int} + >> [5?, !Int, !Int, 6?]:sorted() + = [!Int, !Int, 5?, 6?] |
