mirror of
https://github.com/rstudio/shiny.git
synced 2026-02-10 14:45:12 -05:00
Avoid rounding errors from pretty(). Fixes #1006
This commit is contained in:
@@ -14,3 +14,10 @@ test_that("selectInput options are properly escaped", {
|
||||
expect_true(any(grepl("<option value=\"'\">", si_str, fixed = TRUE)))
|
||||
expect_true(any(grepl("<optgroup label=\""Separators"\">", si_str, fixed = TRUE)))
|
||||
})
|
||||
|
||||
|
||||
# For issue #1006
|
||||
test_that("sliderInput steps don't have rounding errors", {
|
||||
# Need to use expect_identical; expect_equal is too forgiving of rounding error
|
||||
expect_identical(findStepSize(-5.5, 4, NULL), 0.1)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user