Created
June 16, 2009 04:54
-
-
Save rapodaca/130536 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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