Skip to content

Commit 67a413e

Browse files
Merge 8b76c8c into 2002162
2 parents 2002162 + 8b76c8c commit 67a413e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/testthat/test-utf8.R

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
context("UTF-6 with 4.2")
2+
3+
# for more, see: https://github.com/r-lib/styler/issues/847
4+
# this behavior is likely to change with R 4.2
5+
test_that("styling unicode characters on Windows", {
6+
skip_if_not(.Platform$OS.type[[1]] == "windows")
7+
skip_if(getRversion() < '4.2')
8+
skip_on_cran()
9+
expect_identical(
10+
styler::style_text('suit <- "♠"'),
11+
structure("suit <- \"\"", class = "vertical")
12+
)
13+
})

0 commit comments

Comments
 (0)