tests/testthat/test_check.integer-functions.R

context("check.integer")

test_that("check.integer return", {
  expect_equal(check.integer(5), TRUE)
  expect_equal(check.integer(5.5), FALSE)
  expect_equal(check.integer("abc"), FALSE)
})

Try the Fgmutils package in your browser

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

Fgmutils documentation built on May 2, 2019, 9:16 a.m.