tests/testthat/test_localMaxima-functions.R

context(".localMaxima")

y <- c(1, 1, 2, 1, 1, 3, 4)
set.seed(1)
b <- rnorm(5e4)

test_that(".localMaxima", {
  expect_identical(MALDIquant:::.localMaxima(y, 1),
                   c(T, F, T, F, F, F, T))
})

Try the MALDIquant package in your browser

Any scripts or data that you put into this service are public.

MALDIquant documentation built on March 31, 2023, 10:40 p.m.