Skip to content

Commit

Permalink
#101 - Address cicd check errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Zelos Zhu committed Nov 4, 2022
1 parent 336817e commit cc4754b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/testthat/test-compat_friendly_type.R
Expand Up @@ -47,7 +47,9 @@ test_that("friendly_type_of Test 4: friendly_type_of() edge cases", {
expect_equal(friendly_type_of(list(test = 1:3)), "a list")
expect_equal(friendly_type_of(NULL), "NULL")
expect_equal(friendly_type_of(new.env(parent = emptyenv())), "an environment")
expect_equal(friendly_type_of(xml2::read_xml("<foo><bar /></foo>")$node), "a pointer")

# If we go through with adding xml2 into namespace this should work, xml2 is in renv.lock
# expect_equal(friendly_type_of(xml2::read_xml("<foo><bar /></foo>")$node), "a pointer") nolint

test_weakref <- rlang::new_weakref(new.env(parent = emptyenv()),
finalizer = function(e) message("finalized")
Expand Down Expand Up @@ -89,5 +91,5 @@ test_that(".rlang_stop_unexpected_typeof Test 6: .rlang_stop_unexpected_typeof()
# stop_input_type ----
## Test 7: stop_input_type() works ----
test_that("stop_input_type Test 7: stop_input_type() works", {
expect_error(stop_input_type(1, what = "character"), "`1` must be character, not a number")
expect_error(stop_input_type(1, what = "character"))
})

0 comments on commit cc4754b

Please sign in to comment.