Skip to content

Commit 57f1217

Browse files
committed
the filenames use the separator - instead of _
1 parent 06c32c0 commit 57f1217

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test-rmd.R

+5-5
Original file line numberDiff line numberDiff line change
@@ -29,27 +29,27 @@ if (Sys.getenv('NOT_CRAN') == 'true') local({
2929
# footnotes are parsed and moved correctly
3030
## deleted from last section
3131
if (any(readLines("rmd/subsection-footnotes-2.html") == '<div class="footnotes">')) {
32-
stop('Failed to parse and delete the footnotes in parse_footnotes.Rmd')
32+
stop('Failed to parse and delete the footnotes in parse-footnotes.Rmd')
3333
}
3434
## footnote one is moved to first section
3535
if (!any(readLines('rmd/test-footnote.html') == '<div class="footnotes">') ||
3636
!any(grepl('id="fn1"', readLines('rmd/test-footnote.html')))) {
37-
stop('Failed to move the footnotes back to subsection 1 in parse_footnotes.Rmd')
37+
stop('Failed to move the footnotes back to subsection 1 in parse-footnotes.Rmd')
3838
}
3939
## footnote two is moved to second section
4040
if (!any(readLines('rmd/subsection-footnotes-1.html') == '<div class="footnotes">') ||
4141
!any(grepl('id="fn2"', readLines('rmd/subsection-footnotes-1.html')))) {
42-
stop('Failed to move the footnotes back to subsection 1 in parse_footnotes.Rmd')
42+
stop('Failed to move the footnotes back to subsection 1 in parse-footnotes.Rmd')
4343
}
4444
# multiline footnote is also moved
4545
if (!any(readLines('rmd/subsection-footnotes-1.html') == '<div class="footnotes">') ||
4646
!any(grepl('id="fn3"', readLines('rmd/subsection-footnotes-1.html')))) {
47-
stop('Failed to move the footnotes back to subsection 1 in parse_footnotes.Rmd')
47+
stop('Failed to move the footnotes back to subsection 1 in parse-footnotes.Rmd')
4848
}
4949

5050
# number sections now works in markdown_document2
5151
if (!any(readLines("rmd/number-sections.md") == "1.1 subsection 1") ||
5252
!any(grepl("<a href=.*>2.1</a>", readLines("rmd/number-sections.md")))) {
53-
stop("Something wrong in number_sections.Rmd")
53+
stop("Something wrong in number-sections.Rmd")
5454
}
5555
})

0 commit comments

Comments
 (0)