From: Egon Willighagen <egon.willighagen@gm...> - 2007-09-03 13:22:24
On 9/3/07, sushil ronghe wrote:
> actually i have not experimented much with the junit this is your test.
> Can you just give me some link so that i can figure out the mechanism.
The test is found at:
It's a JUnit4 test class, with a Junit3 suite() wrapper method.
The first few tests test certain SMARTS constructs, after which a long
list of testPatternX() methods follow, extracted from this wiki page:
Each test basically just tries to do a "SMARTSParser.parse(smarts);"
These tests do not even see if it matches things correctly.
At about 2/3 down the class start a number of tests extracted from the
Daylight SMARTS tutorial at:
These tests do not just test parsing of the SMARTS string, but also
calculate and test for the correct number of matches given a SMILES
string. I had not checked who added those tests, but I know realize
that David or Rajashi might have added those. These tests are the most
powerfull, though they depend on the SmilesParser to work properly...
Several of these tests fail because the QueryAtomContainer is empty,
that is, does not have any IAtom's in it...