tests/testthat/test-bug44-infinite-loop-on-bad-string.R

test_that("Invalid string input should cause error", {
  
  testthat::capture_output({
  expect_error({
    read_json_str("hello")
  })
  })
  
})

Try the yyjsonr package in your browser

Any scripts or data that you put into this service are public.

yyjsonr documentation built on June 8, 2025, 10:47 a.m.