forked from ropensci/gutenbergr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Document `gutenberg_add_metadata` * Restructure exports/test (ropensci#67)
- Loading branch information
1 parent
cd9ad51
commit c946d59
Showing
4 changed files
with
39 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
test_that("All four datasets have a date-updated", { | ||
d1 <- attr(gutenberg_metadata, "date_updated") | ||
d2 <- attr(gutenberg_subjects, "date_updated") | ||
d3 <- attr(gutenberg_authors, "date_updated") | ||
d4 <- attr(gutenberg_languages, "date_updated") | ||
|
||
expect_s3_class(d1, "Date") | ||
expect_s3_class(d2, "Date") | ||
expect_s3_class(d3, "Date") | ||
expect_s3_class(d4, "Date") | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters