aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/optionals.tm5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/optionals.tm b/test/optionals.tm
index 2ccdf392..5aefedf4 100644
--- a/test/optionals.tm
+++ b/test/optionals.tm
@@ -326,3 +326,8 @@ func main():
>> [Struct(5,"A")?, Struct(6,"B"), Struct(7,"C")]
= [Struct(x=5, y="A"), Struct(x=6, y="B"), Struct(x=7, y="C")]
+
+ if 5? or no:
+ say("Binary op 'or' works with optionals")
+ else:
+ fail("Failed to do binary op 'or' on optional")