tests/testthat/test.R

context("refnr test")

test_that("testcase", {
  formulas <- rbind(c(Name = "Length",
                      Formula = "Sepal.Length + Petal.Length"),
                    c(Name = "Width",
                      Formula = "Sepal.Width + Petal.Width"))
  res <- refnr(iris, formulas)
  expect_equal(res[1,1], 6.5)
})
zedoul/refnr documentation built on May 4, 2019, 10:14 p.m.