tests/testthat/test-options.R

test_that("test options", {
    options <- tw_options(host = "http://127.0.0.1")
    expect_equal(as.character(options$host), "http://127.0.0.1")

    tw_reset()
    options <- tw_options()

    expect_equal(as.character(options$host), "http://127.0.0.1:8080/")

})

Try the rtiddlywiki package in your browser

Any scripts or data that you put into this service are public.

rtiddlywiki documentation built on July 6, 2022, 1:09 a.m.