library(rstandard)
context("standard error function")
test_that("Correct Standard deviation results",{
expect_equal(standard_deviation(c(1,1,1)),0)
expect_equal(standard_deviation(c(-1,-1,-1)),0)
expect_equal(standard_deviation(c(-5,-5)),0)
expect_equal(standard_deviation(c()),NaN)
expect_error(standard_deviation("hello"),)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.