commit 090543b5f6f4c6b8afac7203ba40e2ba51a7895a
parent 077408eea9e6e59728857497a89d7616e74c94f7
Author: Sebastian <sebastian@sebsite.pw>
Date: Mon, 10 Oct 2022 17:30:22 -0400
tests: style
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/tests/06-structs.ha b/tests/06-structs.ha
@@ -132,12 +132,12 @@ fn autofill() void = {
let x = coords { x = 10, ... };
assert(x.x == 10 && x.y == 0);
- assert(g1.a==0 && g1.b == 4 && g1.x == -1 && g1.y == -2 && g1.z == -3 && g1.f == 20);
- assert(g2.a==0 && g2.b==0 && g2.x == -1 && g2.y == -2 && g2.z == -3 && g2.f == 20);
- assert(g3.a==0 && g3.b==0 && g3.x==0 && g3.y == -2 && g3.z == -3 && g3.f == 20);
- assert(g4.a==0 && g4.b==0 && g4.x==0 && g4.y==0 && g4.z == -3 && g4.f == 20);
- assert(g5.a==0 && g5.b==0 && g5.x==0 && g5.y==0 && g5.z==0 && g5.f == 20);
- assert(g6.a==0 && g6.b==0 && g6.x==0 && g6.y==0 && g6.z==0 && g6.f==0 );
+ assert(g1.a == 0 && g1.b == 4 && g1.x == -1 && g1.y == -2 && g1.z == -3 && g1.f == 20);
+ assert(g2.a == 0 && g2.b == 0 && g2.x == -1 && g2.y == -2 && g2.z == -3 && g2.f == 20);
+ assert(g3.a == 0 && g3.b == 0 && g3.x == 0 && g3.y == -2 && g3.z == -3 && g3.f == 20);
+ assert(g4.a == 0 && g4.b == 0 && g4.x == 0 && g4.y == 0 && g4.z == -3 && g4.f == 20);
+ assert(g5.a == 0 && g5.b == 0 && g5.x == 0 && g5.y == 0 && g5.z == 0 && g5.f == 20);
+ assert(g6.a == 0 && g6.b == 0 && g6.x == 0 && g6.y == 0 && g6.z == 0 && g6.f == 0 );
let l1: me = me { b = 4, x = -1, y = -2, z = -3, f = 20, ... };
let l2: me = me { x = -1, y = -2, z = -3, f = 20, ... };
@@ -146,12 +146,12 @@ fn autofill() void = {
let l5: me = me { f = 20, ... };
let l6: me = me { ... };
- assert(l1.a==0 && l1.b == 4 && l1.x == -1 && l1.y == -2 && l1.z == -3 && l1.f == 20);
- assert(l2.a==0 && l2.b==0 && l2.x == -1 && l2.y == -2 && l2.z == -3 && l2.f == 20);
- assert(l3.a==0 && l3.b==0 && l3.x==0 && l3.y == -2 && l3.z == -3 && l3.f == 20);
- assert(l4.a==0 && l4.b==0 && l4.x==0 && l4.y==0 && l4.z == -3 && l4.f == 20);
- assert(l5.a==0 && l5.b==0 && l5.x==0 && l5.y==0 && l5.z==0 && l5.f == 20);
- assert(l6.a==0 && l6.b==0 && l6.x==0 && l6.y==0 && l6.z==0 && l6.f==0 );
+ assert(l1.a == 0 && l1.b == 4 && l1.x == -1 && l1.y == -2 && l1.z == -3 && l1.f == 20);
+ assert(l2.a == 0 && l2.b == 0 && l2.x == -1 && l2.y == -2 && l2.z == -3 && l2.f == 20);
+ assert(l3.a == 0 && l3.b == 0 && l3.x == 0 && l3.y == -2 && l3.z == -3 && l3.f == 20);
+ assert(l4.a == 0 && l4.b == 0 && l4.x == 0 && l4.y == 0 && l4.z == -3 && l4.f == 20);
+ assert(l5.a == 0 && l5.b == 0 && l5.x == 0 && l5.y == 0 && l5.z == 0 && l5.f == 20);
+ assert(l6.a == 0 && l6.b == 0 && l6.x == 0 && l6.y == 0 && l6.z == 0 && l6.f == 0 );
};
fn invariants() void = {