Skip to content

Commit

Permalink
Fix variability of results in the Second2Gray() snapshot tests.
Browse files Browse the repository at this point in the history
This sets the measurement date explicitly, as otherwise it would be set to
the current date and cause failures in these tests (see also 83d17ce).
  • Loading branch information
mcol committed Oct 10, 2024
1 parent 8d6302d commit 22922c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/testthat/test_Second2Gray.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
data(ExampleData.DeValues, envir = environment())

results <- Second2Gray(ExampleData.DeValues$BT998, c(0.2,0.01))
dose.rate <- calc_SourceDoseRate(calib.date = "2014-12-19",
dose.rate <- calc_SourceDoseRate(measurement.date = "2024-10-09",
calib.date = "2014-12-19",
calib.dose.rate = 0.2, calib.error = 0.01)

test_that("input validation", {
Expand Down

0 comments on commit 22922c3

Please sign in to comment.