Skip to content

Commit

Permalink
#54 test arg warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbarbone committed May 1, 2023
1 parent 2fd1815 commit 984901f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testthat/test-class-args.R
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ test_that("action = 'flag' allows TRUE [#55]", {
expect_identical(obj, exp)
})

test_that("pass arg as default [#54]", {
arg <- new_arg("-a")
new <- new_arg("-b", default = arg)
expect_output(expect_warning(print(new), "has not been resolved"))
})

test_that("snapshots", {
arg <- new_arg("...", info = "help text")
expect_output(arg$show())
Expand Down

0 comments on commit 984901f

Please sign in to comment.