tests/testthat/test-order-by.R

test_that("order_by() gives useful error messages", {
  expect_snapshot(error = TRUE, order_by(mtcars, 10))
  expect_snapshot(error = TRUE, order_by(mtcars, cyl))
})
javifar/TIDYVERSE-DPLYR documentation built on Dec. 20, 2021, 9:08 p.m.