tests/testthat/test-intervencoes.R

context("Intervencoes")

intx <- intervencoes(Exemplo$choques.pre, Exemplo$dlm.pre)

test_that("Função deve retornar no formato correto", {
            expect_equal(class(intx), "matrix")
            expect_equal(ncol(intx), 2)
        })

test_that("Função deve retornar valores corretos", {
            expect_equivalent(intx, Exemplo$X.pre)
          })

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.