Nothing
# Test `BarFactory` class.
test_that("'BarFactory' produces the correct instance types", {
# Create a bar factory.
bar_factory <- BarFactory$new()
# Expect a basic bar.
expect_equal(
Helper$get_class_name(bar_factory$get("basic")),
"BasicBar"
)
# Expect a modern bar.
expect_equal(
Helper$get_class_name(bar_factory$get("modern")),
"ModernBar"
)
# Expect error for unsupported bar types.
expect_error(
bar_factory$get("unsupported"),
as_text(Exception$feature_not_developed())
)
})
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.