Skip to content

Commit

Permalink
#1254 SMARTS with component-level grouping saved without '()'
Browse files Browse the repository at this point in the history
 Fix UTs
  • Loading branch information
AliaksandrDziarkach committed Sep 12, 2023
1 parent 721450e commit 51c0167
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/cpp/tests/basic/reaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ TEST(Reaction, automapReactionSmarts)
const auto& session = IndigoSession::create();
auto reaction = session->loadReaction("[C:1]=[C:2][C:3].[C:4]=[C:5][C:6]>>[C:3][C:2]=[C:5][C:6]");
reaction.automap(IndigoAutomapMode::CLEAR);
ASSERT_STREQ("[#6]=[#6]-[#6].[#6]=[#6]-[#6]>>[#6]-[#6]=[#6]-[#6] |^3:0,3,^1:1,4,7,8|", reaction.smarts().c_str());
ASSERT_STREQ("[#6]=[#6]-[#6].[#6]=[#6]-[#6]>>[#6]-[#6]=[#6]-[#6]", reaction.smarts().c_str());
}

TEST(Reaction, automapQueryReactionSmarts)
{
const auto& session = IndigoSession::create();
auto reaction = session->loadQueryReaction("[C:1]=[C:2][C:3].[C:4]=[C:5][C:6]>>[C:3][C:2]=[C:5][C:6] |$;;R1;;;R2;R1;;;R2$|");
reaction.automap(IndigoAutomapMode::CLEAR);
ASSERT_STREQ("[#6]=[#6]-[#6].[#6]=[#6]-[#6]>>[#6]-[#6]=[#6]-[#6] |$;;R1;;;R2;R1;;;R2$|", reaction.smarts().c_str());
ASSERT_STREQ("[#6]=[#6]-[#6].[#6]=[#6]-[#6]>>[#6]-[#6]=[#6]-[#6]", reaction.smarts().c_str());
}

0 comments on commit 51c0167

Please sign in to comment.