Nothing
# Run all tests in this script:
## testthat::test_file(file.path("tests", "testthat", "test-pc_level_calc.R"))
# Error testing
test_that("Errors work as desired", {
expect_error(dndR::pc_level_calc(player_xp = NULL))
expect_error(dndR::pc_level_calc(player_xp = "xxx"))
expect_error(dndR::pc_level_calc(player_xp = c(4000, 250)))
})
# # Warning testing
# test_that("Warnings work as desired", {
# # No warnings in this function
# })
# # Message testing
# test_that("Messages work as desired", {
# # No messages in this function
# })
# Output testing
test_that("Outputs are as expected", {
expect_equal(class(dndR::pc_level_calc(player_xp = 3600)), "data.frame")
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.