Skip to content

Commit

Permalink
glom: add test for #180
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed Jun 1, 2024
1 parent f25246d commit a2999ea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testthat/test-glom.R
Original file line number Diff line number Diff line change
Expand Up @@ -217,5 +217,11 @@ test_that("glom vectorization", {

# truncate twice, initially with drop=FALSE
expect_equal(length(trunc(trunc(sp1, 75, 100, drop = FALSE), 90, 100)), 4)

# no horizons in glom interval, with missing profiles dropped
expect_equal(length(trunc(sp1, 250, 300)), 0)

# no horizons in glom interval, with missing profiles filled
expect_equal(length(trunc(sp1, 250, 300, drop = FALSE)), 0)
})

0 comments on commit a2999ea

Please sign in to comment.