File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,17 @@ test_that("mixed CRLF / LF EOLs fail", {
36
36
)
37
37
})
38
38
39
- test_that(" unicode can't be propprely handled on Windows for R < 4.2" , {
40
- msg <- ifelse(getRversion() < " 4.2" && is_windows(),
41
- " Can't parse input due to unicode restriction in base R\\ ." ,
42
- NA
39
+ test_that(" unicode can't be properly handled on Windows for R < 4.2" , {
40
+ skip_if_not(getRversion() < " 4.2" && is_windows())
41
+
42
+ expect_error(
43
+ style_text(' suit <- "♠"' ),
44
+ " Can't parse input due to unicode restriction in base R\\ ."
43
45
)
44
- expect_error(style_text(' suit <- "♠"' ), msg )
46
+ })
47
+
48
+ test_that(" unicode is properly handled in all settings other than on Windows for R < 4.2" , {
49
+ skip_if(getRversion() < " 4.2" && is_windows())
50
+
51
+ expect_error(style_text(' suit <- "♠"' ), NA )
45
52
})
You can’t perform that action at this time.
0 commit comments