context("Converting calendar months to financial year months")
test_that("Function returns expected results", {
expect_equal(cmonth_to_fmonth(1), 10)
expect_equal(cmonth_to_fmonth(2), 11)
expect_equal(cmonth_to_fmonth(4), 1)
expect_equal(cmonth_to_fmonth(3), 12) # from bitter experience
expect_equal(cmonth_to_fmonth(12), 9)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.