Skip to content

Commit

Permalink
extended test
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-sheridan committed Oct 17, 2023
1 parent 9d046fa commit 4c2ee01
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/testthat/test-def_collection.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ Collection: Three Miscellaneous Twilight Zone Episodes
tz1959e3x24
tz1959e1x22
tz1959e2x06")
collection_id <- unlist(strsplit(file, split = "\n"))[1]
collection_id <- "Collection: Three Miscellaneous Twilight Zone Episodes"
date <- "1959-1964"
description <- "Three miscellaneous Twilight Zone episodes used for testing purposes."
references <- "https://www.themeontology.org"
component_story_ids <- as_tibble_col(c("tz1959e3x24", "tz1959e1x22", "tz1959e2x06"), column_name = "component_story_ids")
collection <- Collection$new(collection_id, file)
component_story_ids <- c("tz1959e3x24", "tz1959e1x22", "tz1959e2x06")
expect_equal(pull(collection$component_story_ids()), component_story_ids)
expect_equal(collection$component_story_ids(), component_story_ids)
})

0 comments on commit 4c2ee01

Please sign in to comment.