From: <eg...@us...> - 2008-11-06 15:57:19
|
Revision: 13023 http://cdk.svn.sourceforge.net/cdk/?rev=13023&view=rev Author: egonw Date: 2008-11-06 15:57:18 +0000 (Thu, 06 Nov 2008) Log Message: ----------- 1. Fixed test to detect a TAB; 2. test neg values Modified Paths: -------------- cdk/branches/cdk-1.2.x/src/test/org/openscience/cdk/io/XYZWriterTest.java Modified: cdk/branches/cdk-1.2.x/src/test/org/openscience/cdk/io/XYZWriterTest.java =================================================================== --- cdk/branches/cdk-1.2.x/src/test/org/openscience/cdk/io/XYZWriterTest.java 2008-11-06 15:40:40 UTC (rev 13022) +++ cdk/branches/cdk-1.2.x/src/test/org/openscience/cdk/io/XYZWriterTest.java 2008-11-06 15:57:18 UTC (rev 13023) @@ -98,7 +98,7 @@ writer.close(); String output = writer.toString(); - Assert.assertTrue(output.contains("0.000000 0.000000 0.000000")); + Assert.assertTrue(output.contains("0.000000\t 0.000000\t 0.000000")); } /** @@ -110,6 +110,9 @@ IAtom atom1 = new Atom("C"); atom1.setPoint3d(new Point3d(1.0, 2.0, 3.0)); molecule.addAtom(atom1); + IAtom atom2 = new Atom("C"); + atom2.setPoint3d(new Point3d(-1.5, -2.0, 0.0)); + molecule.addAtom(atom2); XYZWriter xyzWriter = new XYZWriter(writer); xyzWriter.write(molecule); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |