Skip to content

Commit

Permalink
Fixed a failling unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sneumann committed Feb 7, 2025
1 parent 30d1676 commit 4fe6e24
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion inst/unitTests/test_header.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,15 @@ test_header_all <- function() {
header_pwiz <- header(mzxml)
close(mzxml)

checkEquals(colnames(header_cdf), colnames(header_pwiz))
neededCdfHeaders <- c("seqNum", "acquisitionNum", "msLevel", "polarity", "peaksCount",
"totIonCurrent", "retentionTime", "basePeakMZ", "basePeakIntensity",
"collisionEnergy", "ionisationEnergy", "lowMZ", "highMZ", "precursorScanNum",
"precursorMZ", "precursorCharge", "precursorIntensity", "mergedScan",
"mergedResultScanNum", "mergedResultStartScanNum", "mergedResultEndScanNum",
"injectionTime", "filterString", "spectrumId", "centroided",
"ionMobilityDriftTime", "isolationWindowTargetMZ", "isolationWindowLowerOffset",
"isolationWindowUpperOffset", "scanWindowLowerLimit", "scanWindowUpperLimit" )

checkTrue( all(neededCdfHeaders %in% colnames(header_cdf)) )
checkTrue( all(neededCdfHeaders %in% colnames(header_pwiz)) )
}

0 comments on commit 4fe6e24

Please sign in to comment.