tests/testthat/test-load.R

test_that("maxima.load returns exact result", {
  if(!maxima.env$maxima$isInstalled()) 
    skip("Maxima not installed") 

  to <- maxima.load("ratpow")

  expect_s3_class(to, "maxima")
  expect_type(to, "list")
  expect_match(attr(to, "input.label"), "^%\\i[[:digit::]]*$")
  expect_match(attr(to, "output.label"), "^\\%o[[:digit::]]*$")
  expect_equal(attr(to, "command"), "load(ratpow)$")
  expect_true(attr(to, "suppressed"))
})

Try the rim package in your browser

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

rim documentation built on April 3, 2025, 9:35 p.m.