diff options
Diffstat (limited to 'test/std/numerics/complex.number/complex.value.ops/abs.pass.cpp')
| -rw-r--r-- | test/std/numerics/complex.number/complex.value.ops/abs.pass.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/std/numerics/complex.number/complex.value.ops/abs.pass.cpp b/test/std/numerics/complex.number/complex.value.ops/abs.pass.cpp index 5d841d6ee9f10..7a0e3bd700722 100644 --- a/test/std/numerics/complex.number/complex.value.ops/abs.pass.cpp +++ b/test/std/numerics/complex.number/complex.value.ops/abs.pass.cpp @@ -28,11 +28,11 @@ test() void test_edges() { - const unsigned N = sizeof(x) / sizeof(x[0]); + const unsigned N = sizeof(testcases) / sizeof(testcases[0]); for (unsigned i = 0; i < N; ++i) { - double r = abs(x[i]); - switch (classify(x[i])) + double r = abs(testcases[i]); + switch (classify(testcases[i])) { case zero: assert(r == 0); |
