Skip to content

Commit

Permalink
Remove structure diagram generation from unit test. The test assets t…
Browse files Browse the repository at this point in the history
…he chiral smiles are correctly created and are not different. It should depend on diagram generation.

Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
  • Loading branch information
johnmay authored and egonw committed Jul 31, 2013
1 parent 6234b9d commit 8bbfa75
Show file tree
Hide file tree
Showing 3 changed files with 140 additions and 8 deletions.
69 changes: 69 additions & 0 deletions src/test/data/mdl/9553-with-exp-hyd.mol
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@

CDK 0604131551
NMRShiftDB 30101791 www.nmrshiftdb.org_mainz2_2006-06-29_02:04:42_0074
31 33 0 0 0 0 0 0 0 0999 V2000
0.0000 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.0000 1.5000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-1.2990 2.2500 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-2.5981 1.5000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-2.5981 -0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-1.2990 -0.7500 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1.2990 2.2500 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1.2990 3.7500 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.0000 4.5000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-1.2990 3.7500 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-2.5981 3.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-2.2632 -1.8991 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0
1.2990 0.7500 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0
0.7500 -1.2990 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
-3.1111 2.9095 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
-4.0753 1.2395 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
-4.0753 0.2605 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
-3.1111 -1.4095 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
-0.3349 -1.8991 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
1.8121 0.8405 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
2.7762 2.5105 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
2.7762 3.4895 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
1.8121 5.1595 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
0.9642 5.6491 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
-0.9642 5.6491 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
-1.8121 5.1595 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
-2.7762 3.4895 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
-3.8971 2.2500 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
-1.6339 4.1491 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
-3.5623 4.1491 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
-1.7502 -3.3086 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
1 2 1 0 0 0 0
1 6 1 0 0 0 0
1 13 1 6 0 0 0
2 3 1 0 0 0 0
2 7 1 0 0 0 0
2 13 1 6 0 0 0
3 4 1 0 0 0 0
3 10 1 0 0 0 0
3 11 1 1 0 0 0
4 5 1 0 0 0 0
5 6 1 0 0 0 0
6 12 1 6 0 0 0
7 8 1 0 0 0 0
8 9 1 0 0 0 0
9 10 1 0 0 0 0
1 14 1 0 0 0 0
4 15 1 0 0 0 0
4 16 1 0 0 0 0
5 17 1 0 0 0 0
5 18 1 0 0 0 0
6 19 1 0 0 0 0
7 20 1 0 0 0 0
7 21 1 0 0 0 0
8 22 1 0 0 0 0
8 23 1 0 0 0 0
9 24 1 0 0 0 0
9 25 1 0 0 0 0
10 26 1 0 0 0 0
10 27 1 0 0 0 0
11 28 1 0 0 0 0
11 29 1 0 0 0 0
11 30 1 0 0 0 0
12 31 1 0 0 0 0
M END
69 changes: 69 additions & 0 deletions src/test/data/mdl/9554-with-exp-hyd.mol
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@

CDK 0604131551
NMRShiftDB 20129331 www.nmrshiftdb.org_mainz2_2007-04-24_01:44:37_0265
31 33 0 0 0 0 0 0 0 0999 V2000
0.0000 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.0000 1.5000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-1.2990 2.2500 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-2.5981 1.5000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-2.5981 -0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-1.2990 -0.7500 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1.2990 2.2500 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1.2990 3.7500 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.0000 4.5000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-1.2990 3.7500 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-2.5981 3.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-2.2632 -1.8991 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0
1.2990 0.7500 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0
0.7500 -1.2990 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
-3.1111 2.9095 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
-4.0753 1.2395 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
-4.0753 0.2605 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
-3.1111 -1.4095 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
-0.3349 -1.8991 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
1.8121 0.8405 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
2.7762 2.5105 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
2.7762 3.4895 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
1.8121 5.1595 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
0.9642 5.6491 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
-0.9642 5.6491 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
-1.8121 5.1595 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
-2.7762 3.4895 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
-3.8971 2.2500 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
-1.6339 4.1491 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
-3.5623 4.1491 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
-1.7502 -3.3086 0.0000 H 0 0 0 0 0 0 0 0 0 0 0 0
1 2 1 0 0 0 0
1 6 1 0 0 0 0
1 13 1 1 0 0 0
2 3 1 0 0 0 0
2 7 1 0 0 0 0
2 13 1 1 0 0 0
3 4 1 0 0 0 0
3 10 1 0 0 0 0
3 11 1 1 0 0 0
4 5 1 0 0 0 0
5 6 1 0 0 0 0
6 12 1 6 0 0 0
7 8 1 0 0 0 0
8 9 1 0 0 0 0
9 10 1 0 0 0 0
1 14 1 0 0 0 0
4 15 1 0 0 0 0
4 16 1 0 0 0 0
5 17 1 0 0 0 0
5 18 1 0 0 0 0
6 19 1 0 0 0 0
7 20 1 0 0 0 0
7 21 1 0 0 0 0
8 22 1 0 0 0 0
8 23 1 0 0 0 0
9 24 1 0 0 0 0
9 25 1 0 0 0 0
10 26 1 0 0 0 0
10 27 1 0 0 0 0
11 28 1 0 0 0 0
11 29 1 0 0 0 0
11 30 1 0 0 0 0
12 31 1 0 0 0 0
M END
10 changes: 2 additions & 8 deletions src/test/org/openscience/cdk/smiles/SmilesGeneratorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -727,21 +727,15 @@ private void fixCarbonHCount(IAtomContainer mol) {
* @cdk.bug 1014344
*/
@Test public void testTest() throws Exception {
String filename_cml = "data/mdl/9554.mol";
String filename_mol = "data/mdl/9553.mol";
String filename_cml = "data/mdl/9554-with-exp-hyd.mol";
String filename_mol = "data/mdl/9553-with-exp-hyd.mol";
InputStream ins1 = this.getClass().getClassLoader().getResourceAsStream(filename_cml);
InputStream ins2 = this.getClass().getClassLoader().getResourceAsStream(filename_mol);
MDLV2000Reader reader1 = new MDLV2000Reader(ins1, Mode.STRICT);
IAtomContainer mol1 = reader1.read(new AtomContainer());
addExplicitHydrogens(mol1);
StructureDiagramGenerator sdg=new StructureDiagramGenerator(mol1);
sdg.generateCoordinates();

MDLV2000Reader reader2 = new MDLV2000Reader(ins2, Mode.STRICT);
IAtomContainer mol2 = reader2.read(new AtomContainer());
addExplicitHydrogens(mol2);
sdg=new StructureDiagramGenerator(mol2);
sdg.generateCoordinates();

SmilesGenerator sg = new SmilesGenerator();

Expand Down

0 comments on commit 8bbfa75

Please sign in to comment.