| ... | @@ -111,12 +111,6 @@ pub fn sinq(x: f128) callconv(.C) f128 { | ... | @@ -111,12 +111,6 @@ pub fn sinq(x: f128) callconv(.C) f128 { |
| 111 | return sin(@floatCast(f64, x)); | 111 | return sin(@floatCast(f64, x)); |
| 112 | } | 112 | } |
| 113 | | 113 | |
| 114 | test "sin" { | | |
| 115 | try expect(sin(@as(f32, 0.0)) == sinf(0.0)); | | |
| 116 | try expect(sin(@as(f64, 0.0)) == sin(0.0)); | | |
| 117 | try expect(comptime (math.sin(@as(f64, 2))) == math.sin(@as(f64, 2))); | | |
| 118 | } | | |
| 119 | | | |
| 120 | test "sin32" { | 114 | test "sin32" { |
| 121 | const epsilon = 0.00001; | 115 | const epsilon = 0.00001; |
| 122 | | 116 | |