Skip to content

Commit

Permalink
correct conditional tests (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbarbone committed Nov 6, 2023
1 parent 3aa09b8 commit 819b01d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-if-null.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ test_that("%||%", {
expect_identical(2L %||% 1L, 2L)

if (getRversion() < package_version("4.4")) {
expect_error("fuj" %::% "%||%", NA)
} else {
expect_error("fuj" %::% "%||%", "colonsError")
expect_error("fuj" %:::% "%||%", NA)
} else {
expect_error("fuj" %::% "%||%", NA)
}
})

Expand Down

0 comments on commit 819b01d

Please sign in to comment.