Skip to content

Commit d3e78af

Browse files
committed
Remove invalid test for when the approximation of t-stat is Inf, resulting in a NaN value for the estimated r
1 parent 2362021 commit d3e78af

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/testthat/test-smk-corTestDS.R

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,9 @@ test_that("simple corTestDS, some, with na, pearson", {
218218
expect_equal(r, 1L, tolerance = 1E-8)
219219
}
220220
else { # other architectures
221-
expect_true(is.infinite(res$`Correlation test`$statistic[[1]]))
222-
# lower tolerance, expect success
223-
expect_equal(r, 1L, tolerance = 1E-16)
224-
# higher tolerance, expect success
225-
expect_equal(r, 1L, tolerance = 1E-8)
221+
expect_true(is.infinite(t_stat))
222+
# the estimated value for r should NaN
223+
expect_true(is.nan(r))
226224
}
227225

228226
expect_equal(class(res$`Correlation test`$parameter), "integer")

0 commit comments

Comments
 (0)