Skip to content

Commit

Permalink
add a test for pdf_null
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed May 26, 2015
1 parent 2dd2dc6 commit fda7825
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testit/test-plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,9 @@ if (!has_error({png(); dev.off()})) assert(
TRUE
}
)

# should not error (find `pdf` correctly in grDevices, instead of the one
# defined below)
pdf = function() {}
do.call(pdf_null, list(7, 7))
dev.off()

0 comments on commit fda7825

Please sign in to comment.