Skip to content

Commit 46deaad

Browse files
committed
fix small tests
1 parent 56067a6 commit 46deaad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/testthat/test-sdarray.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ test_that("data_type()", {
2424
test_that("SpatialDataImage()", {
2525
rgb <- \(n) sample(seq_len(255), n, replace=TRUE)
2626
mat <- array(rgb(3*20*20), dim=c(3,20,20))
27+
SpatialDataImage(mat)
2728
# invalid
28-
expect_error(SpatialDataImage(mat))
2929
expect_error(SpatialDataImage(mat, 1))
3030
expect_error(SpatialDataImage(mat, list()))
3131
# single scale
@@ -179,8 +179,8 @@ for (v in names(z)) {
179179
test_that("SpatialDataLabel()", {
180180
val <- sample(seq_len(12), 20*20, replace=TRUE)
181181
mat <- array(val, dim=c(20, 20))
182+
SpatialDataLabel(mat)
182183
# invalid
183-
expect_error(SpatialDataLabel(mat))
184184
expect_error(SpatialDataLabel(mat, 1))
185185
expect_error(SpatialDataLabel(mat, list()))
186186
# single scale

0 commit comments

Comments
 (0)