Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions tests/testthat/test-utf8.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
context("UTF-6 with 4.2")

# for more, see: https://github.com/r-lib/styler/issues/847
# this behavior is likely to change with R 4.2
test_that("styling unicode characters on Windows", {
skip_if_not(.Platform$OS.type[[1]] == "windows")
skip_if(getRversion() < '4.2')
skip_on_cran()
expect_identical(
styler::style_text('suit <- "♠"'),
structure("suit <- \"♠\"", class = "vertical")
)
})