Skip to content

Commit

Permalink
tests: add unit test for issue #63, containsElements should return FA…
Browse files Browse the repository at this point in the history
…LSE for invalid elements
  • Loading branch information
sgibb committed Aug 8, 2023
1 parent 0888fa4 commit f73f002
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test_chemFormula.R
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ test_that("containsElements", {
expect_true(containsElements("C6H12O6", "H2O"))
expect_false(containsElements("C6H12O6", "NH3"))
expect_identical(containsElements("C6H12O6", NA), NA)
expect_false(containsElements("C6H12O6", "Z"))
expect_false(containsElements("C6H12O6", ""))
expect_identical(
containsElements("C6H12O6", c("H2O", "NH3")),
c(TRUE, FALSE)
Expand Down

0 comments on commit f73f002

Please # to comment.