aboutsummaryrefslogtreecommitdiff
path: root/test/enums.tm
diff options
context:
space:
mode:
Diffstat (limited to 'test/enums.tm')
-rw-r--r--test/enums.tm10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/enums.tm b/test/enums.tm
index 553fcf84..65ef6398 100644
--- a/test/enums.tm
+++ b/test/enums.tm
@@ -36,11 +36,11 @@ func main():
= yes
>> x := Foo.One(123)
- >> t := {x:"found"; default="missing"}
- >> t[x]
- = "found"
- >> t[Foo.Zero]
- = "missing"
+ >> t := {x}
+ >> t:has(x)
+ = yes
+ >> t:has(Foo.Zero)
+ = no
>> choose_text(Foo.Zero)
= "Zero"