tests/testthat/test-load_data.R

test_that("A dataframe is read", {
  expect_s3_class(data, "data.frame")
})

test_that("the name of second column is enforced to Class", {
  expect_setequal(colnames(data)[2], "Class")
})

Try the combiroc package in your browser

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

combiroc documentation built on July 9, 2023, 5:56 p.m.