Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Feb 6, 2020
1 parent 6add123 commit cc01c38
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/testthat/test-expand.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ test_that("simple expand example works", {
}))
})

test_that("missing arguments are supported", {
fun <- function() {
iris[1, ]
}

expect_identical(expand_function(fun), fun)
})

test_that("expanding a macro retains attributes", {
add <- defmacro(function() {
1
Expand Down

0 comments on commit cc01c38

Please sign in to comment.