Skip to content

Commit

Permalink
Cleaned tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iagomosqueira committed Apr 9, 2021
1 parent cc31360 commit 5dd94e0
Show file tree
Hide file tree
Showing 167 changed files with 672,546 additions and 240,331 deletions.
7 changes: 4 additions & 3 deletions tests/testthat.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ library(ss3om)
# expect_comparable {{{

expect_comparable <- function(object, expected, ..., label = NULL,
expected.label = NULL) {
expected.label = NULL, diff = 0.05) {

# 1. Capture object and label
act <- quasi_label(rlang::enquo(object), label, arg = "object")
Expand All @@ -22,8 +22,9 @@ expect_comparable <- function(object, expected, ..., label = NULL,
# 2. Call expect()
act$diff <- c((object - expected) / abs(expected))
expect(
all(abs(act$diff) < 0.02),
sprintf("some relative differences larger than 2%%, mean = %.2f", mean(act$diff))
all(abs(act$diff) < diff),
sprintf("some relative differences larger than %.2f%%, mean = %.2f",
diff * 100, mean(act$diff))
)

# 3. Invisibly return the value
Expand Down
14,212 changes: 0 additions & 14,212 deletions tests/testthat/3.30/adrhke/CompReport.sso

This file was deleted.

Binary file added tests/testthat/3.30/adrhke/CompReport.sso.gz
Binary file not shown.
1,811 changes: 0 additions & 1,811 deletions tests/testthat/3.30/adrhke/ParmTrace.sso

This file was deleted.

12,547 changes: 0 additions & 12,547 deletions tests/testthat/3.30/adrhke/Report.sso

This file was deleted.

Binary file added tests/testthat/3.30/adrhke/Report.sso.gz
Binary file not shown.
66 changes: 0 additions & 66 deletions tests/testthat/3.30/adrhke/SIS_table.sso

This file was deleted.

Binary file removed tests/testthat/3.30/adrhke/admodel.cov
Binary file not shown.
Loading

0 comments on commit 5dd94e0

Please sign in to comment.