aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-24 15:27:27 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-24 15:27:27 -0500
commit911b39dad1a5d6d2f655fd1f98c9fb22fe2fb406 (patch)
treef734390f0dccc5b79fc4ae68969dc188367ebc6c /tests
parent106704b9564b50e95dfce50b7a7471e73b64a78e (diff)
Update tests
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