Skip to content

Commit

Permalink
Remove duplicate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
billdenney committed Dec 7, 2023
1 parent 7799926 commit 25ee9c2
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/testthat/test-excel_time_to_numeric.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,6 @@ test_that("excel_time_to_numeric, am/pm times work case insensitively and with s
)
})

test_that("excel_time_to_numeric, 24-hour times work (zero-padded hours or not)", {
expect_equal(excel_time_to_numeric("8:00"), 8 * 3600)
expect_equal(excel_time_to_numeric("08:00"), 8 * 3600)
expect_equal(excel_time_to_numeric("08:10"), 8 * 3600 + 10 * 60)
expect_equal(excel_time_to_numeric("8:10:05"), 8 * 3600 + 10 * 60 + 5)
expect_equal(excel_time_to_numeric("21:05"), 21 * 3600 + 5 * 60)
expect_equal(excel_time_to_numeric("21:05:20"), 21 * 3600 + 5 * 60 + 20)
})

test_that("excel_time_to_numeric, 24-hour times work (zero-padded hours or not)", {
expect_equal(excel_time_to_numeric("8:00"), 8 * 3600)
expect_equal(excel_time_to_numeric("08:00"), 8 * 3600)
Expand Down

0 comments on commit 25ee9c2

Please sign in to comment.