diff options
| author | kcbanner <kcbanner@gmail.com> | 2022-12-30 02:26:06 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-01-02 13:56:32 -0700 |
| commit | 9c951cc8745256cbf94839b401abbb6afd35cae2 (patch) | |
| tree | e5756de84b707fa773d00bbbfa1f1f55495dc1f1 /test/behavior | |
| parent | cac652f81be23cce8857298a8402036edf061e9d (diff) | |
| download | zig-9c951cc8745256cbf94839b401abbb6afd35cae2.tar.gz zig-9c951cc8745256cbf94839b401abbb6afd35cae2.zip | |
fmt fixups
Diffstat (limited to 'test/behavior')
| -rw-r--r-- | test/behavior/atomics.zig | 2 | ||||
| -rw-r--r-- | test/behavior/math.zig | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/test/behavior/atomics.zig b/test/behavior/atomics.zig index 198f3953c2..b85101fd95 100644 --- a/test/behavior/atomics.zig +++ b/test/behavior/atomics.zig @@ -251,7 +251,7 @@ test "atomicrmw with ints" { } // TODO: Use the max atomic bit size for the target, maybe builtin? - const bit_values = [_]usize{ 8 } ++ if (builtin.cpu.arch == .x86_64) [_]usize{ 16, 32, 64 } else [_]usize{ }; + const bit_values = [_]usize{8} ++ if (builtin.cpu.arch == .x86_64) [_]usize{ 16, 32, 64 } else [_]usize{}; inline for (bit_values) |bits| { try testAtomicRmwInt(.unsigned, bits); comptime try testAtomicRmwInt(.unsigned, bits); diff --git a/test/behavior/math.zig b/test/behavior/math.zig index 0f2139dcfe..a8f80cd5a7 100644 --- a/test/behavior/math.zig +++ b/test/behavior/math.zig @@ -377,7 +377,6 @@ fn testBinaryNot(x: u16) !void { try expect(~x == 0b0101010101010101); } - test "binary not 128-bit" { try expect(comptime x: { break :x ~@as(u128, 0x55555555_55555555_55555555_55555555) == 0xaaaaaaaa_aaaaaaaa_aaaaaaaa_aaaaaaaa; @@ -667,7 +666,6 @@ test "128-bit multiplication" { var c = a * b; try expect(c == 0x63ffffffffffffff9c); } - } test "@addWithOverflow" { |
