inst/examples/conditions/tests/testthat/test-classify.R

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

test_that("sign_of returns a string", {
  expect_true(is.character(sign_of(5)))
})

test_that("clamp returns a number", {
  expect_true(is.numeric(clamp(7, 5, 10)))
})

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.