Nothing
library(anonymizer)
context("hash()")
test_that("Produces the correct output.", {
expect_equal(hash("a", .algo = "sha256"), "fb1a678ef965ad4a66c712d2161f20319091cb4e7611e1925df671018c833f72")
expect_equal(hash("a", .algo = "sha256", .seed = 1), "fb1a678ef965ad4a66c712d2161f20319091cb4e7611e1925df671018c833f72")
expect_equal(hash("a", .algo = "sha256", .seed = 2), "fb1a678ef965ad4a66c712d2161f20319091cb4e7611e1925df671018c833f72")
})
test_that("Produces the correct output type.", {
expect_is(hash(letters), "character")
})
test_that("Produces the correct errors.", {
expect_error(hash(mtcars))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.