Skip to content

Commit

Permalink
Merge branch 'main' into 229-remove_duplicate_sector_codes
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhoffa authored Feb 8, 2024
2 parents 8c041ed + 3bfd070 commit 76929a3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/testthat/test-data_dictionary.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ test_that("defines all its names", {

test_that("includes suffix _demo", {
dd <- data_dictionary$dataset
expect_true("ald_demo" %in% dd)
expect_true("loanbook_demo" %in% dd)
datasets <- enlist_datasets("r2dii.data")

for (dataset in grep("_demo$", names(datasets), value = TRUE)) {
expect_true(dataset %in% dd)
}
})

test_that("outputs as many rows per `dataset` as columns in `dataset`", {
Expand Down

0 comments on commit 76929a3

Please sign in to comment.