zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 38703dc9c2dccc43c77ec8dcfe0df936cced9d7a (tree)
parent baaec94fe427efad4fe46ee3ffde53184cbd0ae9
Author: Travis Staloch <twostepted@gmail.com>
Date:   Tue, 14 Sep 2021 18:40:28 -0700

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

- not necessary as we are testing the operators

Diffstat:
Mtest/behavior/saturating_arithmetic.zig | 9---------
1 file changed, 0 insertions(+), 9 deletions(-)

diff --git 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,