diff options
| author | Travis Staloch <twostepted@gmail.com> | 2021-09-14 18:40:28 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-09-28 17:04:19 -0700 |
| commit | 38703dc9c2dccc43c77ec8dcfe0df936cced9d7a (patch) | |
| tree | 22101b80dfd0eab88fbf933e5b9ff88308de30aa | |
| parent | baaec94fe427efad4fe46ee3ffde53184cbd0ae9 (diff) | |
| download | zig-38703dc9c2dccc43c77ec8dcfe0df936cced9d7a.tar.gz zig-38703dc9c2dccc43c77ec8dcfe0df936cced9d7a.zip | |
sat-arithmetic: don't test builtins in behavior tests
- not necessary as we are testing the operators
| -rw-r--r-- | test/behavior/saturating_arithmetic.zig | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/test/behavior/saturating_arithmetic.zig b/test/behavior/saturating_arithmetic.zig index 7a28ed182d..5d7a229c3c 100644 --- a/test/behavior/saturating_arithmetic.zig +++ b/test/behavior/saturating_arithmetic.zig @@ -13,15 +13,6 @@ fn testSaturatingOp(comptime op: Op, comptime T: type, test_data: [3]T) !void { 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, .sub => a -| b, .mul => a *| b, |
