Skip to content

Commit c3d23eb

Browse files
committed
Relax test for libxml2 2.14
1 parent 9c60f95 commit c3d23eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test-xml_parse.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ test_that("read_html properly passes parser arguments", {
5252

5353
blanks <- read_html(xml2_example("cd_catalog.xml"), options = c("RECOVER", "NOERROR"))
5454
expect_equal(
55-
as_list(blanks)$html$body$catalog$cd[[1]],
56-
"\r\n "
55+
sub("\r\n", "\n", fixed = TRUE, as_list(blanks)$html$body$catalog$cd[[1]]),
56+
"\n "
5757
)
5858

5959
no_blanks <- read_html(xml2_example("cd_catalog.xml"), options = c("RECOVER", "NOERROR", "NOBLANKS"))

0 commit comments

Comments
 (0)