tests/testthat/test-s3-quosure.R

test_that("quosure", {
  expect_snapshot({
    construct(rlang::new_quosure(quote(x), .GlobalEnv))
    construct(rlang::new_quosure(quote(x), .GlobalEnv), opts_quosure("next"))
    construct(rlang::new_quosure(quote(x), .GlobalEnv), opts_quosure("language"))
  })
})

Try the constructive package in your browser

Any scripts or data that you put into this service are public.

constructive documentation built on April 3, 2025, 9:39 p.m.