mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
sat-arithmetic: don't test builtins in behavior tests
- not necessary as we are testing the operators
This commit is contained in:
1 parent
baaec94fe4
commit
38703dc9c2
1 file changed
-9
@@ -11,15 +11,6 @@ fn testSaturatingOp(comptime op: Op, comptime T: type, test_data: [3]T) !void {
|
||||
const a = test_data[0];
|
||||
const b = test_data[1];
|
||||
const expected = test_data[2];
|
||||
{
|
||||
const actual = switch (op) {
|
||||
.add => @addWithSaturation(a, b),
|
||||
.sub => @subWithSaturation(a, b),
|
||||
.mul => @mulWithSaturation(a, b),
|
||||
.shl => @shlWithSaturation(a, b),
|
||||
};
|
||||
try expectEqual(expected, actual);
|
||||
}
|
||||
{
|
||||
const actual = switch (op) {
|
||||
.add => a +| b,
|
||||
|
||||
Reference in new issue
Block a user