tests/testthat/test-coord.R

test_that("CoordIdentity does not change position values", {
  df <- tibble(x = 1, y = 2, z = 3)
  coord <- CoordIdentity$new()
  scales <- ScaleList$new()

  expect_identical(coord$transform(df, scales), df)
})
paleolimbot/ggr6 documentation built on Feb. 5, 2020, 2:17 p.m.