Skip to content

Commit

Permalink
Merge pull request #603 from MichaelChirico/patch-2
Browse files Browse the repository at this point in the history
Explicitly set locale for some test files
  • Loading branch information
SebKrantz committed Jun 20, 2024
2 parents 2914868 + 6888711 commit b9c2d45
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ Imports: Rcpp (>= 1.0.1)
LinkingTo: Rcpp
Suggests: fastverse, data.table, magrittr, kit, xts, zoo, plm, fixest, vars,
RcppArmadillo, RcppEigen, tibble, dplyr, ggplot2, scales, microbenchmark,
testthat, covr, knitr, rmarkdown
testthat, covr, knitr, rmarkdown, withr
VignetteBuilder: knitr

1 change: 1 addition & 0 deletions tests/testthat/test-GRP.R
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ expect_identical(lapply(rc, function(x) unattrib(radixorderv(gv(wldNA, x), decre


test_that("GRP works as intended", {
withr::local_locale(c(LC_COLLATE = "C"))

expect_visible(GRP(unname(as.list(mtcars))))
expect_visible(GRP(unname(as.list(mtcars)), 8:9))
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-qtab.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
context("qtab")


withr::local_locale(c(LC_COLLATE = "C"))

set.seed(101)
wldNA <- na_insert(wlddev)
Expand Down

0 comments on commit b9c2d45

Please sign in to comment.