aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-03-03 13:38:27 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-03-03 13:38:27 -0500
commit0256972ca6452cf06f8f81c7ddb7bf8e7d9b538a (patch)
tree6b01540f070825a0135205481882c1411e6c8f6f
parentbf5a7253458ec5b3f4fe054b3b2f5f80211c1892 (diff)
Fix test
-rw-r--r--test/enums.tm18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/enums.tm b/test/enums.tm
index 31a93f84..ccf37f9d 100644
--- a/test/enums.tm
+++ b/test/enums.tm
@@ -1,27 +1,27 @@
enum Foo(Zero, One(x:Int), Two(x,y:Int))
->> Foo__Zero()
+>> Foo.Zero()
= Foo.Zero()
->> Foo__One(123)
+>> Foo.One(123)
= Foo.One(x=123)
->> Foo__Two(123, 456)
+>> Foo.Two(123, 456)
= Foo.Two(x=123, y=456)
->> Foo__One(10) == Foo__One(10)
+>> Foo.One(10) == Foo.One(10)
= yes
->> Foo__One(10) == Foo__Zero()
+>> Foo.One(10) == Foo.Zero()
= no
->> Foo__One(10) == Foo__One(-1)
+>> Foo.One(10) == Foo.One(-1)
= no
->> Foo__One(10) < Foo__Two(1, 2)
+>> Foo.One(10) < Foo.Two(1, 2)
= yes
->> x := Foo__One(123)
+>> x := Foo.One(123)
>> t := {x=>"found"; default="missing"}
>> t[x]
= "found"
->> t[Foo__Zero()]
+>> t[Foo.Zero()]
= "missing"