tests/testthat/test-init.R

test_that("init", {
  skip_if_no_sympy()
  
  ver <- sympy_version()
  expect_true(ver >= "1.4")
})

test_that("smoke", {
  skip_if_no_sympy()
  
  sympy <- get_sympy()
  ans <- sympy$solve("x**2-1", "x")
  expect_equal(length(ans), 2L)
})

Try the caracas package in your browser

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

caracas documentation built on Feb. 11, 2022, 9:07 a.m.