test_that("use", {
expect_silent(check_player(create_test_player()))
expect_error(
check_player(NA),
"'player' must be a list"
)
expect_error(
check_player(list()),
"'player' must be a list with the element 'x'"
)
expect_error(
check_player(list(x = 1)),
"'player' must be a list with the element 'y'"
)
expect_error(
check_player(list(x = 1, y = 1)),
"'player' must be a list with the element 'size'"
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.