tests/testthat/test_dimensions.R

source("main.R")

context("Checking dimension of output objects.")

test_that("Dimension of snp datasets is compatible with those supplied", {
  expect_equal(dim(sim_snps$snps), c(n, p))
  expect_equal(dim(repl_snps$snps), c(n, p))
})


test_that("Dimension of phenotype datasets is compatible with those supplied", {
  expect_equal(dim(sim_phenos$phenos), c(n, d))
  expect_equal(dim(repl_phenos$phenos), c(n, d))
})
hruffieux/echoseq documentation built on Jan. 10, 2024, 10:06 p.m.