tests/testthat/test_aac.R

test_that("Test suite aac.R",{

check_abelianize <- function(n){
    expect_true(all(abelianize(sum(abelianize(alpha(sample(n))))) == abc(n)))
}

sapply(1:10,check_abelianize)

})

Try the freegroup package in your browser

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

freegroup documentation built on Dec. 28, 2022, 2:14 a.m.