tests/testthat/test-dependencies.R

test_that("permutations did not change the order in allperms", {
  all_perms_4 <- permutations::as.cycle(permutations::allperms(4))
  expect_equal(as.character(all_perms_4[5]), "(2,4,3)")
  expect_equal(as.character(all_perms_4[21]), "(1,4,3)")
})

Try the gips package in your browser

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

gips documentation built on April 3, 2025, 9:27 p.m.