Skip to content

Commit

Permalink
Added a positive unit test too
Browse files Browse the repository at this point in the history
Change-Id: Ica5ed8c3f3ab944da83e3c3bdfbd05fcc13e2826
Signed-off-by: John May <john.wilkinsonmay@gmail.com>
  • Loading branch information
egonw authored and johnmay committed Aug 2, 2013
1 parent 0b6c93d commit bda3e23
Showing 1 changed file with 10 additions and 0 deletions.
Expand Up @@ -22,6 +22,7 @@
import org.junit.Test;
import org.openscience.cdk.CDKTestCase;
import org.openscience.cdk.interfaces.IBond;
import org.openscience.cdk.silent.Bond;

/**
* Checks the functionality of the IsomorphismTester
Expand All @@ -40,4 +41,13 @@ public void testMatches() {
Assert.assertFalse(matcher.matches(testBond));
}

@Test
public void testAnyOrder() {
AnyOrderQueryBond matcher = new AnyOrderQueryBond();
IBond testBond = new Bond();
for (IBond.Order order : IBond.Order.values()) {
testBond.setOrder(order);
Assert.assertTrue(matcher.matches(testBond));
}
}
}

0 comments on commit bda3e23

Please sign in to comment.