Skip to content

Commit 78b7b19

Browse files
committed
Remove tests for overloads that don't exist in xsf
1 parent 88c4fe2 commit 78b7b19

File tree

8 files changed

+0
-128
lines changed

8 files changed

+0
-128
lines changed

tests/scipy_special_tests/test_bdtr.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,3 @@ TEST_CASE("bdtr dpd->d scipy_special_tests", "[bdtr][dpd->d][scipy_special_tests
2222
CAPTURE(k, n, p, out, desired, error, tol, fallback);
2323
REQUIRE(error <= tol);
2424
}
25-
26-
TEST_CASE("bdtr ddd->d scipy_special_tests", "[bdtr][ddd->d][scipy_special_tests]") {
27-
SET_FP_FORMAT()
28-
auto [input, output, tol] =
29-
GENERATE(xsf_test_cases<std::tuple<double, double, double>, std::tuple<double, bool>, double>(
30-
tables_path / "In_d_d_d-d.parquet", tables_path / "Out_d_d_d-d.parquet",
31-
tables_path / ("Err_d_d_d-d_" + get_platform_str() + ".parquet")
32-
));
33-
34-
auto [k, n, p] = input;
35-
auto [desired, fallback] = output;
36-
auto out = xsf::bdtr(k, n, p);
37-
auto error = xsf::extended_relative_error(out, desired);
38-
tol = adjust_tolerance(tol);
39-
CAPTURE(k, n, p, out, desired, error, tol, fallback);
40-
REQUIRE(error <= tol);
41-
}

tests/scipy_special_tests/test_bdtrc.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,3 @@ TEST_CASE("bdtrc dpd->d scipy_special_tests", "[bdtrc][dpd->d][scipy_special_tes
2222
CAPTURE(k, n, p, out, desired, error, tol, fallback);
2323
REQUIRE(error <= tol);
2424
}
25-
26-
TEST_CASE("bdtrc ddd->d scipy_special_tests", "[bdtrc][ddd->d][scipy_special_tests]") {
27-
SET_FP_FORMAT()
28-
auto [input, output, tol] =
29-
GENERATE(xsf_test_cases<std::tuple<double, double, double>, std::tuple<double, bool>, double>(
30-
tables_path / "In_d_d_d-d.parquet", tables_path / "Out_d_d_d-d.parquet",
31-
tables_path / ("Err_d_d_d-d_" + get_platform_str() + ".parquet")
32-
));
33-
34-
auto [k, n, p] = input;
35-
auto [desired, fallback] = output;
36-
auto out = xsf::bdtrc(k, n, p);
37-
auto error = xsf::extended_relative_error(out, desired);
38-
tol = adjust_tolerance(tol);
39-
CAPTURE(k, n, p, out, desired, error, tol, fallback);
40-
REQUIRE(error <= tol);
41-
}

tests/scipy_special_tests/test_bdtri.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,3 @@ TEST_CASE("bdtri dpd->d scipy_special_tests", "[bdtri][dpd->d][scipy_special_tes
2222
CAPTURE(k, n, y, out, desired, error, tol, fallback);
2323
REQUIRE(error <= tol);
2424
}
25-
26-
TEST_CASE("bdtri ddd->d scipy_special_tests", "[bdtri][ddd->d][scipy_special_tests]") {
27-
SET_FP_FORMAT()
28-
auto [input, output, tol] =
29-
GENERATE(xsf_test_cases<std::tuple<double, double, double>, std::tuple<double, bool>, double>(
30-
tables_path / "In_d_d_d-d.parquet", tables_path / "Out_d_d_d-d.parquet",
31-
tables_path / ("Err_d_d_d-d_" + get_platform_str() + ".parquet")
32-
));
33-
34-
auto [k, n, y] = input;
35-
auto [desired, fallback] = output;
36-
auto out = xsf::bdtri(k, n, y);
37-
auto error = xsf::extended_relative_error(out, desired);
38-
tol = adjust_tolerance(tol);
39-
CAPTURE(k, n, y, out, desired, error, tol, fallback);
40-
REQUIRE(error <= tol);
41-
}

tests/scipy_special_tests/test_nbdtr.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,6 @@ namespace fs = std::filesystem;
66

77
fs::path tables_path{fs::path(XSREF_TABLES_PATH) / "scipy_special_tests" / "nbdtr"};
88

9-
TEST_CASE("nbdtr ddd->d scipy_special_tests", "[nbdtr][ddd->d][scipy_special_tests]") {
10-
SET_FP_FORMAT()
11-
auto [input, output, tol] =
12-
GENERATE(xsf_test_cases<std::tuple<double, double, double>, std::tuple<double, bool>, double>(
13-
tables_path / "In_d_d_d-d.parquet", tables_path / "Out_d_d_d-d.parquet",
14-
tables_path / ("Err_d_d_d-d_" + get_platform_str() + ".parquet")
15-
));
16-
17-
auto [k, n, p] = input;
18-
auto [desired, fallback] = output;
19-
auto out = xsf::nbdtr(k, n, p);
20-
auto error = xsf::extended_relative_error(out, desired);
21-
tol = adjust_tolerance(tol);
22-
CAPTURE(k, n, p, out, desired, error, tol, fallback);
23-
REQUIRE(error <= tol);
24-
}
259

