Skip to content

Commit 39235b1

Browse files
committed
Use character versions
Fixes #1830
1 parent a5df730 commit 39235b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test-expect-known.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ test_that("equal_to_ref does not overwrite existing", {
105105
})
106106

107107
test_that("serializes to version 2 by default", {
108-
skip_if(getRversion() < 3.5)
108+
skip_if(getRversion() < "3.5")
109109
tmp_rds <- tempfile(fileext = ".rds")
110110
on.exit(unlink(tmp_rds))
111111

@@ -118,7 +118,7 @@ test_that("serializes to version 2 by default", {
118118
})
119119

120120
test_that("version 3 is possible", {
121-
skip_if(getRversion() < 3.5)
121+
skip_if(getRversion() < "3.5")
122122
tmp_rds <- tempfile(fileext = ".rds")
123123
on.exit(unlink(tmp_rds))
124124

0 commit comments

Comments
 (0)