tests/testthat/test_dataframeR.R

#-------------------------------------------------------------------------------
# DATAFRAMER
#-------------------------------------------------------------------------------

test_that("dataframeR", {
  # Test case 1: Valid digits
  expect_no_error(dataframeR(3, 3, 3, 3, 3, 3, 3, 3))

  # Test case 2: Input of decimal values
  expect_error(dataframeR(3.1, 3, 3, 3, 3, 3, 3, 3))
})

Try the testCompareR package in your browser

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

testCompareR documentation built on April 4, 2025, 2:35 a.m.