2610
TEST_CASE("nbdtr ppd->d scipy_special_tests", "[nbdtr][ppd->d][scipy_special_tests]") {
2711
SET_FP_FORMAT()

tests/scipy_special_tests/test_nbdtrc.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,6 @@ namespace fs = std::filesystem;
66

77
fs::path tables_path{fs::path(XSREF_TABLES_PATH) / "scipy_special_tests" / "nbdtrc"};
88

9-
TEST_CASE("nbdtrc ddd->d scipy_special_tests", "[nbdtrc][ddd->d][scipy_special_tests]") {
10-
SET_FP_FORMAT()
11-
auto [input, output, tol] =
12-
GENERATE(xsf_test_cases<std::tuple<double, double, double>, std::tuple<double, bool>, double>(
13-
tables_path / "In_d_d_d-d.parquet", tables_path / "Out_d_d_d-d.parquet",
14-
tables_path / ("Err_d_d_d-d_" + get_platform_str() + ".parquet")
15-
));
16-
17-
auto [k, n, p] = input;
18-
auto [desired, fallback] = output;
19-
auto out = xsf::nbdtrc(k, n, p);
20-
auto error = xsf::extended_relative_error(out, desired);
21-
tol = adjust_tolerance(tol);
22-
CAPTURE(k, n, p, out, desired, error, tol, fallback);
23-
REQUIRE(error <= tol);
24-
}
259

2610
TEST_CASE("nbdtrc ppd->d scipy_special_tests", "[nbdtrc][ppd->d][scipy_special_tests]") {
2711
SET_FP_FORMAT()

tests/scipy_special_tests/test_pdtri.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,6 @@ namespace fs = std::filesystem;
66

77
fs::path tables_path{fs::path(XSREF_TABLES_PATH) / "scipy_special_tests" / "pdtri"};
88

9-
TEST_CASE("pdtri dd->d scipy_special_tests", "[pdtri][dd->d][scipy_special_tests]") {
10-
SET_FP_FORMAT()
11-
auto [input, output, tol] = GENERATE(xsf_test_cases<std::tuple<double, double>, std::tuple<double, bool>, double>(
12-
tables_path / "In_d_d-d.parquet", tables_path / "Out_d_d-d.parquet",
13-
tables_path / ("Err_d_d-d_" + get_platform_str() + ".parquet")
14-
));
15-
16-
auto [k, y] = input;
17-
auto [desired, fallback] = output;
18-
auto out = xsf::pdtri(k, y);
19-
auto error = xsf::extended_relative_error(out, desired);
20-
tol = adjust_tolerance(tol);
21-
CAPTURE(k, y, out, desired, error, tol, fallback);
22-
REQUIRE(error <= tol);
23-
}
249

2510
TEST_CASE("pdtri pd->d scipy_special_tests", "[pdtri][pd->d][scipy_special_tests]") {
2611
SET_FP_FORMAT()

tests/scipy_special_tests/test_smirnov.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,6 @@ namespace fs = std::filesystem;
66

77
fs::path tables_path{fs::path(XSREF_TABLES_PATH) / "scipy_special_tests" / "smirnov"};
88

9-
TEST_CASE("smirnov dd->d scipy_special_tests", "[smirnov][dd->d][scipy_special_tests]") {
10-
SET_FP_FORMAT()
11-
auto [input, output, tol] = GENERATE(xsf_test_cases<std::tuple<double, double>, std::tuple<double, bool>, double>(
12-
tables_path / "In_d_d-d.parquet", tables_path / "Out_d_d-d.parquet",
13-
tables_path / ("Err_d_d-d_" + get_platform_str() + ".parquet")
14-
));
15-
16-
auto [n, d] = input;
17-
auto [desired, fallback] = output;
18-
auto out = xsf::smirnov(n, d);
19-
auto error = xsf::extended_relative_error(out, desired);
20-
tol = adjust_tolerance(tol);
21-
CAPTURE(n, d, out, desired, error, tol, fallback);
22-
REQUIRE(error <= tol);
23-
}
249

2510
TEST_CASE("smirnov pd->d scipy_special_tests", "[smirnov][pd->d][scipy_special_tests]") {
2611
SET_FP_FORMAT()

tests/scipy_special_tests/test_smirnovi.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,6 @@ namespace fs = std::filesystem;
66

77
fs::path tables_path{fs::path(XSREF_TABLES_PATH) / "scipy_special_tests" / "smirnovi"};
88

9-
TEST_CASE("smirnovi dd->d scipy_special_tests", "[smirnovi][dd->d][scipy_special_tests]") {
10-
SET_FP_FORMAT()
11-
auto [input, output, tol] = GENERATE(xsf_test_cases<std::tuple<double, double>, std::tuple<double, bool>, double>(
12-
tables_path / "In_d_d-d.parquet", tables_path / "Out_d_d-d.parquet",
13-
tables_path / ("Err_d_d-d_" + get_platform_str() + ".parquet")
14-
));
15-
16-
auto [n, p] = input;
17-
auto [desired, fallback] = output;
18-
auto out = xsf::smirnovi(n, p);
19-
auto error = xsf::extended_relative_error(out, desired);
20-
tol = adjust_tolerance(tol);
21-
CAPTURE(n, p, out, desired, error, tol, fallback);
22-
REQUIRE(error <= tol);
23-
}
249

2510
TEST_CASE("smirnovi pd->d scipy_special_tests", "[smirnovi][pd->d][scipy_special_tests]") {
2611
SET_FP_FORMAT()

0 commit comments

Comments
 (0)