Skip to content

Commit d7e1ab0

Browse files
author
Lindsay Carr
committed
update function_args tests
1 parent 4655cdb commit d7e1ab0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/testthat/test-arguments.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
context("lining up default arguments")
22
test_that("setting params with other default works as expected",{
3-
expect_equal(gsplot:::function_args("grDevices","points", 1:5, y = NULL, 'label', use.default='xy.coords'),
4-
list(x=1:5, y=NULL,xlab='label'))
3+
expect_equal(gsplot:::function_args("grDevices","points", 5:10, y = NULL, 'label', use.default='xy.coords'),
4+
list(x=1:6, y=5:10,xlab='label'))
55
})
66

77
test_that("setting params with class match works as expected",{

tests/testthat/tests-points.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test_that("graphics examples work", {
1515

1616
context("points arguments")
1717
test_that("setting params works as expected",{
18-
expect_equal(gsplot:::function_args("graphics","points", 5, y = NULL), list(x=5, y=NULL))
18+
expect_equal(gsplot:::function_args("graphics","points", 5, y = NULL), list(x=1, y=5))
1919
expect_equal(gsplot:::function_args("graphics","points", y=5, x=0), list(x=0, y=5))
2020
})
2121

0 commit comments

Comments
 (0)