tests/testthat/test-detectInfusionScans.R

context('detectInfusionScans')

test_that('detectInfusionScans works',{
	file <- list.files(system.file('mzML',package = 'binneR'),
										 full.names = TRUE)[1]
	
	scans <- detectInfusionScans(file)
	
	expect_true(class(scans) == 'integer')
	expect_true(identical(scans,as.integer(c(6:18))))
})

Try the binneR package in your browser

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

binneR documentation built on May 1, 2019, 6:34 p.m.