inst/examples/shipping/tests/testthat/test-shipping.R

source(file.path("..", "..", "R", "shipping.R"))

test_that("heavy packages cost more than light ones", {
  expect_gt(shipping_cost(10), shipping_cost(2))
})

Try the muttest package in your browser

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

muttest documentation built on May 14, 2026, 5:10 p.m.