Skip to content

Commit

Permalink
dummy encoding integer
Browse files Browse the repository at this point in the history
  • Loading branch information
mdancho84 committed Oct 18, 2022
1 parent 91892f3 commit 5ec8dbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-developer-tools-xregs.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ test_that("create_xreg_recipe: dummy_encode = FALSE returns factors", {

})

test_that("create_xreg_recipe: dummy_encode = TRUE returns numeric", {
test_that("create_xreg_recipe: dummy_encode = TRUE returns integer", {

# Month
predictors <- m4_monthly %>%
Expand All @@ -56,7 +56,7 @@ test_that("create_xreg_recipe: dummy_encode = TRUE returns numeric", {

expect_equal(ncol(juiced), 11)

expect_true(all(juiced %>% map(class) %>% unlist() %in% "numeric"))
expect_true(all(juiced %>% map(class) %>% unlist() %in% "integer"))


})

0 comments on commit 5ec8dbe

Please sign in to comment.