tests/testthat/test_length-methods.R

context("length")

test_that("length", {
  expect_identical(length(createMassSpectrum(mass=1:10, intensity=1:10)), 10L)
  expect_identical(length(createMassSpectrum(mass=double(),
                                             intensity=double())), 0L)
})

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.