inst/tests/test-proto_data_frame.R

context("proto_data_frame")

test_that("proto_date_frame works", {
  checks <-
    ColumnCheckList(a = ColumnChecks(classtype="numeric"),
                    b = ColumnChecks(classtype="ANY"))
  expect_equal(check_constraints(proto_data_frame(checks),
                                 TableChecks(columns=checks)),
               TRUE)
})
jrnold/r-checker documentation built on May 20, 2019, 1:04 a.m.