Skip to content

Commit

Permalink
check if starts above then truncated
Browse files Browse the repository at this point in the history
closes #4
  • Loading branch information
joethorley committed Apr 23, 2024
1 parent bb515e2 commit d4f0723
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file added tests/testthat/_snaps/gss-plot/gss_plot13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions tests/testthat/test-gss-plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,10 @@ test_that("gss_plot not shift", {

expect_warning(expect_snapshot_plot(gss_plot(data, min_length = 60), "gss_plot12"))
})


test_that("gss_plot starts above 5", {
data <- gsdd::temperature_data
data <- data[-(1:85),]
expect_snapshot_plot(gss_plot(data, min_length = 60, ignore_truncation = TRUE), "gss_plot13")
})

0 comments on commit d4f0723

Please sign in to comment.