/usr/share/doc/r-cran-rlang/tests/testthat/test-sexp.R is in r-cran-rlang 0.2.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 | context("sexp")
test_that("poke_type() changes object type", {
x <- new_node(quote(foo), NULL)
out <- withVisible(poke_type(x, "language"))
expect_false(out$visible)
expect_identical(out$value, x)
expect_identical(typeof(x), "language")
})
|