From be1779be3efd2240592950f44420a7ec20350e2c Mon Sep 17 00:00:00 2001 From: Eric Scott Date: Wed, 11 Sep 2024 16:45:45 -0700 Subject: [PATCH] add tile_n() to existing test --- tests/testthat/test-tar-terra-tiles.R | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/testthat/test-tar-terra-tiles.R b/tests/testthat/test-tar-terra-tiles.R index b220063..1cecc9e 100644 --- a/tests/testthat/test-tar-terra-tiles.R +++ b/tests/testthat/test-tar-terra-tiles.R @@ -21,9 +21,14 @@ targets::tar_test("tar_terra_tiles() works", { tile_fun = tile_blocksize ), tar_terra_tiles( - name = rast_split_n, + name = rast_split_grid, raster = my_map, tile_fun = \(x) tile_grid(x, ncol = 2, nrow = 2) + ), + tar_terra_tiles( + name = rast_split_n, + raster = my_map, + tile_fun = \(x) tile_n(x, n = 6) ) ) })