aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"