Lines Matching refs:testcases
37 const unsigned N = sizeof(testcases) / sizeof(testcases[0]); in test_edges()
40 std::complex<double> r = cosh(testcases[i]); in test_edges()
41 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges()
45 assert(std::signbit(r.imag()) == std::signbit(testcases[i].imag())); in test_edges()
47 else if (testcases[i].real() == 0 && std::isinf(testcases[i].imag())) in test_edges()
52 else if (testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges()
57 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
62 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
67 else if (std::isinf(testcases[i].real()) && testcases[i].imag() == 0) in test_edges()
72 assert(std::signbit(r.imag()) == std::signbit(testcases[i].imag())); in test_edges()
74 else if (std::isinf(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
77 assert(std::signbit(r.real()) == std::signbit(cos(testcases[i].imag()))); in test_edges()
79 … assert(std::signbit(r.imag()) == std::signbit(testcases[i].real() * sin(testcases[i].imag()))); in test_edges()
81 else if (std::isinf(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
86 else if (std::isinf(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
92 else if (std::isnan(testcases[i].real()) && testcases[i].imag() == 0) in test_edges()
97 else if (std::isnan(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
102 else if (std::isnan(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()