Debian Codegraph @

tests/testthat/test-encode-decode.R

raw
1 context("encoding")
2
3 test_that("R objects can be encoded, decoded", {
4 data <- list(a = 1L, b = 2L, c = "3")
5 encoded <- base64_encode_object(data)
6 decoded <- base64_decode_object(encoded)
7 expect_equal(data, decoded)
8 })