tests/testthat/test-jitter.R

test_that(".jitter output is equal to input if first argument is not numeric", {
  x <- mtcars
  expect_identical(.jitter(x), x)
})

test_that(".jitter output is different from input if arguments are good", {
  x <- mtcars
  expect_false(identical(.jitter(x$mpg), x))
})
JohnCoene/echarts4 documentation built on Feb. 23, 2024, 9:18 a.m.