aboutsummaryrefslogtreecommitdiffstats
path: root/progs/tests
diff options
context:
space:
mode:
authorEdvard Thörnros <edvard.thornros@gmail.com>2021-03-08 17:18:58 +0100
committerEdvard Thörnros <edvard.thornros@gmail.com>2021-03-08 17:18:58 +0100
commitc2eddfeb7f0733b8676ddb22636f1054ae141b33 (patch)
treed05d23703ff1002c3882d519f53a84c609137e56 /progs/tests
parente9282cc37813c2632b2e55329343a6ab233b4cc9 (diff)
downloadsylt-c2eddfeb7f0733b8676ddb22636f1054ae141b33.tar.gz
add more tests to tuples
Diffstat (limited to 'progs/tests')
-rw-r--r--progs/tests/tuples.sy11
1 files changed, 11 insertions, 0 deletions
diff --git a/progs/tests/tuples.sy b/progs/tests/tuples.sy
index 74f2701..51f0b37 100644
--- a/progs/tests/tuples.sy
+++ b/progs/tests/tuples.sy
@@ -9,4 +9,15 @@ start :: fn {
empty := ()
c := (empty,)
c[0] <=> ()
+
+ a := (1,2)
+ a[0] <=> a[1]
+
+ {
+ q := a[0]
+ w := a[0]
+ q + w
+ q - w
+ q * w
+ }
}