authorgravatar for twostepted@gmail.comTravis Staloch <twostepted@gmail.com> 2021-09-14 18:40:28-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-09-28 17:04:19-07:00
log38703dc9c2dccc43c77ec8dcfe0df936cced9d7a
tree22101b80dfd0eab88fbf933e5b9ff88308de30aa
parentbaaec94fe427efad4fe46ee3ffde53184cbd0ae9

sat-arithmetic: don't test builtins in behavior tests

- not necessary as we are testing the operators

1 files changed, 0 insertions(+), 9 deletions(-)

test/behavior/saturating_arithmetic.zig-9
...@@ -11,15 +11,6 @@ fn testSaturatingOp(comptime op: Op, comptime T: type, test_data: [3]T) !void {...@@ -11,15 +11,6 @@ fn testSaturatingOp(comptime op: Op, comptime T: type, test_data: [3]T) !void {
11 const a = test_data[0];11 const a = test_data[0];
12 const b = test_data[1];12 const b = test_data[1];
13 const expected = test_data[2];13 const expected = test_data[2];
14 {
15 const actual = switch (op) {
16 .add => @addWithSaturation(a, b),
17 .sub => @subWithSaturation(a, b),
18 .mul => @mulWithSaturation(a, b),
19 .shl => @shlWithSaturation(a, b),
20 };
21 try expectEqual(expected, actual);
22 }
23 {14 {
24 const actual = switch (op) {15 const actual = switch (op) {
25 .add => a +| b,16 .add => a +| b,