From 57f1217c20835d538d103244ea46ec65acc374c3 Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Sat, 12 Sep 2020 23:52:16 -0500 Subject: [PATCH] the filenames use the separator - instead of _ --- tests/test-rmd.R | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test-rmd.R b/tests/test-rmd.R index 0c42a9b3a..8bb6cea8c 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.1", readLines("rmd/number-sections.md")))) { - stop("Something wrong in number_sections.Rmd") + stop("Something wrong in number-sections.Rmd") } })