Skip to content

Commit 7bda259

Browse files
committed
Test needs the correct NA type
1 parent 2f7e2ad commit 7bda259

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/testthat/test-utils.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ test_that("utility functions work", {
3535
expect_equal(time_to_sec("12:34:56.789"), 45296.789)
3636
expect_equal(time_to_sec("12.3456"), 12.3456)
3737
expect_equal(time_to_sec(12.345), 12.345)
38-
expect_equal(time_to_sec(""), NA)
38+
expect_equal(time_to_sec(""), NA_real_)
39+
expect_equal(time_to_sec(NA), NA_real_)
3940

4041
expect_equal(
4142
time_to_sec(c("12.345", "1:23.456", "12:34:56.789", "12.3456")),

0 commit comments

Comments
 (0)