clean up complex math tests

This commit is contained in:
Andrew Kelley
2018-04-24 21:14:12 -04:00
parent d5e99cc05e
commit 1d998d5dce
16 changed files with 46 additions and 112 deletions

View File

@@ -17,9 +17,6 @@ test "complex.csin" {
const a = Complex(f32).new(5, 3);
const c = sin(a);
const re = c.re;
const im = c.im;
debug.assert(math.approxEq(f32, re, -9.654126, epsilon));
debug.assert(math.approxEq(f32, im, 2.841692, epsilon));
debug.assert(math.approxEq(f32, c.re, -9.654126, epsilon));
debug.assert(math.approxEq(f32, c.im, 2.841692, epsilon));
}