Skip to content

Commit 1306421

Browse files
committed
TST: another attempt at fixing the windows lqmn test build
1 parent 1b58340 commit 1306421

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/scipy_special_tests/test_lqmn.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ TEST_CASE("lqmn TestLegendreFunctions.test_lqmn", "[lqmn][lqn][real][smoketest]"
1414
constexpr int n = 2;
1515
constexpr double x = 0.5;
1616
// `xsf::lqmn` requires the matrices to be at least 2x2
17-
constexpr int m1p = std::max(2, m + 1);
18-
constexpr int n1p = std::max(2, n + 1);
17+
constexpr size_t m1p = 2;
18+
constexpr size_t n1p = 3;
1919

2020
// lqmnf = special.lqmn(0, 2, .5)
2121
double lqmnf0_data[m1p * n1p], lqmnf1_data[m1p * n1p];
@@ -62,8 +62,8 @@ TEST_CASE("lqmn TestLegendreFunctions.test_lqmn_gt1", "[lqmn][real][smoketest]")
6262

6363
constexpr int m = 2;
6464
constexpr int n = 1;
65-
constexpr int m1p = m + 1;
66-
constexpr int n1p = n + 1;
65+
constexpr size_t m1p = 3;
66+
constexpr size_t n1p = 2;
6767

6868
double lqmnf0_data[m1p * n1p], lqmnf1_data[m1p * n1p];
6969
auto lqmnf0 = std::mdspan(lqmnf0_data, m1p, n1p);
@@ -97,8 +97,8 @@ TEST_CASE("lqmn complex", "[lqmn][complex][smoketest]") {
9797
constexpr int m = 0;
9898
constexpr int n = 0;
9999
// `xsf::lqmn` requires the matrices to be at least 2x2
100-
constexpr int m1p = std::max(2, m + 1);
101-
constexpr int n1p = std::max(2, n + 1);
100+
constexpr size_t m1p = 2;
101+
constexpr size_t n1p = 2;
102102

103103
// (q_mn, qp_mn) = lqmn(0, 0, 0.5)
104104
double q_data[m1p * n1p], qp_data[m1p * n1p];

0 commit comments

Comments
 (0)