aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEdvard Thörnros <edvard.thornros@gmail.com>2021-01-31 20:53:18 +0100
committerEdvard Thörnros <edvard.thornros@gmail.com>2021-01-31 20:53:18 +0100
commit0499cbf559fee79ec895dbbe30b9fed5962426ff (patch)
treeed59600007fb77fe30a7ac410f6992312bbe9167 /src
parentbdcdbf7d65b7a05216c33f802f1f1646e1f68718 (diff)
downloadsylt-0499cbf559fee79ec895dbbe30b9fed5962426ff.tar.gz
tuple tests
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index c7841f7..d07f2a3 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -306,6 +306,14 @@ a() <=> 4
5 <=> a.a + a.b"
);
+ test_multiple!(tuples,
+ add: "(1, 2, 3, 4) + (4, 3, 2, 1) <=> (5, 5, 5, 5)",
+ sub: "(1, -2, 3, -4) - (4, 3, -2, -1) <=> (-3, 1, 1, -5)",
+ mul: "(0, 1, 2) * (2, 3, 4) <=> (0, 3, 8)",
+ types: "a: (int, float, int) = (1, 1., 1)",
+ more_types: "a: (str, bool, int) = (\"abc\", true, 1)",
+ );
+
test_file!(scoping, "tests/scoping.tdy");
test_file!(for_, "tests/for.tdy");
}