inst/validationTests/runit.MSn.test.slashes.R

test.slashes <- function(){
	Type <- as.numeric(substring(mb@compiled_ok[[testNumber]][['AC$MASS_SPECTROMETRY']][['MS_TYPE']],first = 3))
	slashes <- length(gregexpr('/', mb@compiled_ok[[testNumber]][['MS$FOCUSED_ION']][['PRECURSOR_M/Z']]))
	RUnit::checkEquals(Type - 2,slashes)
}
sneumann/RMassBank documentation built on Oct. 20, 2020, 3:19 p.m.