Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrerebeau committed Nov 10, 2019
1 parent 3029028 commit 7e2f5b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/AllClasses.R
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ setMethod(
FUN = "[[",
FUN.VALUE = character(1),
i = "name"
))
), sep = "_")
names(spc_list) <- spc_ref
.Object@.Data <- spc_list

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-calibrate.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ test_that("Calibrate a GammaSpectrum object with a PeakPosition object", {
)

expect_error(calibrate_energy(spectrum, lines = peaks),
"You must set the corresponding energy")
"You have to provide at least 3 lines for calibration, not 0.")

set_energy(peaks) <- c(238, 1461, 2614.5)
calib <- calibrate_energy(spectrum, lines = peaks)
Expand Down

0 comments on commit 7e2f5b3

Please sign in to comment.