Skip to content

Commit 552633c

Browse files
committed
Test robustification
1 parent 8ebc63b commit 552633c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

inst/tinytest/test_rcpp_package_skeleton.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ checkTrue( "foo" %in% list.files(path), "pkg path generated as named" )
4545

4646
## check the DESCRIPTION
4747
DESCRIPTION <- as.list( read.dcf( file.path(pkg_path, "DESCRIPTION") )[1,] )
48-
checkTrue( DESCRIPTION["Authors@R"] == 'person("Boo-Boo", "Bear", role = c("aut", "cre"), email = "[email protected]")', "wrote the Authors@R field in DESCRIPTION" )
48+
checkEqual(gsub("\\n", " ", DESCRIPTION["Authors@R"]), # need to neutralise a line break
49+
'person("Boo-Boo", "Bear", role = c("aut", "cre"), email = \"[email protected]")',
50+
"wrote the Authors@R field in DESCRIPTION" )
4951
checkTrue( DESCRIPTION["Date"] == format(Sys.Date()), "uses current date in DESCRIPTION")
5052
checkTrue( DESCRIPTION["License"] == "An Opensource License",
5153
"wrote the License field in DESCRIPTION" )

0 commit comments

Comments
 (0)