Skip to content

Commit

Permalink
The SMARTS pattern '**(*)*' should not match cyclopropane - example f…
Browse files Browse the repository at this point in the history
…or Roger Sayle.

Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
  • Loading branch information
johnmay authored and egonw committed Sep 17, 2013
1 parent 599d549 commit 28d8713
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -1732,5 +1732,10 @@ public void testBondOrderQueryKekuleVsSmiles() throws Exception {
assertThat(match("[#6+0&R]=[#6+0&!R]", "C1=C2CCCC2CCC1"),
is(new int[]{0, 0}));
}

@Test public void cyclopropane() throws Exception {
assertThat(match("**(*)*", "C1CC1"),
is(new int[]{0, 0}));
}
}

0 comments on commit 28d8713

Please sign in to comment.