tests/testthat/test-write_datasets.R

context("normalise")
source("helper-common.R")

test_that("write_datasets", {
  x <- read_datasets(text="1 2\n3 4\n\n5 6\n7 8\n", col_names=c("obj1", "obj2"))
  y <- read_datasets(text = capture.output(write_datasets(x)),
                     col_names=c("obj1", "obj2"))
  expect_equal(x,y)
})

Try the eaf package in your browser

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

eaf documentation built on March 31, 2023, 9:08 p.m.