Skip to content

Commit

Permalink
complete tests for map function
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestguevarra committed Apr 23, 2024
1 parent e745a7a commit 9ff2e0c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testthat/test-icd_map.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ testthat::test_that(
icd_map(code = "A00"),
expected = names(ten_map_to_one_eleven)
)
expect_s3_class(icd_map(from = "icd10", code = "A00"), "tbl")
expect_length(nrow(icd_map(from = "icd10", code = "A00")), 1)
expect_named(
icd_map(from = "icd10", code = "A00"),
expected = names(ten_map_to_one_eleven)
)
}
)

0 comments on commit 9ff2e0c

Please sign in to comment.