tests/testthat/test-as_hedgehog.R

test_that("as_hedgehog converts a quickcheck to a hedgehog generator", {
  repeat_test(
    property = function() {
      as_hedgehog(anything()) %>%
        inherits("hedgehog.internal.gen") %>%
        expect_true()
    }
  )
})

Try the quickcheck package in your browser

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

quickcheck documentation built on Oct. 12, 2023, 1:08 a.m.