tests/testthat/test-utils.R

test_that("recycle_common throws appropriate errors", {
  expect_snapshot(recycle_common(a = 1:2, size = 3), error = TRUE)
  expect_snapshot(recycle_common(a = 1:2, b = 1:3), error = TRUE)
  expect_snapshot(recycle_common(a = 1:2, b = 1:3, size = 3), error = TRUE)
})

Try the scales package in your browser

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

scales documentation built on June 8, 2025, 12:13 p.m.