tests/testthat/test-conversion.R

library(dplyr)

test_that("triple <-> tidy", {
  tidy <- brauer_2008_triple %>%
    triple_to_tidy()

  expect_equal(
    tidy$data %>%
      dplyr::arrange(name, sample),
    brauer_2008_tidy$data %>%
      dplyr::arrange(name, sample)
  )

  expect_equal(
    tidy$design,
    brauer_2008_tidy$design
  )

  triple <- brauer_2008_tidy %>%
    tidy_to_triple()

  expect_equal(
    triple,
    brauer_2008_triple
  )
})

Try the romic package in your browser

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

romic documentation built on Sept. 21, 2023, 9:06 a.m.