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 format
  • Loading branch information
AliaksandrDziarkach committed Sep 11, 2023
1 parent c2397ac commit 67021d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion core/indigo-core/molecule/src/query_molecule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2162,7 +2162,7 @@ void QueryMolecule::_calculateComponentNeighbors()

std::list<std::unordered_set<int>>& QueryMolecule::getComponentNeighbors()
{
if(!_component_neighbors_valid)
if (!_component_neighbors_valid)
_calculateComponentNeighbors();

return _component_neighbors;
Expand Down
2 changes: 0 additions & 2 deletions core/indigo-core/tests/tests/formats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ TEST_F(IndigoCoreFormatsTest, smarts_load_save)
{
QueryMolecule q_mol;

//std::string smarts_in{"([#8:1].[#6:2])"};
std::string smarts_in{"([#8].[#6]).([#6].[#8])"};
BufferScanner scanner(smarts_in.c_str());
SmilesLoader loader(scanner);
Expand All @@ -342,4 +341,3 @@ TEST_F(IndigoCoreFormatsTest, smarts_load_save)
std::string smarts_out{out.ptr(), static_cast<std::size_t>(out.size())};
ASSERT_EQ(smarts_in, smarts_out);
}

0 comments on commit 67021d6

Please sign in to comment.