Skip to content

Commit

Permalink
avoid utf-8 things
Browse files Browse the repository at this point in the history
  • Loading branch information
zkamvar committed May 23, 2024
1 parent ff81f40 commit 571d2f0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/testthat/test-class-yarn.R
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,12 @@ test_that("md_vec() will convert a query to a markdown vector", {
expected <- paste(strrep("#", xml2::xml_attr(headings, "level")),
xml2::xml_text(headings)
)
expect_equal(y1$md_vec(".//md:heading"), expected)

expect_equal(y1$md_vec(".//md:heading[@level=3]"), expected[1:4])
expect_length(y1$md_vec(".//md:list//md:link"), 5)

skip_on_os("windows")
expect_equal(y1$md_vec(".//md:heading[@level=4]"), expected[5:7])
expect_equal(y1$md_vec(".//md:heading"), expected)

expect_length(y1$md_vec(".//md:list//md:link"), 5)
})

0 comments on commit 571d2f0

Please sign in to comment.