test_that("dose_vector_to_string works OK", {
expect_equal(
dose_vector_to_string(as.integer(c(1, 3))),
"1.3"
)
expect_equal(
dose_vector_to_string(as.integer(c(3, 2))),
"3.2"
)
})
test_that("dose_string_to_vector works OK", {
expect_no_error(dose_string_to_vector("1.3"))
expect_equal(
dose_string_to_vector("1.3"),
c(1, 3)
)
expect_equal(
dose_string_to_vector("3.2"),
c(3, 2)
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.