tests/testthat/test-r_credit_card_numbers.R

library(generator)
context("r_credit_card_numbers()")

test_that("Produces the correct output.", {
  expect_equal(length(r_credit_card_numbers(100)), 100)
})

test_that("Produces the correct output type.", {
  expect_is(r_credit_card_numbers(100), "character")
})

test_that("Produces the correct errors.", {
})

Try the generator package in your browser

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

generator documentation built on May 1, 2019, 7:55 p.m.