Skip to content

Commit 89ea11a

Browse files
cover older versions as well
1 parent 12c88a4 commit 89ea11a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test-parsing.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ test_that("CRLF EOLs fail with informative error", {
2929

3030

3131
test_that("mixed CRLF / LF EOLs fail", {
32-
skip(getRversion() < "4.4")
32+
error_msg_stem <- if (getRversion() < "4.4") "unexpected input" else "unexpected invalid token"
3333
expect_error(
3434
style_text("a + 3 -4 -> x\nx + 2\r\n glück + 1"),
35-
"unexpected invalid token"
35+
error_msg_stem
3636
)
3737
})
3838

0 commit comments

Comments
 (0)