tests/testthat/test-choques.R

context("choques")

choques <- choques(Exemplo$f)

test_that("Função deve retornar valores no formato correto", {
            expect_equal(class(choques), "list")
            expect_equal(length(choques), 2)
        })

test_that("Função deve retornar valores corretos", {
            expect_equal(choques$ch, Exemplo$choques$ch)
            expect_equal(choques$sd, Exemplo$choques$sd)
        })

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.