Skip to content

Commit

Permalink
fix lintr in test file
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosemary Li committed Feb 12, 2024
1 parent df4a7ed commit 4e7c392
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-calculate_study_day.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ test_that("`calculate_study_day()` works as expected for invalid input", {

test_that("`calculate_study_day()` works as expected for valid input", {
res <- calculate_study_day(ae, dm, "RFSTDTC", "AESTDTC", "AESTDY")
expected <- c(-31, 1, NA)
expect_equal(res$AESTDY, expected)
expected <- c(-31L, 1L, NA)
expect_equal(res$AESTDY, expected, tolerance = "1.5e-08")
})

0 comments on commit 4e7c392

Please sign in to comment.