@@ -14,7 +14,7 @@ test_that("dim compared correctly", {
1414 expect_success(expect_shape(array (dim = 1 : 3 ), dim = 1 : 3 ))
1515 expect_snapshot_failure(expect_shape(array (dim = 1 : 3 ), dim = 1 : 2 ))
1616 expect_snapshot_failure(expect_shape(array (dim = 1 : 3 ), dim = 1 : 4 ))
17- expect_success(expect_shape(array (), dim = 0L ))
17+ expect_success(expect_shape(array (integer() ), dim = 0L ))
1818 dd <- c(0L , 0L , 0L , 5L , 0L , 0L , 0L )
1919 expect_success(expect_shape(array (dim = dd ), dim = dd ))
2020})
@@ -24,7 +24,7 @@ test_that("nrow compared correctly", {
2424 expect_snapshot_failure(expect_shape(matrix (nrow = 5 , ncol = 5 ), nrow = 6L ))
2525 expect_success(expect_shape(data.frame (1 : 10 , 11 : 20 ), nrow = 10L ))
2626 expect_snapshot_failure(expect_shape(1 , nrow = 1 ))
27- expect_success(expect_shape(array (), nrow = 0L ))
27+ expect_success(expect_shape(array (integer() ), nrow = 0L ))
2828 dd <- c(0L , 0L , 0L , 5L , 0L , 0L , 0L )
2929 expect_success(expect_shape(array (dim = dd ), nrow = 0L ))
3030})
@@ -34,7 +34,7 @@ test_that("ncol compared correctly", {
3434 expect_snapshot_failure(expect_shape(matrix (nrow = 5 , ncol = 5 ), ncol = 7L ))
3535 expect_success(expect_shape(data.frame (1 : 10 , 11 : 20 ), ncol = 2L ))
3636 expect_snapshot_failure(expect_shape(array (1 ), ncol = 1 ))
37- expect_snapshot_failure(expect_shape(array (), ncol = 0L ))
37+ expect_snapshot_failure(expect_shape(array (integer() ), ncol = 0L ))
3838 dd <- c(0L , 0L , 0L , 5L , 0L , 0L , 0L )
3939 expect_success(expect_shape(array (dim = dd ), ncol = 0L ))
4040})
0 commit comments