tests/testthat/test_a_galois.R

test_that("galois() and inv_galois() work as expected", {
  expect_identical(
    results <- vapply(seq_len(255) - 1, inv_galois, integer(1)),
    galois_series()
  )
  expect_identical(galois(results), 0:254)
})

Try the qrcode package in your browser

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

qrcode documentation built on Nov. 11, 2023, 5:07 p.m.