Skip to content

Commit

Permalink
Merge pull request #76 from poissonconsulting/b-conditional-sensitivi…
Browse files Browse the repository at this point in the history
…ty-4

Skip tests for `sens_skewnorm()` that use the `sn` package if it is not installed.
  • Loading branch information
nehill197 authored Aug 20, 2024
2 parents fb429fd + 4206daa commit aaacb6b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testthat/test-sens.R
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@ test_that("sens_skewnorm errors when provided with a vector of values for sd_mul
})

test_that("sd of skewnorm deviates expands as expected", {
skip_if_not_installed("sn")
mean <- 10
sd <- 20
shape <- -1
Expand All @@ -640,6 +641,7 @@ test_that("sd of skewnorm deviates expands as expected", {
})

test_that("sd of skewnorm deviates decreases as expected", {
skip_if_not_installed("sn")
mean <- 10
sd <- 20
shape <- 2
Expand All @@ -656,6 +658,7 @@ test_that("sd of skewnorm deviates decreases as expected", {
})

test_that("mean of skewnorm deviates changes expectedly with expanding sd", {
skip_if_not_installed("sn")
mean <- 100
sd <- 20
shape <- 2
Expand All @@ -672,6 +675,7 @@ test_that("mean of skewnorm deviates changes expectedly with expanding sd", {
})

test_that("mean of skewnorm deviates changes expectedly with reducing sd", {
skip_if_not_installed("sn")
mean <- 100
sd <- 20
shape <- 2
Expand Down

0 comments on commit aaacb6b

Please sign in to comment.