mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
Update tests to (Foo) { ... } syntax.
This commit is contained in:
@@ -25,7 +25,7 @@ fn void test_bitops() @test
|
||||
|
||||
Foo f4 = (f1 | ~f2) ^ f3;
|
||||
assert(f4.a == false && f4.b == true);
|
||||
Foo f5 = Foo { true, false } | Foo { false, true };
|
||||
Foo f5 = (Foo) { true, false } | (Foo) { false, true };
|
||||
assert(f5.a == true && f5.b == true);
|
||||
|
||||
f5 &= f2;
|
||||
@@ -38,7 +38,7 @@ fn void test_bitops() @test
|
||||
assert(b3.z == true && b3.w == false && b3.gh == false);
|
||||
b3 = ~b3;
|
||||
assert(b3.z == false && b3.w == true && b3.gh == true);
|
||||
b3 ^= Bar { true, true, false };
|
||||
b3 ^= (Bar) { true, true, false };
|
||||
assert(b3.z == true && b3.w == false && b3.gh == true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user