Skip to content

Commit

Permalink
fix: added locale to test
Browse files Browse the repository at this point in the history
to attempt to debug why CI tests are failing
  • Loading branch information
selkamand committed Nov 28, 2024
1 parent dffeec1 commit ff7eed8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/testthat/test-gg1d.R
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,13 @@ test_that("gg1d heirarchical sort works", {
gg1d(data = mock_data, col_sort = c("Category2", "Logical"), sort_type = "alphabetical", desc = FALSE, order_matches_sort = TRUE, return = "data", verbose = FALSE)
)

# Snapshot with desc = FALSE
expect_snapshot(
gg1d(data = mock_data, col_sort = c("Category2", "Logical"), sort_type = "alphabetical", desc = TRUE, order_matches_sort = TRUE, return = "data", verbose = FALSE)
withr::with_locale(
c(LC_COLLATE = "C"),
# Snapshot with desc = FALSE
expect_snapshot(
gg1d(data = mock_data, col_sort = c("Category2", "Logical"), sort_type = "alphabetical", desc = TRUE, order_matches_sort = TRUE, return = "data", verbose = FALSE)
)
)


})

0 comments on commit ff7eed8

Please sign in to comment.