Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed Feb 24, 2024
1 parent ee45cf2 commit a5c22e3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/testthat/test-collapseHz.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
test_that("collapseHz works", {
data("jacobs2000", package = "aqp")
x <- collapseHz(jacobs2000, c(`A` = "^A",
`E` = "E",
`Bt` = "[ABC]+t",
`C` = "^C",
`foo` = "bar"))
expect_equal(length(jacobs2000), length(x))
expect_equal(nrow(x), 29)
})

0 comments on commit a5c22e3

Please sign in to comment.