Skip to content

Commit ebc650c

Browse files
Added tests for what we can't do
1 parent ce0f3aa commit ebc650c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test-coverage.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ test_that("code that's called by eval or do.call is not in the slice", {
315315
")
316316

317317
cov <- file_coverage(file, test)
318-
expect_equal(covr::percent_coverage(cov$coverage), 66.7, tolerance = 0.1)
318+
expect_lt(covr::percent_coverage(cov$coverage), 100)
319319

320320
file <- file_with_content("
321321
do_the_add <- function(a,b) a+b
@@ -330,7 +330,7 @@ test_that("code that's called by eval or do.call is not in the slice", {
330330
")
331331

332332
cov <- file_coverage(file, test)
333-
expect_equal(covr::percent_coverage(cov$coverage), 66.7, tolerance = 0.1)
333+
expect_lt(covr::percent_coverage(cov$coverage), 100)
334334
})
335335

336336
test_that("flowr can't slice through objects", {

0 commit comments

Comments
 (0)