Skip to content

Commit c0f3ef2

Browse files
Merge pull request #530 from tidymodels/delete-test
2 parents 4a055ec + 5c1b8b7 commit c0f3ef2

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

tests/testthat/_snaps/misc.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,6 @@
4848
i This is an internal error that was detected in the yardstick package.
4949
Please report it at <https://github.com/tidymodels/yardstick/issues> with a reprex (<https://tidyverse.org/help/>) and the full backtrace.
5050

51-
# case weights must be numeric
52-
53-
Code
54-
yardstick_table(x, x, case_weights = "x")
55-
Condition
56-
Error in `hardhat::weighted_table()`:
57-
! Can't convert `weights` <character> to <double>.
58-
5951
# works with constant inputs
6052

6153
Code

tests/testthat/test-misc.R

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,6 @@ test_that("must have at least 2 levels", {
7171
expect_snapshot(error = TRUE, yardstick_table(x, x))
7272
})
7373

74-
test_that("case weights must be numeric", {
75-
x <- factor(levels = c("x", "y"))
76-
77-
expect_snapshot(error = TRUE, yardstick_table(x, x, case_weights = "x"))
78-
})
79-
8074
test_that("works with hardhat case weights", {
8175
x <- factor(c("x", "y", "x"), levels = c("x", "y"))
8276
w <- hardhat::frequency_weights(c(1, 3, 5))

0 commit comments

Comments
 (0)