Skip to content

Commit

Permalink
example_products() gains tilt_subsector (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
maurolepore authored Jun 25, 2024
1 parent 3a39e01 commit c1f5a21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions R/example_dictionary.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ example_id <- function() {
15L, 3L, 1L,
16L, 1L, 1L,
17L, 1L, 1L,
17L, 1L, 3L,
18L, 4L, 1L,
14L, 2L, 2L,
15L, 3L, 2L,
Expand Down
5 changes: 5 additions & 0 deletions tests/testthat/test-example_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,8 @@ test_that("example_inputs() has co2 data of class 'double'", {
out <- example_inputs()
expect_type(out[[find_co2_footprint(out)]], "double")
})

test_that("example_products() has column 'tilt_subsector'", {
out <- example_products()
expect_true(hasName(out, "tilt_subsector"))
})

0 comments on commit c1f5a21

Please sign in to comment.