id_error <- "A00005"
id_ok <- "A000055"
test_that("OEIS_url shows an error", {
testthat::expect_error(OEIS_url(id_error))
})
test_that("OEIS_url returns and object of class character", {
testthat::expect_equal(class(OEIS_url(id_ok)), "character")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.