inst/examples/operators/tests/testthat-fix/test-calculate.R

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

test_that("calculate returns x * y + x", {
  expect_equal(calculate(2, 3), 8)
})

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.