Skip to content

Commit 7610479

Browse files
author
Jordan S Read
committed
whoops, forgot to commit
1 parent bfd65ae commit 7610479

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/testthat/test-frame.plot.R

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
context("frame.plot")
2+
3+
test_that("frame.plot default", {
4+
gs <- gsplot()
5+
expect_true(!is.null(gs$global$config$frame.plot))
6+
7+
})
8+
test_that("frame.plot arguments work as expected", {
9+
gs <- gsplot() %>% points(1,2)
10+
11+
expect_true(gs$global$config$frame.plot)
12+
13+
gs <- lines(gs, 1,2, frame.plot=FALSE)
14+
expect_false(gs$global$config$frame.plot)
15+
gs <- lines(gs, 1,2, frame.plot=TRUE)
16+
expect_true(gs$global$config$frame.plot)
17+
})
18+

0 commit comments

Comments
 (0)