Skip to content

Commit e025156

Browse files
committed
add test
1 parent a7d0a81 commit e025156

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/testthat/test-guides.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,11 @@ test_that("guide_axis_logticks calculates appropriate ticks", {
470470
expect_equal(unlog, c(-rev(outcome), 0, outcome))
471471
expect_equal(key$.type, rep(c(1,2,3), c(7, 4, 28)))
472472

473+
# Test very small pseudo_log (#6121)
474+
scale <- test_scale(transform_pseudo_log(sigma = 1e-5), c(0, 1e-10))
475+
key <- train_guide(guide_axis_logticks(), scale)$logkey
476+
expect_gte(nrow(key), 1)
477+
473478
# Test expanded argument
474479
scale <- test_scale(transform_log10(), c(20, 900))
475480
scale$continuous_range <- c(1, 3)

0 commit comments

Comments
 (0)