From: Egon W. <eg...@us...> - 2004-01-07 11:15:54
|
Update of /cvsroot/cdk/cdk/src/org/openscience/cdk/test In directory sc8-pr-cvs1:/tmp/cvs-serv20537/src/org/openscience/cdk/test Modified Files: PseudoAtomTest.java Log Message: Added test for toString() method Index: PseudoAtomTest.java =================================================================== RCS file: /cvsroot/cdk/cdk/src/org/openscience/cdk/test/PseudoAtomTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- PseudoAtomTest.java 7 Jan 2004 08:41:58 -0000 1.2 +++ PseudoAtomTest.java 7 Jan 2004 11:15:51 -0000 1.3 @@ -70,4 +70,15 @@ assertEquals(twoD, a.getPoint2D()); } + /** + * Method to test wether the class complies with RFC #9. + */ + public void testToString() { + Atom atom = new PseudoAtom("R"); + String description = atom.toString(); + for (int i=0; i< description.length(); i++) { + assertTrue(description.charAt(i) != '\n'); + assertTrue(description.charAt(i) != '\r'); + } + } } |