Skip to content

Commit

Permalink
Test everything for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
ntthung committed Apr 21, 2020
1 parent e030216 commit d9f20c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
6 changes: 3 additions & 3 deletions tests/testthat.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ library(ldsr)
#
# force tests to be executed if in dev release which we define as
## having a sub-release, eg 0.9.15.5 is one whereas 0.9.16 is not
if (length(strsplit(packageDescription("ldsr")$Version, "\\.")[[1]]) > 3) {
Sys.setenv("RunAllTests" = "yes")
}
# if (length(strsplit(packageDescription("ldsr")$Version, "\\.")[[1]]) > 3) {
# Sys.setenv("RunAllTests" = "yes")
# }
test_check("ldsr")
8 changes: 2 additions & 6 deletions tests/testthat/test-non-standard-calls.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ context('non-standard EM')

u <- v <- t(NPpc[601:813])

.runThisTest <- Sys.getenv("RunAllTests") == "yes"

if (.runThisTest) {
test_that('Return-raw = TRUE works', {
test_that('Return-raw = TRUE works', {
expect_is(LDS_reconstruction(NPannual, u, v, start.year = 1800, num.restarts = 2, return.raw = TRUE), "list")
})
}
})

0 comments on commit d9f20c7

Please sign in to comment.