Skip to content

Commit

Permalink
Oops, NA_real_ for proper expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed Aug 19, 2022
1 parent 2077cf6 commit 60a4661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-slab.R
Original file line number Diff line number Diff line change
@@ -125,7 +125,7 @@ test_that("extended slab functionality: weighted aggregation", {
expect_equal(na.1$p.q50, 6.5)

na.2 <- slab(x, ~ ph1to1h2o_r, slab.structure = c(0, 10), weights = "comppct_r", slab.fun = weighted.mean, na.rm = TRUE)
expect_equal(na.2$value, NA)
expect_equal(na.2$value, NA_real_)

})

0 comments on commit 60a4661

Please sign in to comment.