Skip to content

Commit

Permalink
Added a test for isotope pattern generation for C10000.
Browse files Browse the repository at this point in the history
The test is failing at the moment due to NullPointerException
  • Loading branch information
tomas-pluskal committed Jan 26, 2016
1 parent fcac95e commit fed836f
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,4 +255,17 @@ public void testCalculateIsotopesMn() {
Assert.assertEquals(1, isoPattern.getNumberOfIsotopes());

}

/**
* Calculate isotopes for C10000.
*/
@Test
public void testCalculateIsotopesC10000() {
IMolecularFormula molFor = MolecularFormulaManipulator.getMajorIsotopeMolecularFormula("C10000", builder);
IsotopePatternGenerator isotopeGe = new IsotopePatternGenerator(.1);
IsotopePattern isos = isotopeGe.getIsotopes(molFor);
Assert.assertEquals(98, isos.getNumberOfIsotopes());
for (int i = 0; i < isos.getNumberOfIsotopes(); i++)
Assert.assertTrue(isos.getIsotope(i).getMass() > 120085);
}
}

0 comments on commit fed836f

Please sign in to comment.