tests/testthat/test-getCDs.R

library(testthat)

test_that("getCDs works correctly", {
    df <- RP[1:5, ] # Only check first 5 molecules for speedup
    y2 <- getCDs(df, verbose = 0)
    nc <- ncol(y2)
    expect_true(all.equal(y2[, 1:3], df))
    expect_true(all(colnames(y2)[4:nc] %in% CDFeatures))
})

Try the FastRet package in your browser

Any scripts or data that you put into this service are public.

FastRet documentation built on June 25, 2024, 5:07 p.m.