aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/enums.nl15
1 files changed, 15 insertions, 0 deletions
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