tests/testthat/test-logit.R

# test the logit and inv-logit functions
test_that("Logit transform of 0.5 is 0",
          {expect_equal(0, logit(0.5))
            })

test_that("Inverse logit transform of 0 is 0.5",
  {expect_equal(0.5, inv_logit(0))
    })
mcsiple/mmrefpoints documentation built on June 17, 2022, 8:41 p.m.