tests/testthat/test-attributeType.R

test_that("attributeType", {
    expect_equal(attributeType(numeric(3)),
                 list(type='numeric'))
    expect_equal(attributeType(character(0)),
                 list(type='character'))
    expect_equal(attributeType(as.Date(character(0))),
                 list(type='Date'))
})
beerda/crudtable documentation built on July 13, 2020, 2:16 p.m.