-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for states + tests for metro areas
- Loading branch information
1 parent
6b6b0a8
commit 7c142d9
Showing
2 changed files
with
15 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
test_that("metro areas functions work", { | ||
withr::local_options(list(tigris_use_cache = TRUE)) | ||
|
||
expect_s3_class(core_based_statistical_areas(), "sf") | ||
|
||
expect_s3_class(urban_areas(), "sf") | ||
|
||
# expect_s3_class(combined_statistical_areas(), "sf") | ||
|
||
expect_s3_class(metro_divisions(year = 2019), "sf") | ||
|
||
expect_s3_class(new_england(year = 2019), "sf") | ||
|
||
}) |
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