Lines Matching refs:testcases
37 const unsigned N = sizeof(testcases) / sizeof(testcases[0]); in test_edges()
40 std::complex<double> r = exp(testcases[i]); in test_edges()
41 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges()
45 assert(std::signbit(testcases[i].imag()) == std::signbit(r.imag())); in test_edges()
47 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
52 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
57 … else if (std::isinf(testcases[i].real()) && testcases[i].real() > 0 && testcases[i].imag() == 0) in test_edges()
62 assert(std::signbit(testcases[i].imag()) == std::signbit(r.imag())); in test_edges()
64 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isinf(testcases[i].ima… in test_edges()
69 …else if (std::isinf(testcases[i].real()) && testcases[i].real() > 0 && std::isinf(testcases[i].ima… in test_edges()
74 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isnan(testcases[i].ima… in test_edges()
79 …else if (std::isinf(testcases[i].real()) && testcases[i].real() > 0 && std::isnan(testcases[i].ima… in test_edges()
84 else if (std::isnan(testcases[i].real()) && testcases[i].imag() == 0) in test_edges()
88 assert(std::signbit(testcases[i].imag()) == std::signbit(r.imag())); in test_edges()
90 else if (std::isnan(testcases[i].real()) && testcases[i].imag() != 0) in test_edges()
95 else if (std::isnan(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
100 else if (std::isfinite(testcases[i].imag()) && std::abs(testcases[i].imag()) <= 1) in test_edges()
103 assert(std::signbit(r.imag()) == std::signbit(testcases[i].imag())); in test_edges()