tests/testthat/test-generate_qr.R

test_that("QR code is created and is returned as matrix", {
  expect_equal(
    class(generate_qr("https://en.wikipedia.org/")),
    class(qrcode::qr_code("https://en.wikipedia.org/"))
  )
})

Try the namedropR package in your browser

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

namedropR documentation built on Aug. 28, 2022, 5:06 p.m.