tests/testthat/test-format.R

test_that("format_order", {
  expect_identical(format_order(2), "second")
  expect_identical(format_order(45), "forty fifth")
  expect_identical(format_order(2, textual = FALSE), "2nd")
  expect_identical(format_order(45, textual = FALSE), "45th")
})
easystats/parameters documentation built on April 12, 2024, 9:33 a.m.