tests/testthat/test_load_fish.R

context("Load in data correct")
x <- load_fish(fish = "708", format = "csv", sep = ";", dir = substr(getwd(), 1, 11))

test_that("load_fish", {
  expect_equal(nrow(x), nrow(example))
  expect_equal(ncol(x), ncol(example))
  expect_equal(names(x)[2], names(example)[2])
  expect_equal(x[9, 3], example[9, 3])
})
reneplonus/ototools documentation built on May 3, 2019, 4:05 p.m.