diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-04-24 21:14:12 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-04-24 21:14:12 -0400 |
| commit | 1d998d5dce73d8d500dee5e41a3dca92a7f9b03e (patch) | |
| tree | 4fac84336118ea7cdc221f76be5c7ff3797d0cd9 /std/math/complex/sinh.zig | |
| parent | d5e99cc05ea05d701adffce55defc512d75e10d1 (diff) | |
| download | zig-1d998d5dce73d8d500dee5e41a3dca92a7f9b03e.tar.gz zig-1d998d5dce73d8d500dee5e41a3dca92a7f9b03e.zip | |
clean up complex math tests
Diffstat (limited to 'std/math/complex/sinh.zig')
| -rw-r--r-- | std/math/complex/sinh.zig | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/std/math/complex/sinh.zig b/std/math/complex/sinh.zig index 799ee9ad6e..09a62ca058 100644 --- a/std/math/complex/sinh.zig +++ b/std/math/complex/sinh.zig @@ -151,20 +151,14 @@ test "complex.csinh32" { const a = Complex(f32).new(5, 3); const c = sinh(a); - const re = c.re; - const im = c.im; - - debug.assert(math.approxEq(f32, re, -73.460617, epsilon)); - debug.assert(math.approxEq(f32, im, 10.472508, epsilon)); + debug.assert(math.approxEq(f32, c.re, -73.460617, epsilon)); + debug.assert(math.approxEq(f32, c.im, 10.472508, epsilon)); } test "complex.csinh64" { const a = Complex(f64).new(5, 3); const c = sinh(a); - const re = c.re; - const im = c.im; - - debug.assert(math.approxEq(f64, re, -73.460617, epsilon)); - debug.assert(math.approxEq(f64, im, 10.472508, epsilon)); + debug.assert(math.approxEq(f64, c.re, -73.460617, epsilon)); + debug.assert(math.approxEq(f64, c.im, 10.472508, epsilon)); } |
