diff --git a/tests/testthat/_snaps/analyse_SAR.TL.md b/tests/testthat/_snaps/analyse_SAR.TL.md index 18ae3604d..253a1d65c 100644 --- a/tests/testthat/_snaps/analyse_SAR.TL.md +++ b/tests/testthat/_snaps/analyse_SAR.TL.md @@ -36,12 +36,12 @@ { "type": "double", "attributes": {}, - "value": [415.65648039] + "value": [405.57635798] }, { "type": "double", "attributes": {}, - "value": [182.01761352] + "value": [198.54370797] }, { "type": "character", diff --git a/tests/testthat/test_analyse_SAR.TL.R b/tests/testthat/test_analyse_SAR.TL.R index 4770a9dde..f28630e3d 100644 --- a/tests/testthat/test_analyse_SAR.TL.R +++ b/tests/testthat/test_analyse_SAR.TL.R @@ -1,9 +1,6 @@ ## load data data(ExampleData.BINfileData, envir = environment()) -## set seed as we are using expect_snapshot -set.seed(1) - ## transform the values from the first position in a RLum.Analysis object object <- Risoe.BINfileData2RLum.Analysis(TL.SAR.Data, pos = 3) @@ -30,6 +27,7 @@ test_that("Test examples", { ##perform analysis SW({ + set.seed(1) # set seed as we are snapshotting expect_snapshot_RLum( analyse_SAR.TL( object, @@ -40,6 +38,7 @@ test_that("Test examples", { ) ) + set.seed(1) # set seed as we are snapshotting expect_snapshot_RLum( analyse_SAR.TL( list(object, object), @@ -50,6 +49,7 @@ test_that("Test examples", { sequence.structure = c("SIGNAL", "BACKGROUND")) ) + set.seed(1) # set seed as we are snapshotting expect_warning( expect_snapshot_RLum( analyse_SAR.TL( @@ -63,6 +63,7 @@ test_that("Test examples", { "log-scale needs positive values; log-scale disabled" ) + set.seed(1) # set seed as we are snapshotting expect_warning( expect_snapshot_RLum( analyse_SAR.TL(object, signal.integral.min = 2, signal.integral.max = 3,