Skip to content

Commit

Permalink
Eliminate testdata from test-valencycheck
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmay authored and egonw committed Dec 29, 2021
1 parent 4ea5fae commit ba7f25d
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 15 deletions.
7 changes: 0 additions & 7 deletions base/test-valencycheck/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,6 @@
<version>${project.parent.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>cdk-testdata</artifactId>
<version>${project.parent.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -645,8 +645,8 @@ public void testAdenine() throws Exception {
@Test
public void testBug1727373() throws Exception {
IAtomContainer molecule = null;
String filename = "data/mdl/carbocations.mol";
InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename);
String filename = "carbocations.mol";
InputStream ins = this.getClass().getResourceAsStream(filename);
MDLV2000Reader reader = new MDLV2000Reader(ins);
molecule = reader.read(new AtomContainer());
findAndConfigureAtomTypesForAllAtoms(molecule);
Expand All @@ -662,8 +662,8 @@ public void testBug1727373() throws Exception {
*/
@Test
public void testBug1575269() throws Exception {
String filename = "data/mdl/furan.mol";
InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename);
String filename = "furan.mol";
InputStream ins = this.getClass().getResourceAsStream(filename);
MDLV2000Reader reader = new MDLV2000Reader(ins);
IAtomContainer molecule = reader.read(new AtomContainer());
findAndConfigureAtomTypesForAllAtoms(molecule);
Expand All @@ -676,8 +676,8 @@ public void testBug1575269() throws Exception {

@Test
public void testImpHByAtom() throws Exception {
String filename = "data/mdl/furan.mol";
InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename);
String filename = "furan.mol";
InputStream ins = this.getClass().getResourceAsStream(filename);
MDLV2000Reader reader = new MDLV2000Reader(ins);
IAtomContainer molecule = reader.read(new AtomContainer());
findAndConfigureAtomTypesForAllAtoms(molecule);
Expand Down Expand Up @@ -723,8 +723,8 @@ public void testNaCl() throws Exception {
*/
@Test
public void testSulfurCompound_ImplicitHydrogens() throws Exception {
String filename = "data/mdl/sulfurCompound.mol";
InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename);
String filename = "sulfurCompound.mol";
InputStream ins = this.getClass().getResourceAsStream(filename);
MDLV2000Reader reader = new MDLV2000Reader(ins);
IChemFile chemFile = (IChemFile) reader.read(new ChemFile());
List<IAtomContainer> containersList = ChemFileManipulator.getAllAtomContainers(chemFile);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

MassFron05210709212D

4 4 0 0 0 0 0 0 0 0 2 V2000
1.8966 -3.2759 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1.8966 -4.0345 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
2.2759 -4.6897 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1.5172 -4.6897 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1 2 2 0 0 0 0
2 3 1 0 0 0 0
2 4 1 0 0 0 0
3 4 1 0 0 0 0
M CHG 1 3 1
M END
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
furan.mol
ChemDraw10110613592D

5 5 0 0 0 0 0 0 0 0999 V2000
-0.6348 0.4125 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-0.6348 -0.4125 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.1498 -0.6674 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.6348 -0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.1498 0.6674 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0
1 2 2 0
2 3 1 0
3 4 2 0
4 5 1 0
5 1 1 0
M END
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Molecule
PEtclserve10060318462D 0 0.00000 0.00000547

10 9 0 0 0 0 0 0 0 0999 V2000
-0.0500 -0.8875 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-2.1958 0.3708 0.0000 S 0 0 0 0 0 0 0 0 0 0 0 0
-0.7708 0.3708 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-0.0500 -0.0500 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.6667 -1.2875 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0
-2.1958 1.2125 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0
-1.4958 -0.0500 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-0.7708 -1.2875 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0
0.6667 0.3708 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0
-2.9333 -0.0500 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
2 7 1 0 0 0 0
3 4 1 0 0 0 0
1 4 1 0 0 0 0
1 5 2 0 0 0 0
2 6 2 0 0 0 0
3 7 1 0 0 0 0
1 8 1 0 0 0 0
4 9 1 0 0 0 0
2 10 1 0 0 0 0
M END
$$$$

0 comments on commit ba7f25d

Please sign in to comment.