Skip to content

Commit

Permalink
#25 add test
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbarbone committed May 15, 2023
1 parent 67d8336 commit f1219d7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/testthat/test-list.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,13 @@ test_that("list0", {
expect_error(list0(1, `__not_a_variable__`))
expect_error(list0(1, `__not_a_variable__`, ))
})

test_that("handles names [#25]", {
obj <- list0(a = 1, 2, c = 3)
exp <- list(a = 1, 2, c = 3)
expect_identical(obj, exp)

obj <- list0(a = 1, 2, c = 3, )
exp <- list(a = 1, 2, c = 3)
expect_identical(obj, exp)
})

0 comments on commit f1219d7

Please sign in to comment.