Created
June 22, 2009 16:02
-
-
Save rapodaca/134045 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.io.daylight.SMILESReader; | |
import com.metamolecular.mx.map.Mapper; | |
import com.metamolecular.mx.map.DefaultMapper; | |
import com.metamolecular.mx.model.Atom; | |
import com.metamolecular.mx.query.Node; | |
import java.util.Map; | |
import junit.framework.TestCase; | |
public class Test extends TestCase | |
{ | |
/** | |
* Tested against f89cd3b7433b707f1e5688648deaa2380a0dac44. | |
*/ | |
public void testDoesntMapImineToAmine() | |
{ | |
Mapper mapper = new DefaultMapper(SMILESReader.read("C=N")); | |
Map<Node, Atom> map = mapper.getFirstMap(SMILESReader.read("C-N")); | |
assertEquals(0, map.size()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment