Skip to content

Commit

Permalink
fix unit test surfaced by fixes in discrete_range behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasp85 committed Nov 1, 2023
1 parent eeae014 commit 170c51e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-range.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test_that("Mutable ranges work", {
x <- DiscreteRange$new()
x$train(factor(letters[1:3]))
expect_equal(x$range, c("a", "b", "c"))
x$train(factor("a", "h"))
x$train(factor(c("a", "h")))
expect_equal(x$range, c("a", "b", "c", "h"))
x$reset()
expect_equal(x$range, NULL)
Expand Down

0 comments on commit 170c51e

Please sign in to comment.