tests/testthat/test-5.roctoResults.R

context("Loading results into R")

out <- roctoResults("../lib/7-testResults.rocres")

test_that("Results are loaded in environment", {
  expect_true(is.list(out))
})

test_that("Results object contains appropriate content", {
  expect_equal(length(out),10)
  expect_equal(out[[1]], 75.69823)
})
roctoproject/rocto-rpackage documentation built on May 23, 2019, 3:13 p.m.