diff --git a/tests/testthat/test-progress.R b/tests/testthat/test-progress.R index 3e0d6dd..f836901 100644 --- a/tests/testthat/test-progress.R +++ b/tests/testthat/test-progress.R @@ -6,18 +6,18 @@ test_that("No side effects when called empty", { expect_equal(julia_progress(), julia_progress()) }) -old_opts <- julia_progress() +default_opts <- julia_progress() test_that("Side effect by show, width, or both", { julia_progress(show = FALSE) expect_equal(julia_progress()$show, FALSE) - julia_progress(width = 100) - expect_equal(julia_progress()$width, 100) - julia_progress(old_opts) - expect_equal(julia_progress(), old_opts) + julia_progress(width = 20) + expect_equal(julia_progress()$width, 20) + julia_progress(default_opts) + expect_equal(julia_progress(), default_opts) }) test_that("Restore startup option", { julia_progress(show = TRUE, width = "auto") - expect_equal(old_opts, julia_progress()) + expect_equal(default_opts, julia_progress()) })