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

@@ -18,9 +18,6 @@ test "complex.clog" {
const a = Complex(f32).new(5, 3);
const c = log(a);
const re = c.re;
const im = c.im;
debug.assert(math.approxEq(f32, re, 1.763180, epsilon));
debug.assert(math.approxEq(f32, im, 0.540419, epsilon));
debug.assert(math.approxEq(f32, c.re, 1.763180, epsilon));
debug.assert(math.approxEq(f32, c.im, 0.540419, epsilon));
}