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 Mar 11, 2024
1 parent 7028fa4 commit 2286bda
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 2286bda

Please sign in to comment.