Skip to content

Instantly share code, notes, and snippets.

@rapodaca
Created June 16, 2009 04:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rapodaca/130536 to your computer and use it in GitHub Desktop.
Save rapodaca/130536 to your computer and use it in GitHub Desktop.
import com.metamolecular.mx.model.Molecule;
import com.metamolecular.mx.io.Molecules;
import com.metamolecular.mx.query.DefaultAtomMatcher;
import junit.framework.TestCase;
public class Test extends TestCase
{
public void testTolueneQuatDoesntMatchNeopentaneQuat()
{
Molecule toluene = Molecules.createToluene();
Molecule neopentane = Molecules.createNeopentane();
DefaultAtomMatcher matcher = new DefaultAtomMatcher(toluene.getAtom(0));
assertFalse(matcher.matches(neopentane.getAtom(0)));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment