Skip to content

Commit

Permalink
Complete tests for RLum.Data.Spectrum
Browse files Browse the repository at this point in the history
  • Loading branch information
RLumSK committed Dec 17, 2024
1 parent e8ac498 commit 05f10c9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/testthat/test_merge_RLum.Data.Spectrum.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,24 @@ test_that("snapshot tests", {
expect_snapshot_RLum(merge_RLum.Data.Spectrum(list(TL.Spectrum, TL.Spectrum),
merge.method = "-"))

expect_s4_class(merge_RLum.Data.Spectrum(list(TL.Spectrum, TL.Spectrum, TL.Spectrum),
merge.method = "/"), "RLum.Data.Spectrum")

expect_snapshot_RLum(merge_RLum.Data.Spectrum(list(TL.Spectrum, TL.Spectrum),
merge.method = "append"))

expect_snapshot_RLum(merge_RLum.Data.Spectrum(list(TL.Spectrum, TL.Spectrum),
merge.method = "*"))

expect_s4_class(merge_RLum.Data.Spectrum(list(TL.Spectrum, TL.Spectrum, TL.Spectrum),
merge.method = "*"), "RLum.Data.Spectrum")

expect_snapshot_RLum(merge_RLum.Data.Spectrum(list(TL.Spectrum, TL.Spectrum),
merge.method = "/"))

expect_s4_class(merge_RLum.Data.Spectrum(list(TL.Spectrum, TL.Spectrum, TL.Spectrum),
merge.method = "/"), "RLum.Data.Spectrum")

expect_warning(
expect_snapshot_RLum(merge_RLum.Data.Spectrum(list(TL.Spectrum,
TL.Spectrum_zeros),
Expand Down

0 comments on commit 05f10c9

Please sign in to comment.