tests/testthat/test-rc.feature.replace.na.R

test_that("RAMClustR rc.feature.replace.na", {
  set.seed(123) # to get reproducible results with jitters
  ramclustObj <- readRDS(file.path("testdata", "rc.expand.sample.names.rds"))
  expected <- readRDS(file.path("testdata", "rc.feature.replace.na.rds"))
  
  actual <- rc.feature.replace.na(ramclustObj = ramclustObj)

  expect_equal(actual, expected)
})
cbroeckl/RAMClustR documentation built on March 23, 2024, 6:45 p.m.