authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2021-04-20 15:44:54+02:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2021-04-20 15:44:54+02:00
loga5a3ad5e10a6c5aa88af5eaf0170c5a15c9aad90
treef1f772b54359256483339541b17d121468fa4bbe
parenta4e2539b09dcf73ccf1bd57541b3b6c267ca96c1

c: Minor cleanup

* Remove superfluous "test_" prefix in test names * Use aliased isNan everywhere

1 files changed, 6 insertions(+), 6 deletions(-)

lib/std/special/c.zig+6-6
......@@ -239,7 +239,7 @@ export fn memcmp(vl: ?[*]const u8, vr: ?[*]const u8, n: usize) callconv(.C) isiz
239239 return 0;
240240}
241241
242test "test_memcmp" {
242test "memcmp" {
243243 const base_arr = &[_]u8{ 1, 1, 1 };
244244 const arr1 = &[_]u8{ 1, 1, 1 };
245245 const arr2 = &[_]u8{ 1, 0, 1 };
......@@ -263,7 +263,7 @@ export fn bcmp(vl: [*]allowzero const u8, vr: [*]allowzero const u8, n: usize) c
263263 return 0;
264264}
265265
266test "test_bcmp" {
266test "bcmp" {
267267 const base_arr = &[_]u8{ 1, 1, 1 };
268268 const arr1 = &[_]u8{ 1, 1, 1 };
269269 const arr2 = &[_]u8{ 1, 0, 1 };
......@@ -1096,8 +1096,8 @@ test "sqrt special" {
10961096 std.testing.expect(std.math.isPositiveInf(sqrt(std.math.inf(f64))));
10971097 std.testing.expect(sqrt(0.0) == 0.0);
10981098 std.testing.expect(sqrt(-0.0) == -0.0);
1099 std.testing.expect(std.math.isNan(sqrt(-1.0)));
1100 std.testing.expect(std.math.isNan(sqrt(std.math.nan(f64))));
1099 std.testing.expect(isNan(sqrt(-1.0)));
1100 std.testing.expect(isNan(sqrt(std.math.nan(f64))));
11011101}
11021102
11031103export fn sqrtf(x: f32) f32 {
......@@ -1201,6 +1201,6 @@ test "sqrtf special" {
12011201 std.testing.expect(std.math.isPositiveInf(sqrtf(std.math.inf(f32))));
12021202 std.testing.expect(sqrtf(0.0) == 0.0);
12031203 std.testing.expect(sqrtf(-0.0) == -0.0);
1204 std.testing.expect(std.math.isNan(sqrtf(-1.0)));
1205 std.testing.expect(std.math.isNan(sqrtf(std.math.nan(f32))));
1204 std.testing.expect(isNan(sqrtf(-1.0)));
1205 std.testing.expect(isNan(sqrtf(std.math.nan(f32))));
12061206}