Skip to content

Commit

Permalink
another one
Browse files Browse the repository at this point in the history
  • Loading branch information
wcornwell committed Nov 20, 2024
1 parent 2233081 commit fd8696c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/testthat/test-multiband_mask_create.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ output_dir <- tempdir()

test_that('create_multiband_image works', {
input_dir <- system.file("extdata/create_multiband_image", package = "saltbush")
create_multiband_image(input_dir,
out <- create_multiband_image(input_dir,
c('blue', 'green', 'red', 'red_edge', 'nir'),
output_dir)
output_dir,
return_raster=TRUE)
folder <- "extdata/create_multiband_image"
output_filename <- file.path(output_dir, paste0(basename(folder), "_multiband_image"))
file_that_should_exist <- paste0(output_filename, '.tif')
expect_true(file.exists(file_that_should_exist))
expect_type(out, "S4")
})

test_that('create_multiband_image works', {
Expand Down

0 comments on commit fd8696c

Please sign in to comment.