Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mjskay committed Jan 6, 2024
1 parent 6c87a3b commit 6ae97f8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/testthat/test-print.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ test_that("print.draws_list runs without errors", {

test_that("print.draws_rvars runs without errors", {
skip_on_cran()
skip_on_os("windows")
x <- as_draws_rvars(example_draws())
out <- capture.output(print(x))
expect_match(
Expand All @@ -65,7 +64,7 @@ test_that("print.draws_rvars runs without errors", {
x <- weight_draws(x, rep(1, ndraws(x)))
expect_output(
print(x),
"hidden reserved variables ..\\.log_weight.."
"weighted rvar"
)
})

Expand Down Expand Up @@ -112,7 +111,6 @@ test_that("print.draws_list handles reserved variables correctly", {

test_that("print.draws_rvars handles reserved variables correctly", {
skip_on_cran()
skip_on_os("windows")
x <- as_draws_rvars(example_draws())
variables(x)[1] <- ".log_weight" # reserved name
expect_output(print(x, max_variables = 1), "tau")
Expand Down

0 comments on commit 6ae97f8

Please sign in to comment.