Skip to content

Commit

Permalink
chore: #316 fix warning message and typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Zelos Zhu committed Aug 22, 2023
1 parent bcbf704 commit 9981753
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/testthat/test-warnings.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ test_that("warn_if_vars_exist Test 1: warning if a variable already exists in th
)
})

# warn_if_invalud_dtc ----
# warn_if_invalid_dtc ----
## Test 2: Warning if vector contains unknown datetime format ----
test_that("warn_if_invalud_dtc Test 2: Warning if vector contains unknown datetime format", {
test_that("warn_if_invalid_dtc Test 2: Warning if vector contains unknown datetime format", {
expect_warning(
warn_if_invalid_dtc(dtc = "20210406T12:30:30")
warn_if_invalid_dtc(dtc = "20210406T12:30:30"),
"Dataset contains incorrect datetime format:"
)
})

Expand Down

0 comments on commit 9981753

Please sign in to comment.