tests/testthat/test_bcftools_stats.R

context("Test parsing bcftools output, S4")
fn <- system.file("extdata", "medium.call.stats", package="manticore")
S4stats <- readBcftoolsStats(fn)

test_that("new S4 bcftools instance", {
    expect_equal(class(S4stats)[1], "BcftoolsStats")
    expect_equal(S4stats@label, fn)
})


context("Test parsing bcftools output, S3")
S3stats <- read.bcftools.stats(fn)
test_that("new S3 bcftools instance", {
    expect_equal(class(S3stats)[1], "bcftools.stats")
    expect_equal(S3stats$label, fn)
})
percyfal/nonmodelr documentation built on Sept. 11, 2019, 10:38 a.m.