test_that("cat_progress() works", {
f <- kwb.dwd:::cat_progress
expect_error(f())
expect_output(result <- f(0L, n = 1L), "\\[ \\]")
expect_null(result)
expect_output(result <- f(1L, n = 1L))
expect_null(result)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.