Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Commit

Permalink
add test for logic greater than length 1
Browse files Browse the repository at this point in the history
  • Loading branch information
bransonf committed Feb 7, 2019
1 parent 148f23b commit 0a283a4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/testthat/test_date_filter.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,10 @@ test_that("Non-standard Evaluation works", {
expect_silent(csb_date_filter(january_2018, "datetimeinit", month = 1))
expect_silent(csb_date_filter(january_2018, datetimeinit, month = 1))
})


# test that logical arguments greater than length one pass --------

test_that("Logical arguments of length > 1 Pass", {
expect_silent(csb_date_filter(january_2018, datetimeinit, day = 1:15, month = 1:6, year = 09:14))
})

0 comments on commit 0a283a4

Please sign in to comment.