test_that("permutation test can be applied", { model_x <- tna(group_regulation[1:200, ]) model_y <- tna(group_regulation[1001:1200, ]) expect_error( permutation_test(model_x, model_y, iter = 20), NA ) }) test_that("paired permutation test can be applied", { model_x <- tna(group_regulation[1:200, ]) model_y <- tna(group_regulation[1001:1200, ]) expect_error( permutation_test(model_x, model_y, paired = TRUE, iter = 20), NA ) })