tests/testthat/test-Ops.R

context("Math Ops")

test_that("Mathematical operations with rv objects works", {
  x <- trunc(rvnorm(1))
  expect_s3_class(x, "rv")
  expect_s3_class(-x, "rv")
})

Try the rv package in your browser

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

rv documentation built on March 18, 2022, 5:55 p.m.