Skip to content

Commit

Permalink
Modified test-bcpc.R to take into account locales retrieved (+3 langu…
Browse files Browse the repository at this point in the history
…age, so +3 length for fluazinam), and new `bcpc_query` from arguments.
  • Loading branch information
abourgoin committed Nov 7, 2024
1 parent e7ff991 commit bc147c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-bcpc.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ test_that("BCPC pesticide compendium, name", {
expect_equal(o1[["Fluazinam"]]$cas, "79622-59-6")
expect_equal(length(o1[["S-Metolachlor"]]$inchikey), 2)
expect_equal(length(o1[["S-Metolachlor"]]$inchi), 2)
expect_equal(length(o1[["Fluazinam"]]), 11)
expect_equal(length(o1[["Fluazinam"]]), 14)
})


Expand All @@ -60,7 +60,7 @@ test_that("BCPC pesticide compendium, build_index", {
expect_s3_class(idx, "data.frame")
expect_equal(ncol(idx), 4)
expect_equal(names(idx), c("names", "links", "linknames", "source"))
expect_equal(unique(idx$source), c("rn", "cn"))
expect_equal(unique(idx$source), c("rn", "inchikey", "cn", "fr", "ru", "zh"))
expect_equal(idx$names[1], "50-00-0")
})

Expand Down

0 comments on commit bc147c0

Please sign in to comment.