Skip to content

Commit

Permalink
Change RNGkind back to default (had caused test case errors).
Browse files Browse the repository at this point in the history
  • Loading branch information
0liver0815 committed Sep 15, 2023
1 parent 7a13770 commit 6c6fd66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testthat/test-Design-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ test_that("set_seed returns correct value if seed is a value", {
rng_state <- set_seed(seed)
attr(seed_int, "kind") <- list("Super-Duper", "Inversion", "Rejection")
expect_equal(rng_state, seed_int)

RNGkind("default")
})

test_that("set_seed returns correct value if seed is NULL", {
Expand All @@ -27,6 +29,8 @@ test_that("set_seed returns correct value if seed is NULL", {
RNGkind("Super-Duper")
rng_state <- set_seed(seed)
expect_equal(rng_state, .Random.seed)

RNGkind("default")
})

## get_result_list ----
Expand Down

0 comments on commit 6c6fd66

Please sign in to comment.