Skip to content

Instantly share code, notes, and snippets.

@rapodaca
Created June 22, 2009 16:02
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/134045 to your computer and use it in GitHub Desktop.
Save rapodaca/134045 to your computer and use it in GitHub Desktop.
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