File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
tool/formula/src/test/java/org/openscience/cdk/tools/manipulator Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,9 @@ public void testPutInOrder_arrayString_IMolecularFormula() {
209209 public void testGetString__String_IMolecularFormula () {
210210 Assert .assertNotNull (MolecularFormulaManipulator .getMolecularFormula ("C10H16" , new MolecularFormula ()));
211211 Assert .assertNotNull (MolecularFormulaManipulator .getMolecularFormula ("C10H16" , builder ));
212+ IMolecularFormula formula = MolecularFormulaManipulator .getMolecularFormula ("O3(Fe(O2))3" , builder );
213+ Assert .assertEquals ( formula .getIsotopeCount ( new Atom ("Fe" ) ), 3 );
214+ Assert .assertEquals ( formula .getIsotopeCount ( new Atom ("O" ) ), 9 );
212215 }
213216
214217 /** Test if formula-order is independent of isotope-insertion order */
You can’t perform that action at this time.
0 commit comments