Skip to content

Commit b8d7187

Browse files
committed
test: now allow ds.length with matrices
1 parent a0a2e07 commit b8d7187

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

tests/testthat/test-smk-ds.length.R

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,6 @@ test_that("basic length, combine", {
7878
expect_equal(res.length$`total length of D$LAB_TSC in all studies combined`, 9379)
7979
})
8080

81-
test_that("length, wrong input class returns a server error", {
82-
ds.asMatrix(x='D$LAB_TSC', newobj="not_a_numeric")
83-
84-
expect_error(ds.length("not_a_numeric"), "There are some DataSHIELD errors, list them with datashield.errors()", fixed=TRUE)
85-
res.errors <- DSI::datashield.errors()
86-
expect_match(res.errors[[1]], "must be of type character, factor, integer, logical, numeric, list or data.frame")
87-
88-
ds.rm("not_a_numeric")
89-
})
90-
9181
#
9282
# Done
9383
#

0 commit comments

Comments
 (0)