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 Nov. 18, 2018, 1:04 a.m.