tests/testthat/test-auto_crop_fast.R

test_that("Creates a crops folder", {
  demo_path <-paste0(system.file("extdata",package = "synapsis"),"")
  auto_crop_fast(demo_path)
  folders <- list.dirs(demo_path)
  for (folder in folders){
    if(grepl("crops", folder)){
      folder_exists <- TRUE
    }
  }
  expect_true(folder_exists)
})
mcneilllucy/synapsis documentation built on Dec. 21, 2021, 3:59 p.m.