Skip to content

Commit 3a09e0e

Browse files
committed
Ignore CI folder. Fix tests when locale unknown.
1 parent 277c902 commit 3a09e0e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.Rbuildignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Makefile
22
.travis.yml
3+
.github
34
^.*\.Rproj$
45
^\.Rproj\.user$

tests/testthat/test-translation.R

+2-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ test_that("translation from parsed objects to XPath works", {
108108

109109
# Invalid characters in XPath element names
110110

111-
if (localeToCharset()[1] == "UTF-8") {
111+
charsets <- localeToCharset()
112+
if (!anyNA(charsets) && charsets[1] == "UTF-8") {
112113
expect_that(xpath('di\ua0v'),
113114
equals("*[(name() = 'di v')]")) # div\ua0v
114115
expect_that(xpath('[h\ua0ref]'),

0 commit comments

Comments
 (0)