Skip to content

Commit

Permalink
round two digits
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzwalthert committed Aug 22, 2019
1 parent 3c3c633 commit 5ab8389
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified tests/testthat/reference-objects/cache-info-3
Binary file not shown.
4 changes: 2 additions & 2 deletions tests/testthat/test-cache-with-r-cache.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ capture.output(test_that("cached expressions are displayed propperly", {
cache_activate("testthat")
style_text("1+1")
cache_info <- cache_info(format = "tabular")
cache_info$size <- round(cache_info$size, -1)
cache_info$size <- round(cache_info$size, -2)
expect_known_value(
cache_info[, c("n", "size", "activated")],
file = test_path("reference-objects/cache-info-2")
)
style_text("a <-function() NULL")
cache_info <- cache_info(format = "tabular")
cache_info$size <- round(cache_info$size, -1)
cache_info$size <- round(cache_info$size, -2)
expect_known_value(
cache_info[, c("n", "size", "activated")],
file = test_path("reference-objects/cache-info-3")
Expand Down

0 comments on commit 5ab8389

Please sign in to comment.