context("NPS calculation")
test_that("NPS calculation", {
expect_true(all(score(nps(0)) == c(-1, 0)))
expect_true(all(score(nps(10)) == c(1, 0)))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.