Skip to content

Commit

Permalink
use is.matrix() for a slightly better failure message
Browse files Browse the repository at this point in the history
  • Loading branch information
PietrH committed Nov 10, 2023
1 parent 55d1eba commit 68f591c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-get_cam_op.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ test_that("input camtrap dp is checked properly", {

test_that("output is a matrix", {
cam_op_matrix <- get_cam_op(mica)
expect_true("matrix" %in% class(cam_op_matrix))
expect_true(is.matrix(cam_op_matrix))
})

test_that("output matrix has locations as rownames", {
Expand Down

0 comments on commit 68f591c

Please sign in to comment.