aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/test/expect.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/test/expect.zig')
-rw-r--r--src/bun.js/test/expect.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/test/expect.zig b/src/bun.js/test/expect.zig
index ff58965f5..6a7671f84 100644
--- a/src/bun.js/test/expect.zig
+++ b/src/bun.js/test/expect.zig
@@ -1518,7 +1518,7 @@ pub const Expect = struct {
}
const expected_diff = std.math.pow(f64, 10, -precision) / 2;
- const actual_diff = std.math.fabs(received - expected);
+ const actual_diff = @abs(received - expected);
var pass = actual_diff < expected_diff;
const not = this.flags.not;