test_that("TESTING change_ancestry()", {
print("change_ancestry(anc = 0, error_rate = 1) should be 1 or 2")
print(change_ancestry(anc = 0, error_rate = 1))
expect_equal(change_ancestry(anc = 0, error_rate = 0), 0)
print("change_ancestry(anc = 1, error_rate = 1) should be 0 or 2")
print(change_ancestry(anc = 1, error_rate = 1))
expect_equal(change_ancestry(anc = 1, error_rate = 0), 1)
print("change_ancestry(anc = 2, error_rate = 1) should be 0 or 1")
print(change_ancestry(anc = 2, error_rate = 1))
expect_equal(change_ancestry(anc = 2, error_rate = 0), 2)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.