aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math/hypot.zig
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/math/hypot.zig')
-rw-r--r--lib/std/math/hypot.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/math/hypot.zig b/lib/std/math/hypot.zig
index 92e0c1eb13..c0bfabca1c 100644
--- a/lib/std/math/hypot.zig
+++ b/lib/std/math/hypot.zig
@@ -124,7 +124,7 @@ fn hypot64(x: f64, y: f64) f64 {
return z * @sqrt(ly + lx + hy + hx);
}
-test "hypot" {
+test hypot {
const x32: f32 = 0.0;
const y32: f32 = -1.2;
const x64: f64 = 0.0;
@@ -133,7 +133,7 @@ test "hypot" {
try expect(hypot(x64, y64) == hypot64(0.0, -1.2));
}
-test "hypot32" {
+test hypot32 {
const epsilon = 0.000001;
try expect(math.approxEqAbs(f32, hypot32(0.0, -1.2), 1.2, epsilon));
@@ -145,7 +145,7 @@ test "hypot32" {
try expect(math.approxEqAbs(f32, hypot32(123123.234375, 529428.707813), 543556.875, epsilon));
}
-test "hypot64" {
+test hypot64 {
const epsilon = 0.000001;
try expect(math.approxEqAbs(f64, hypot64(0.0, -1.2), 1.2, epsilon));