aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-03-17 21:48:53 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-03-17 21:48:53 -0400
commit47f627f5dd2ac695c4c3f1fd879606ba7d1052a0 (patch)
tree75266df787c9a37c5a7d9f89838ceb10f5714530
parent03b223ac51766b264908aab51e433a6851d5f8b8 (diff)
Update test
-rw-r--r--test/enums.tm7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/enums.tm b/test/enums.tm
index ccf37f9d..6dde3601 100644
--- a/test/enums.tm
+++ b/test/enums.tm
@@ -25,3 +25,10 @@ enum Foo(Zero, One(x:Int), Two(x,y:Int))
= "found"
>> t[Foo.Zero()]
= "missing"
+
+when x is o:One
+ >> o.x
+ = 123
+else
+ fail("Oops")
+