Skip to content

Commit

Permalink
Merge branch 'setup-fastf1-vignette' of https://github.com/pbulsink/f…
Browse files Browse the repository at this point in the history
…1dataR into setup-fastf1-vignette
  • Loading branch information
pbulsink committed Jul 15, 2023
2 parents 0cd276d + 09a86e5 commit 2c0a72b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/testthat/test-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ test_that("utility functions work", {
expect_equal(time_to_sec("12.3456"), 12.3456)
expect_equal(time_to_sec(12.345), 12.345)

expect_equal(time_to_sec(c("12.345", "1:23.456", "12:34:56.789", "12.3456")),
c(12.345, 83.456, 45296.789, 12.3456))

expect_equal(
time_to_sec(c("12.345", "1:23.456", "12:34:56.789", "12.3456")),
c(12.345, 83.456, 45296.789, 12.3456)
)
})

test_that("setup-fastf1 works", {
Expand Down

0 comments on commit 2c0a72b

Please sign in to comment.