Skip to content

Commit

Permalink
added test for mdy
Browse files Browse the repository at this point in the history
  • Loading branch information
arrismo committed Oct 11, 2024
1 parent 025568f commit d8e0ad3
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions tests/testthat/test-mdy.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
test_that("multiplication works", {
expect_equal(2 * 2, 4)
library(lubrilog)
library(cli)

data <- lubrilog::games


f <- function(){
lubrilog::mdy(data$release_date)
}

test_that("mdy works", {
expect_message(
out <- lubrilog::mdy(data$release_date)
)
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 d8e0ad3

Please sign in to comment.