Skip to content

Commit

Permalink
fix skip if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Tmonster authored and krlmlr committed Nov 8, 2023
1 parent c65e0d4 commit 0a48fd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test_strings.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
library(duckdb)

test_that("Invalid unicode produces an error", {
# this doesn't throw an error on previous versions of R
skip_if_no_R4()
# this doesn't throw an error on old releases of R.
skip_if(R.Version()$major <= 4 && R.Version()$minor <= 2.3)
con <- DBI::dbConnect(duckdb::duckdb())

my_df <- structure(list(no_municipio_esc = "Est\xe2ncia", no_municipio_prova = "Est\xe2ncia"), row.names = 16L, class = "data.frame")
Expand Down

0 comments on commit 0a48fd4

Please sign in to comment.