Skip to content

Commit 4fe6e24

Browse files
committed
Fixed a failling unit test
1 parent 30d1676 commit 4fe6e24

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

inst/unitTests/test_header.R

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,15 @@ test_header_all <- function() {
1111
header_pwiz <- header(mzxml)
1212
close(mzxml)
1313

14-
checkEquals(colnames(header_cdf), colnames(header_pwiz))
14+
neededCdfHeaders <- c("seqNum", "acquisitionNum", "msLevel", "polarity", "peaksCount",
15+
"totIonCurrent", "retentionTime", "basePeakMZ", "basePeakIntensity",
16+
"collisionEnergy", "ionisationEnergy", "lowMZ", "highMZ", "precursorScanNum",
17+
"precursorMZ", "precursorCharge", "precursorIntensity", "mergedScan",
18+
"mergedResultScanNum", "mergedResultStartScanNum", "mergedResultEndScanNum",
19+
"injectionTime", "filterString", "spectrumId", "centroided",
20+
"ionMobilityDriftTime", "isolationWindowTargetMZ", "isolationWindowLowerOffset",
21+
"isolationWindowUpperOffset", "scanWindowLowerLimit", "scanWindowUpperLimit" )
22+
23+
checkTrue( all(neededCdfHeaders %in% colnames(header_cdf)) )
24+
checkTrue( all(neededCdfHeaders %in% colnames(header_pwiz)) )
1525
}

0 commit comments

Comments
 (0)