Skip to content

Commit

Permalink
sat-arithmetic: don't test builtins in behavior tests
Browse files Browse the repository at this point in the history
- not necessary as we are testing the operators
  • Loading branch information
travisstaloch committed Sep 22, 2021
1 parent 2c0af41 commit d16d7b6
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions test/behavior/saturating_arithmetic.zig
Expand Up @@ -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,
Expand Down

0 comments on commit d16d7b6

Please sign in to comment.