Skip to content

Commit

Permalink
Update test_Spectra.R
Browse files Browse the repository at this point in the history
  • Loading branch information
philouail committed Nov 20, 2023
1 parent d42e069 commit 9500cb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test_Spectra.R
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ test_that("bin,Spectra works", {
mzr <- range(unlist(mz(sps)))
brks <- MsCoreUtils:::.fix_breaks(
seq(floor(mzr[1]), ceiling(mzr[2]), by = 2), mzr)
res1 <- bin(sps, msLevel = 1, breaks = brks)
res1 <- bin(sps, msLevel = 1, breaks = brks, zero.rm = FALSE)
res1_pks <- peaksData(res1)
res_pks <- peaksData(res)
expect_identical(res1_pks[res1$msLevel == 1],
Expand Down

0 comments on commit 9500cb2

Please sign in to comment.