tests/testthat/test-helper_funcs.R

# calc_int_div & calc_mod -------------------------------------------------

test_that("calc_int_div & calc_mod works", {
  expect_equal(calc_mod(value = 5.5, divisor = 1), 0.5)
  expect_equal(calc_int_div(value = 5.5, divisor = 1), 5)
})

Try the howzatR package in your browser

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

howzatR documentation built on Sept. 9, 2022, 5:08 p.m.