11context(" Compiled" )
22test_that(" Compiled code coverage is reported including code in headers" , {
33 skip_on_cran()
4- skip_if(is_windows() && getRversion() == " 4.1 " )
4+ skip_if(is_win_r41() )
55
66 cov <- as.data.frame(package_coverage(" TestCompiled" , relative_path = TRUE ))
77
@@ -34,7 +34,7 @@ test_that("Compiled code coverage is reported including code in headers", {
3434
3535test_that(" Can pass path to relative_path argument" , {
3636 skip_on_cran()
37- skip_if(is_windows() && getRversion() == " 4.1 " )
37+ skip_if(is_win_r41() )
3838 cov <- as.data.frame(package_coverage(" TestCompiled" , relative_path = " ." ))
3939
4040 expect_true(all(unique(cov $ filename ) %in% c(
@@ -47,7 +47,7 @@ test_that("Can pass path to relative_path argument", {
4747
4848test_that(" Source code subdirectories are found" , {
4949 skip_on_cran()
50- skip_if(is_windows() && getRversion() == " 4.1 " )
50+ skip_if(is_win_r41() )
5151 cov <- as.data.frame(package_coverage(" TestCompiledSubdir" , relative_path = TRUE ))
5252
5353 expect_equal(cov [cov $ first_line == " 9" , " value" ], 4 )
@@ -63,7 +63,7 @@ test_that("Source code subdirectories are found", {
6363
6464test_that(" Compiled code coverage is reported under non-standard char's" , {
6565 skip_on_cran()
66- skip_if(is_windows() && getRversion() == " 4.1 " )
66+ skip_if(is_win_r41() )
6767 cov <- as.data.frame(package_coverage(" Test+Char/TestCompiled" , relative_path = TRUE ))
6868
6969 expect_equal(cov [cov $ first_line == " 9" , " value" ], 4 )
0 commit comments