Skip to content

Commit 5bb16fb

Browse files
author
Jordan S Read
committed
callouts test
1 parent 77e0563 commit 5bb16fb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/testthat/tests-callouts.R

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
context("test callouts")
2+
test_that("lines to callouts", {
3+
4+
expect_warning(callouts(gsplot(), c(0,3), NULL, labels=c('dogs','cats')))
5+
expect_warning(callouts(gsplot(), c(0,3), y=NULL, labels=c('dogs','cats')))
6+
7+
#expect_error(callouts(gsplot(), x=c(0,3), y=1:2, angle=-30))
8+
#expect_error(callouts(gsplot(), x=c(0,3), y=1:2, angle='random'))
9+
10+
callouts(gsplot(), c(0,3), y=1:2, labels=c('dogs','cats'), angle=30)
11+
callouts(gsplot(), c(0,3), y=1:2, labels=c('dogs','cats'), angle='auto')
12+
13+
})

0 commit comments

Comments
 (0)