From 5ec8dbe82f9ffe2d6dd4496a9f152b9f02351638 Mon Sep 17 00:00:00 2001 From: Matt Dancho Date: Mon, 17 Oct 2022 22:34:35 -0400 Subject: [PATCH] dummy encoding integer --- tests/testthat/test-developer-tools-xregs.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testthat/test-developer-tools-xregs.R b/tests/testthat/test-developer-tools-xregs.R index 991c7d8d..a7c5e33a 100644 --- a/tests/testthat/test-developer-tools-xregs.R +++ b/tests/testthat/test-developer-tools-xregs.R @@ -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 %>% @@ -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")) })