Skip to content

Commit

Permalink
add test for icd_map function
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestguevarra committed Apr 23, 2024
1 parent f682563 commit e745a7a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/testthat/test-icd_map.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Tests for icd_map function ---------------------------------------------------

testthat::test_that(
"output class/type and structure is as expected", {
expect_s3_class(icd_map(code = "A00"), "tbl")
expect_length(nrow(icd_map(code = "A00")), 1)
expect_named(
icd_map(code = "A00"),
expected = names(ten_map_to_one_eleven)
)
}
)

0 comments on commit e745a7a

Please sign in to comment.