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/"))
  )
})
nucleic-acid/namedropR documentation built on Jan. 7, 2023, 10:09 p.m.