Nothing
test_that("test die: constructor", {
d <- Die$new("Blue")
expect_equal(d$getColor(), "Blue")
expect_equal(d$getValue(), 0)
})
test_that("test die: roll", {
d <- Die$new("Blue")
set.seed(1)
expect_equal(d$roll(), 1)
expect_equal(d$getValue(), 1)
})
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.