library(testthat)
rolog::consult(system.file(file.path("pl", "lm.pl"), package="mathml"))
test_that("linearmodel",
{
q <- mathml(quote(lm(EOT ~ T0 + Therapy, data=d, na.action=na.fail)))
expect_equal(q, "")
})
rolog::consult(system.file(file.path("pl", "nthroot.pl"), package="mathml"))
test_that("nthroot",
{
q <- mathml(quote(nthroot(a * (b + c), 3L)^2L))
expect_equal(q, "")
})
rolog::consult(system.file(file.path("pl", "pval.pl"), package="mathml"))
test_that("pval1",
{
q <- mathml(quote(pval(0.539, P)))
expect_equal(q,"")
})
test_that("pval2",
{
q <- mathml(quote(pval(0.0137, p)))
expect_equal(q,"")
})
test_that("pval3",
{
q <- mathml(quote(pval(0.0003, P)))
expect_equal(q, "")
})