From 911b39dad1a5d6d2f655fd1f98c9fb22fe2fb406 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 24 Feb 2024 15:27:27 -0500 Subject: Update tests --- tests/enums.nl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tests') diff --git a/tests/enums.nl b/tests/enums.nl index 485a262b..8ba90fe6 100644 --- a/tests/enums.nl +++ b/tests/enums.nl @@ -1,5 +1,20 @@ enum Foo(Zero, One(x:Int), Two(x,y:Int)) >> Foo__Zero() += Foo.Zero() >> Foo__One(123) += Foo.One(x=123) >> Foo__Two(123, 456) += Foo.Two(x=123, y=456) + +>> Foo__One(10) == Foo__One(10) += yes + +>> Foo__One(10) == Foo__Zero() += no + +>> Foo__One(10) == Foo__One(-1) += no + +>> Foo__One(10) < Foo__Two(1, 2) += yes -- cgit v1.2.3