tests/testthat/test-lax.R

context("lax")

test_that("lax suppresses warnings too", {
  df <- data.frame(xyz = 1)
  expect_warning(df$x, "Partial match")
  expect_warning(lax(df$x), NA)
})
hadley/strict documentation built on May 27, 2019, 7:26 a.m.