tests/testthat/test-almost.zero.R

context("almost.zero")

test_that("'almost.zero' works", {
  expect_identical(almost.zero(c(0, 10^(-7), 10^(-8))), 
                   c(TRUE, FALSE, TRUE))
})

Try the bazar package in your browser

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

bazar documentation built on May 2, 2019, 7:02 a.m.