tests/testthat/test-split_spec.R

data("test_lib")
data("raman_hdpe")

test_that("split_spec() handles inputs correctly", {
    listed <- list(test_lib, raman_hdpe)
    test <- split_spec(listed)
    test2 <- split_spec(list(test_lib))
    test3 <- split_spec(list(raman_hdpe))
    expect_equal(length(test), 58)
    expect_equal(length(test2), 57)
    expect_equal(length(test3), 1)
})
wincowgerDEV/OpenSpecy documentation built on June 14, 2025, 5:57 a.m.