Skip to content

Commit

Permalink
Fix tests for side-effects
Browse files Browse the repository at this point in the history
  • Loading branch information
gdemin committed Sep 2, 2023
1 parent 4d69d4e commit 572efb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion inst/tinytest/test_significance_cpct.R
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ if(isTRUE(getOption("covr"))) {
expect_equal(trimws(res[1,6]), "100")

expss_round_half_to_even(TRUE)

expss_digits(NULL)


}
4 changes: 4 additions & 0 deletions tests/tinytest.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ if(capabilities('long.double')){
cat("\nCONTEXT:", text, "\n")
invisible(NULL)
}
expss::expss_round_half_to_even(TRUE)
expss::expss_digits(NULL)
tinytest::test_package("expss", remove_side_effects=FALSE)
}

Expand All @@ -32,6 +34,8 @@ if(FALSE){
}

library(expss)
expss_round_half_to_even(TRUE)
expss_digits(NULL)
tinytest::test_all(remove_side_effects=FALSE)
#
# res = covr::package_coverage(quiet = FALSE, type = "all", combine_types = TRUE, clean = FALSE)
Expand Down

0 comments on commit 572efb8

Please sign in to comment.