Skip to content

Commit

Permalink
added tests for print methods
Browse files Browse the repository at this point in the history
  • Loading branch information
markvanderloo committed Aug 10, 2016
1 parent 599817a commit 6f0776b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkg/tests/testthat/test_trim.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,18 @@ test_that("skylark-1d model",{
, info=sprintf("Coefficients column %d",i)
)
}
})

context("Output printers")
test_that("S3 output printers", {
data(skylark)
m2 <- trim(count ~ time + site, data=skylark, model=2, overdisp=TRUE, serialcor = TRUE)
expect_output(print(m2))
expect_output(print(coef(m2)))
expect_output(print(wald(m2)))
expect_output(print(overall(m2)))
expect_output(print(totals(m2)))
expect_output(print(index(m2)))
})


0 comments on commit 6f0776b

Please sign in to comment.