Skip to content

Commit

Permalink
Reduced tolerance in some tests to pass on all operating systems
Browse files Browse the repository at this point in the history
  • Loading branch information
pepijn-devries committed Aug 30, 2024
1 parent 589e548 commit c5c834a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: ggsankeyfier
Type: Package
Title: Create Sankey and Alluvial Diagrams Using 'ggplot2'
Version: 0.1.8.0004
Version: 0.1.8.0005
Authors@R: c(person("Pepijn", "de Vries", role = c("aut", "cre", "dtc"),
email = "pepijn.devries@outlook.com",
comment = c(ORCID = "0000-0002-7961-6646")),
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ggsankeyfier v0.1.8.0004
ggsankeyfier v0.1.8.0005
-------------

* Added check workflow
Expand Down
2 changes: 0 additions & 2 deletions tests/testthat/_snaps/plots/ggsankeyfier-feedback.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions tests/testthat/test_pivot.r
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ test_that(
ecosystem_services,
c("activity_realm", "biotic_realm", "service_section"),
"RCSES")
}, ecosystem_services_pivot1)
}, ecosystem_services_pivot1,
tolerance = 1e-5)
})

test_that(
Expand All @@ -30,5 +31,6 @@ test_that(
ecosystem_services,
c("activity_realm", "biotic_realm", "service_section"),
"RCSES", "service_section")
}, ecosystem_services_pivot2)
}, ecosystem_services_pivot2,
tolerance = 1e-5)
})
4 changes: 2 additions & 2 deletions tests/testthat/test_plots.r
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ test_that(
feed_back,
ggplot2::aes(x = x, y = y, group = group, connector = connector, edge_id = edge_id)) +
geom_sankeynode() +
stat_sankeynode() +
gs +
stat_sankeyedge() +
ggplot2::lims(y = c(0,3))
## Explicitly call stat methods for test coverage
feedback_plot + stat_sankeynode() + stat_sankeyedge()
vdiffr::expect_doppelganger("ggsankeyfier feedback", feedback_plot)
}
)
Expand Down

0 comments on commit c5c834a

Please sign in to comment.