fn testTanSpecial(comptime T: type) !void
fn testTanSpecial(comptime T: type) !void { const f = switch (T) { f32 => tanf, f64 => tan, f80 => tanx, f128 => tanq, else => @compileError("unimplemented"), }; try expect(math.isPositiveZero(f(0.0))); try expect(math.isNegativeZero(f(-0.0))); try expect(math.isNan(f(math.inf(f32)))); try expect(math.isNan(f(-math.inf(f32)))); try expect(math.isNan(f(math.nan(f32)))); }