Skip to content

Commit

Permalink
corrected caught exception, this exception changed in commit: 1ef89fb
Browse files Browse the repository at this point in the history
Change-Id: Ie2c37ad62fc07ab83d37f83a16391d4ba9442318
Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
  • Loading branch information
johnmay authored and egonw committed Mar 24, 2013
1 parent 15ecad1 commit 1e065a3
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1413,21 +1413,21 @@ public void testPropertyAtomicMass7() throws Exception {
try {
int[] results = match("[G19]", "CCN");
Assert.fail();
} catch (CDKException pe) {
} catch (IllegalArgumentException pe) {
Assert.assertTrue(true);
}

try {
int[] results = match("[G0]", "CCN");
Assert.fail();
} catch (CDKException pe) {
} catch (IllegalArgumentException pe) {
Assert.assertTrue(true);
}

try {
int[] results = match("[G345]", "CCN");
Assert.fail();
} catch (CDKException pe) {
} catch (IllegalArgumentException pe) {
Assert.assertTrue(true);
}

Expand All @@ -1437,14 +1437,14 @@ public void testPropertyAtomicMass7() throws Exception {
try {
int[] results = match("[G]", "CCN");
Assert.fail("Should throw an exception if G is not followed by a number");
} catch (CDKException pe) {
} catch (IllegalArgumentException pe) {
Assert.assertTrue(true);
}

try {
int[] results = match("[GA]", "CCN");
Assert.fail("Should throw an exception if G is not followed by a number");
} catch (CDKException pe) {
} catch (IllegalArgumentException pe) {
Assert.assertTrue(true);
}
}
Expand Down Expand Up @@ -1497,28 +1497,28 @@ public void testPropertyAtomicMass7() throws Exception {
try {
int[] results = match("[^]", "CCN");
Assert.fail("Should throw an exception if ^ is not followed by a number");
} catch (CDKException pe) {
} catch (IllegalArgumentException pe) {
Assert.assertTrue(true);
}

try {
int[] results = match("[^X]", "CCN");
Assert.fail("Should throw an exception if ^ is not followed by a number");
} catch (CDKException pe) {
} catch (IllegalArgumentException pe) {
Assert.assertTrue(true);
}

try {
int[] results = match("[^0]", "CCN");
Assert.fail("Should throw an exception if ^ is not between 1 & 8");
} catch (CDKException pe) {
} catch (IllegalArgumentException pe) {
Assert.assertTrue(true);
}

try {
int[] results = match("[^9]", "CCN");
Assert.fail("Should throw an exception if ^ is not between 1 & 8");
} catch (CDKException pe) {
} catch (IllegalArgumentException pe) {
Assert.assertTrue(true);
}
}
Expand Down

0 comments on commit 1e065a3

Please sign in to comment.