diff --git a/tests/test-rmd.R b/tests/test-rmd.R index 76dfb3532..ac55df0dc 100644 --- a/tests/test-rmd.R +++ b/tests/test-rmd.R @@ -29,27 +29,27 @@ if (Sys.getenv('NOT_CRAN') == 'true') local({ # footnotes are parsed and moved correctly ## deleted from last section if (any(readLines("rmd/subsection-footnotes-2.html") == '
')) { - stop('Failed to parse and delete the footnotes in parse_footnotes.Rmd') + stop('Failed to parse and delete the footnotes in parse-footnotes.Rmd') } ## footnote one is moved to first section if (!any(readLines('rmd/test-footnote.html') == '
') || !any(grepl('id="fn1"', readLines('rmd/test-footnote.html')))) { - stop('Failed to move the footnotes back to subsection 1 in parse_footnotes.Rmd') + stop('Failed to move the footnotes back to subsection 1 in parse-footnotes.Rmd') } ## footnote two is moved to second section if (!any(readLines('rmd/subsection-footnotes-1.html') == '
') || !any(grepl('id="fn2"', readLines('rmd/subsection-footnotes-1.html')))) { - stop('Failed to move the footnotes back to subsection 1 in parse_footnotes.Rmd') + stop('Failed to move the footnotes back to subsection 1 in parse-footnotes.Rmd') } # multiline footnote is also moved if (!any(readLines('rmd/subsection-footnotes-1.html') == '
') || !any(grepl('id="fn3"', readLines('rmd/subsection-footnotes-1.html')))) { - stop('Failed to move the footnotes back to subsection 1 in parse_footnotes.Rmd') + stop('Failed to move the footnotes back to subsection 1 in parse-footnotes.Rmd') } # number sections now works in markdown_document2 if (!any(readLines("rmd/number-sections.md") == "1.1 subsection 1") || !any(grepl("2", readLines("rmd/number-sections.md")))) { - stop("Something wrong in number_sections.Rmd") + stop("Something wrong in number-sections.Rmd") } })