Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.

Commit

Permalink
make[Fig|Dat]Name test
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentGatto committed Jan 8, 2017
1 parent fbf25a4 commit c6c5c95
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/testthat/test_files.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ test_that("pdf and png", {
unlink(paste0(f, ".pdf"))
unlink(paste0(f, ".png"))
})

test_that("make[Dat|Fig]Name", {
expect_identical(makeFigName("foo", date = FALSE), "./Fig-foo.pdf")
expect_identical(makeDatName("foo", date = FALSE), "./Dat-foo.rda")
})

0 comments on commit c6c5c95

Please sign in to comment.