tests/testthat/test_BasicUtils.R

testthat::context(desc = "testing class BasicUtils...")

testthat::test_that(desc = "testing function bIsScalarOfClass", code = {

  testthat::expect_true(
    object = BasicUtils$bIsScalarOfClass(objIn = "asdf", cClassName = "character")
  )
  testthat::expect_true(
    object = BasicUtils$bIsScalarOfClass(objIn = 123L, cClassName = "integer")
  )
  testthat::expect_false(
    object = BasicUtils$bIsScalarOfClass(objIn = 123.33, cClassName = "double")
  )


})
wegar-2/VariousUtils documentation built on Aug. 25, 2020, 4:02 p.m.