tests/testthat/test-format_value.R

test_that("format_value", {
  expect_snapshot(format_value(0.00041231, "p"))
  expect_snapshot(format_value(0.00041231, "r"))
  expect_snapshot(format_value(1.341231, "d"))
  expect_snapshot(format_p(0.0041231))
  expect_snapshot(format_p(0.00041231))
  expect_snapshot(format_r(0.41231))
  expect_snapshot(format_r(0.041231))
  expect_snapshot(format_d(1.341231))
  expect_snapshot(format_d(0.341231))
})

Try the rempsyc package in your browser

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

rempsyc documentation built on July 3, 2024, 5:08 p.m.