tests/testthat/test_09_write_profile.R

library("seqCAT")
context("Write SNV profiles")

# Test data
data(test_profile_1)

# Tests
test_that("unsupported format specifications are handled correctly", {
    expect_error(write_profile(test_profile_1,
                               "test.bef"),
                 "Unsupported format specification \"")
    expect_error(write_profiles(list(test_profile_1),
                                directory = "./",
                                format    = "bef"),
                 "Unsupported format specification \"")
})
fasterius/seqCAT documentation built on Feb. 12, 2022, 7:24 p.m.