We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9edff9 commit 3a9d564Copy full SHA for 3a9d564
tests/testthat/test-fiting.R
@@ -1,7 +1,6 @@
1
test_that("fit and fit_xy errors if outcome is provided", {
2
- expect_error(
3
- k_means(num_clusters = 5) %>% fit_xy(mtcars),
4
- regexp = NA
+ expect_no_error(
+ k_means(num_clusters = 5) %>% fit_xy(mtcars)
5
)
6
7
expect_snapshot(
@@ -12,9 +11,8 @@ test_that("fit and fit_xy errors if outcome is provided", {
12
11
13
km <- k_means(num_clusters = 5)
14
15
16
- workflows::workflow(~., km) %>% fit(mtcars),
17
+ workflows::workflow(~., km) %>% fit(mtcars)
18
19
20
error = TRUE,
0 commit comments