Skip to content

Commit d3a8d9c

Browse files
authored
Merge pull request #2 from kenmawer/km-test-assign_arg_list
Km test assign arg list
2 parents 71425ee + f5ab890 commit d3a8d9c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/testthat/test-assign_arg_list.R

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
test_that("First argument must be a list",{
2+
expect_error(assign_arg_list(c(1,2,3)))
3+
})
4+
test_that("All arguments should be named",{
5+
expect_error(assign_arg_list(list(1,2)))
6+
})

0 commit comments

Comments
 (0)