Skip to content

Instantly share code, notes, and snippets.

@rapodaca
Created June 23, 2009 13:30
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/134527 to your computer and use it in GitHub Desktop.
Save rapodaca/134527 to your computer and use it in GitHub Desktop.
import com.metamolecular.mx.io.daylight.SMILESReader;
import com.metamolecular.mx.map.DefaultMapper;
import com.metamolecular.mx.map.Mapper;
import junit.framework.TestCase;
public class Test extends TestCase
{
public void testSaturatedSulfurDoesntMatchUnsaturatedSulfur()
{
Mapper mapper = new DefaultMapper(SMILESReader.read("S-C=O"));
// or should this pass?
assertFalse(mapper.hasMap(SMILESReader.read("CCS(=O)C(=O)N(C)C1=CC=C(Cl)C=C1")));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment