Skip to content

Commit

Permalink
Remove raw string from test
Browse files Browse the repository at this point in the history
  • Loading branch information
arcresu committed Jan 9, 2024
1 parent f70be76 commit 2a5b553
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/testthat/test-show-news.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ test_that("can read NEWS.Rd in inst directory", {
pkg <- local_package_create()

dir_create(pkg, "inst")
write(r"[\name{NEWS}
\title{News for Package 'test'}
write("\\name{NEWS}
\\title{News for Package 'test'}
\section{CHANGES IN test VERSION 0.0.1}{
\itemize{
\item First version
\\section{CHANGES IN test VERSION 0.0.1}{
\\itemize{
\\item First version
}
}]", path(pkg, "inst", "NEWS.Rd"))
}", path(pkg, "inst", "NEWS.Rd"))

expect_no_error(show_news(pkg))
})
Expand Down

0 comments on commit 2a5b553

Please sign in to comment.