Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/testthat/test_W_gamma.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ test_that("W_gamma is inverse of H_gamma", {
})

test_that("W_gamma treats branch correctly", {
cat("non-principal branch is less than principal")
cat("non-principal branch is less than principal\n")
expect_lt(W_gamma(-1, gamma = 0.1, branch = -1),
W_gamma(-1, gamma = 0.1, branch = 0))

cat("non-principal branch is greater than principal")
cat("non-principal branch is greater than principal\n")
expect_gt(W_gamma(1, gamma = -0.1, branch = -1),
W_gamma(1, gamma = -0.1, branch = 0))
})
Expand All @@ -77,4 +77,4 @@ test_that("deriv_W_gamma is correct", {
deriv_W_gamma(-c(1, 10), gamma = -gg),
info = paste("asymmetric for gamma = ", gg))
}
})
})