Skip to content

Commit

Permalink
Demonstrate bug 844 has been resolved.
Browse files Browse the repository at this point in the history
Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
  • Loading branch information
johnmay authored and egonw committed Jan 2, 2015
1 parent 2ffb503 commit 41adfbc
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -475,4 +475,12 @@ public void recursiveComponentGrouping() throws Exception {
assertThat(SMARTSSearchTest.match("[O;D1;$(([a,A]).([A,a]))][CH]=O", "OC=O.c1ccccc1"), is(new int[]{1, 1}));
assertThat(SMARTSSearchTest.match("[O;D1;$(([a,A]).([A,a]))][CH]=O", "OC=O"), is(new int[]{0, 0}));
}

/**
* @cdk.bug 844
*/
@Test
public void bug844() throws Exception {
assertThat(SMARTSSearchTest.match("[*R0]-[$([NRD3][CR]=O)]", "N1(CC)C(=O)CCCC1"), is(new int[]{1, 1}));
}
}

0 comments on commit 41adfbc

Please sign in to comment.