Skip to content

Commit

Permalink
Update test_peaks-functions.R
Browse files Browse the repository at this point in the history
  • Loading branch information
philouail committed Nov 20, 2023
1 parent 52d4fcc commit 6781908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test_peaks-functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ test_that(".peaks_bin works", {
int <- c(0, 1, 2, 3, 1, 0, 0, 0, 0, 1, 3, 10, 6, 2, 1, 0, 1, 2, 0,
0, 1, 5, 10, 5, 1)
x <- cbind(mz = 1:length(int), intensity = int)
# x <- [, x[,"intensity"] != 0] ## this does not fix the test, bit confused by that.
# x_nozero <- [x[,"intensity"] != 0, ] ## this does not fix the test, bit confused by that.

brks <- seq(min(x), max(x), by = 1L)
brks <- MsCoreUtils:::.fix_breaks(brks, range(x))
Expand Down

0 comments on commit 6781908

Please sign in to comment.