Skip to content

Commit cd0dfee

Browse files
committed
add nrow check for single-observation ppd_stat_data test
1 parent baa64ea commit cd0dfee

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/testthat/test-ppc-test-statistics.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ test_that("ppd_stat_data handles single draw and single observation", {
137137
yrep_1obs <- matrix(rnorm(5), ncol = 1)
138138
d2 <- ppd_stat_data(yrep_1obs, stat = "mean")
139139
expect_s3_class(d2, "data.frame")
140+
expect_equal(nrow(d2), 5)
140141
})
141142

142143

0 commit comments

Comments
 (0)