tests/testthat/test-serialise.R

test_that("serialise", {
  json <- default_serialiser(list(x = 1))
  expect_equal(
    json,
    jsonlite::toJSON(
      list(x = 1),
      auto_unbox = TRUE    
    )
  )
})
JohnCoene/ambiorix documentation built on Jan. 17, 2025, 11:11 p.m.