Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Jul 26, 2023
1 parent 0f4c160 commit c8735de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/testthat/test-report_s.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ test_that("report_s", {
expect_snapshot(report_s(s = 4.2), variant = "windows")
expect_snapshot(report_s(p = 0.06), variant = "windows")
})

test_that("report_s, arguments", {
expect_error(report_s())
expect_error(report_s(s = 1:2), "single value")
})

0 comments on commit c8735de

Please sign in to comment.