Skip to content

Commit

Permalink
Correct the names in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulnorthrop committed Sep 11, 2020
1 parent adb2717 commit 776c1f3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: revdbayes
Title: Ratio-of-Uniforms Sampling for Bayesian Extreme Value Analysis
Version: 1.3.8.9000
Date: 2020-09-01
Version: 1.3.9
Date: 2020-09-11
Authors@R: c(person(c("Paul", "J."), "Northrop", email = "[email protected]",
role = c("aut", "cre", "cph")), person(c("Scott", "D."), "Grimshaw",
role = c("ctb")))
Expand Down
6 changes: 5 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# revdbayes 1.3.8.9000
# revdbayes 1.3.9

## Bug fixes and minor improvements

* Tests in `test-gp.R`, `test-gev.R` and `test-bingp.R` have been modified to avoid errors in the upcoming new release of the `testthat` package.

# revdbayes 1.3.8

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-bingp.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ shape_check <- c(-1, -0.5, -0.1, -ep, 0, ep, 0.1, 0.5, 1)
par_vals <- cbind(pu_check, loc_check, scale_check, shape_check)
p_vals <- 1 - pu_check + c(0.01, 0.1, 0.5, 0.9, 0.99) * pu_check
for (i in 1:nrow(par_vals)) {
test_string <- paste("GP shape = ", par_vals[i, ])
test_string <- paste("GP shape = ", par_vals[i, 4])
x <- pqbingp_test_fn(x = par_vals[i, ], p = p_vals)
test_function(x, test_string)
}
2 changes: 1 addition & 1 deletion tests/testthat/test-gev.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ shape_check <- c(-1, -0.5, -0.1, -ep, 0, ep, 0.1, 0.5, 1)
par_vals <- cbind(loc_check, scale_check, shape_check)
p_vals <- c(0.01, 0.1, 0.5, 0.9, 0.99)
for (i in 1:nrow(par_vals)) {
test_string <- paste("gev shape = ", par_vals[i, ])
test_string <- paste("gev shape = ", par_vals[i, 3])
x <- pqgev_test_fn(x = par_vals[i, ], p = p_vals)
test_function(x, test_string)
}
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-gp.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ shape_check <- c(-1, -0.5, -0.1, -ep, 0, ep, 0.1, 0.5, 1)
par_vals <- cbind(loc_check, scale_check, shape_check)
p_vals <- c(0.01, 0.1, 0.5, 0.9, 0.99)
for (i in 1:nrow(par_vals)) {
test_string <- paste("GP shape = ", par_vals[i, ])
test_string <- paste("GP shape = ", par_vals[i, 3])
x <- pqgp_test_fn(x = par_vals[i, ], p = p_vals)
test_function(x, test_string)
}
Expand Down

0 comments on commit 776c1f3

Please sign in to comment.