tests/testthat/test-do.findmain.R

test_that("RAMClustR do.findmain", {
  wd <- getwd()
  tmp <- tempdir()
  ramclustObj <- readRDS(file.path("testdata", "rc.qc.rds"))
  expected <- readRDS(file.path("testdata", "do.findmain.rds"))

  setwd(tmp)
  actual <- do.findmain(ramclustObj = ramclustObj)

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