tests/testthat/test-teste.h.R

context("teste H")

h <- teste.h(Exemplo$e, 7)

test_that("teste h deve retornar valores no formato correto", {
            expect_equal(class(h), "data.frame")
        })

test_that("teste h deve retornar valores corretos", {
            expect_equal(h, Exemplo$h)
        })

h <- teste.h(Exemplo$e, 39)

test_that("teste h deve retornar erro quando for necessário", {
            expect_equal(h, "Nao existem graus de liberdade o suficientes para o teste h")
        })

Try the ElastH package in your browser

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

ElastH documentation built on May 2, 2019, 7:02 a.m.