tests/testthat/test-upward_steepness.R

data(dommats, package = "EloRating")
res <- upward_steepness(dommats$elephants)

test_that("upward steepness", {
  expect_true(res <= 1 & res >= 0)
})

Try the EloSteepness package in your browser

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

EloSteepness documentation built on Sept. 21, 2023, 1:06 a.m.