Skip to content

Commit 491b5a7

Browse files
committed
Update tests
1 parent 43d2fd4 commit 491b5a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/testthat/test-qr_code.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
test_that("qr scanner works", {
2-
skip_if(ocv_version() < "4.5.2")
2+
skip_if(identical(Sys.info()[["sysname"]], 'Linux') && ocv_version() < "4.5.2")
33
img <- ocv_read('qrtest.jpg')
44
expect_s3_class(img, "opencv-image")
55
txt <- ocv_qr_detect(img)
6+
outimg <- ocv_qr_detect(img, draw = TRUE)
7+
expect_s3_class(outimg, "opencv-image")
68
expect_equal(txt, "https://www.r-project.org")
79
})

0 commit comments

Comments
 (0)