context("PrimalityTests")
test_that('Naive prime test function accurately determines prime integers', {
expect_equal(isprime(11), TRUE)
expect_equal(isprime(9), FALSE)
})
test_that('Fermat primality test function accurately determines prime integers', {
expect_equal(fermat_prime(21), FALSE)
expect_equal(fermat_prime(23), TRUE)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.