rm(list=ls())
context("propercase")
library(cctu)
library(testthat)
test_that("standard",
{
expect_equal(propercase("heLLo WORLD"), "Hello World")
}
)
test_that("apostrophe",
{
expect_equal(propercase("Addenbrooke's"), "Addenbrooke's")
}
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.