commit 4fa79fce9d13130a1990c2ee95da1dc7a20afce8
parent 7630d14f36ebcf5a09aca2296c8a6bc00d5549cd
Author: Eyal Sawady <ecs@d2evs.net>
Date: Wed, 10 Feb 2021 13:50:02 -0500
Update tuple test for flexible constants
Diffstat:
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/tests/21-tuples.ha b/tests/21-tuples.ha
@@ -1,20 +1,20 @@
fn storage() void = {
- let x: (int, size) = (42, 1337z);
- assert(size((int, size)) == size(size) * 2z);
+ let x: (int, size) = (42, 1337);
+ assert(size((int, size)) == size(size) * 2);
let ptr = &x: *struct { i: int, z: size };
- assert(ptr.i == 42 && ptr.z == 1337z);
+ assert(ptr.i == 42 && ptr.z == 1337);
};
fn indexing() void = {
- let x: (int, size) = (42, 1337z);
- assert(x.0 == 42 && x.1 == 1337z);
+ let x: (int, size) = (42, 1337);
+ assert(x.0 == 42 && x.1 == 1337);
};
-fn func(in: (int, size)) (int, size) = (in.0 + 1, in.1 + 1z);
+fn func(in: (int, size)) (int, size) = (in.0 + 1, in.1 + 1);
fn funcs() void = {
- let x = func((41, 1336z));
- assert(x.0 == 42 && x.1 == 1337z);
+ let x = func((41, 1336));
+ assert(x.0 == 42 && x.1 == 1337);
};
export fn main() void = {