From 0256972ca6452cf06f8f81c7ddb7bf8e7d9b538a Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 3 Mar 2024 13:38:27 -0500 Subject: Fix test --- test/enums.tm | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'test') 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" -- cgit v1.2.3