Skip to content

Commit

Permalink
Fix to_alias encoding unit test (#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhoffa authored Jan 23, 2024
1 parent 2c1afb6 commit 599056d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-to_alias.R
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ test_that("get_ownership_type() is equal to its legacy in pacta", {

test_that("to_alias() handles string encoding before calling to_lower(),
(#425, @kalashsinghal and @Tilmon)", {
x <- "o_\xfc_dd"
x <- `Encoding<-`("o\xfcdd", "latin1")

expect_equal(to_alias(x), "odd")
expect_equal(to_alias(x), "oudd")

})

0 comments on commit 599056d

Please sign in to comment.