Skip to content

Commit

Permalink
MolecularFormulaManipulatorTest: Updated testGenerateOrderEle to matc…
Browse files Browse the repository at this point in the history
…h updated method

Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
  • Loading branch information
Jules Kerssemakers authored and egonw committed Aug 10, 2011
1 parent fce1c7a commit 9028b3c
Showing 1 changed file with 14 additions and 6 deletions.
Expand Up @@ -954,24 +954,32 @@ public void testCompare_IMolecularFormula_IMolecularFormula(){
}

/**
* A unit test suite for JUnit. Not null.
*
* @return The test suite
* Test if the elements-ordered-by-probability are in the expected order.
*/
@Test
public void testGenerateOrderEle() {
String[] listElements = new String[]{
// Elements of life
"C", "H", "O", "N", "Si", "P", "S", "F", "Cl",

"Br", "I", "Sn", "B", "Pb", "Tl", "Ba", "In", "Pd",
"Pt", "Os", "Ag", "Zr", "Se", "Zn", "Cu", "Ni", "Co",
"Fe", "Cr", "Ti", "Ca", "K", "Al", "Mg", "Na", "Ce",
"Hg", "Au", "Ir", "Re", "W", "Ta", "Hf", "Lu", "Yb",
"Tm", "Er", "Ho", "Dy", "Tb", "Gd", "Eu", "Sm", "Pm",
"Nd", "Pr", "La", "Cs", "Xe", "Te", "Sb", "Cd", "Rh",
"Ru", "Tc", "Mo", "Nb", "Y", "Sr", "Rb", "Kr", "As",
"Ge", "Ga", "Mn", "V", "Sc", "Ar", "Ne", "Be", "Li",
"Tl", "Pb", "Bi", "Po", "At", "Rn", "Fr", "Ra", "Ac",
"Th", "Pa", "U", "Np", "Pu","R"};
"Ge", "Ga", "Mn", "V", "Sc", "Ar", "Ne", "He", "Be", "Li",

// rest of periodic table, in atom-number order.
"Bi", "Po", "At", "Rn",
// row-7 elements (including f-block)
"Fr", "Ra", "Ac", "Th", "Pa", "U", "Np", "Pu", "Am", "Cm", "Bk", "Cf", "Es", "Fm", "Md", "No", "Lr",
"Rf", "Db", "Sg", "Bh", "Hs", "Mt", "Ds", "Rg", "Cn",

// The "odd one out": an unspecified R-group
"R"
};

String[] arrayGenerated = MolecularFormulaManipulator.generateOrderEle();
List<String> listGenerated = Arrays.asList(arrayGenerated);
Expand Down

0 comments on commit 9028b3c

Please sign in to comment.