Skip to content

Commit

Permalink
More missing elements for SMILES parsing problems reported in bug #30…
Browse files Browse the repository at this point in the history
…48501

Signed-off-by: Rajarshi  Guha <rajarshi.guha@gmail.com>
  • Loading branch information
egonw authored and rajarshi committed Aug 29, 2010
1 parent bf8defd commit 31f7462
Showing 1 changed file with 81 additions and 0 deletions.
81 changes: 81 additions & 0 deletions src/test/org/openscience/cdk/smiles/SmilesParserTest.java
Expand Up @@ -1904,6 +1904,87 @@ public void testAcParsing() throws InvalidSmilesException{
IMolecule mol = p.parseSmiles("[255Ac]");
Assert.assertEquals("Ac", mol.getAtom(0).getSymbol());
}

/**
* @cdk.bug 3048501
*/
@Test
public void testPuParsing() throws InvalidSmilesException{
SmilesParser p = new SmilesParser(DefaultChemObjectBuilder.getInstance());
IMolecule mol = p.parseSmiles("[Pu]");
Assert.assertEquals("Pu", mol.getAtom(0).getSymbol());
}

/**
* @cdk.bug 3048501
*/
@Test
public void testPrParsing() throws InvalidSmilesException{
SmilesParser p = new SmilesParser(DefaultChemObjectBuilder.getInstance());
IMolecule mol = p.parseSmiles("[Pr]");
Assert.assertEquals("Pr", mol.getAtom(0).getSymbol());
}

/**
* @cdk.bug 3048501
*/
@Test
public void testPaParsing() throws InvalidSmilesException{
SmilesParser p = new SmilesParser(DefaultChemObjectBuilder.getInstance());
IMolecule mol = p.parseSmiles("[Pa]");
Assert.assertEquals("Pa", mol.getAtom(0).getSymbol());
}

/**
* @cdk.bug 3048501
*/
@Test
public void testTbParsing() throws InvalidSmilesException{
SmilesParser p = new SmilesParser(DefaultChemObjectBuilder.getInstance());
IMolecule mol = p.parseSmiles("[Tb]");
Assert.assertEquals("Tb", mol.getAtom(0).getSymbol());
}

/**
* @cdk.bug 3048501
*/
@Test
public void testAmParsing() throws InvalidSmilesException{
SmilesParser p = new SmilesParser(DefaultChemObjectBuilder.getInstance());
IMolecule mol = p.parseSmiles("[Am]");
Assert.assertEquals("Am", mol.getAtom(0).getSymbol());
}

/**
* @cdk.bug 3048501
*/
@Test
public void testPmParsing() throws InvalidSmilesException{
SmilesParser p = new SmilesParser(DefaultChemObjectBuilder.getInstance());
IMolecule mol = p.parseSmiles("[Pm]");
Assert.assertEquals("Pm", mol.getAtom(0).getSymbol());
}

/**
* @cdk.bug 3048501
*/
@Test
public void testHoParsing() throws InvalidSmilesException{
SmilesParser p = new SmilesParser(DefaultChemObjectBuilder.getInstance());
IMolecule mol = p.parseSmiles("[Ho]");
Assert.assertEquals("Ho", mol.getAtom(0).getSymbol());
}

/**
* @cdk.bug 3048501
*/
@Test
public void testCfParsing() throws InvalidSmilesException{
SmilesParser p = new SmilesParser(DefaultChemObjectBuilder.getInstance());
IMolecule mol = p.parseSmiles("[Cf]");
Assert.assertEquals("Cf", mol.getAtom(0).getSymbol());
}

/**
* @cdk.bug 2976054
* @throws InvalidSmilesException
Expand Down

0 comments on commit 31f7462

Please sign in to comment.