Skip to content

Commit

Permalink
finalizing tests for dmy
Browse files Browse the repository at this point in the history
  • Loading branch information
arrismo committed Oct 11, 2024
1 parent e73acbb commit e6689c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/testthat/test-dmy.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ data <- lubrilog::games


f <- function(){
cli_alert_danger("NA values created by parsing:")
cli_alert_danger("Example failed parse:")
cli_alert(" Original: {dates_char[failed_index]}")
cli_alert(" Parsed: NA")
lubrilog::dmy(data$release_date)
}

test_that("dmy works", {
Expand All @@ -17,5 +14,8 @@ test_that("dmy works", {
)
expect_equal(length(out), nrow(data))

expect_message(f(), "NA values created by parsing")
expect_message(f(), "Original:")
expect_message(f(), "Parsed:")
})

0 comments on commit e6689c1

Please sign in to comment.