PageRenderTime 22ms CodeModel.GetById 16ms app.highlight 2ms RepoModel.GetById 3ms app.codeStats 0ms

/rcdk/inst/unitTests/runit.smiles.R

http://github.com/rajarshi/cdkr
R | 13 lines | 12 code | 1 blank | 0 comment | 0 complexity | 783e7454dbede6f90501c99994cac8ad MD5 | raw file
 1test.get.smiles <- function()
 2{
 3  m <- parse.smiles('CCCC')[[1]]
 4  s <- get.smiles(m)
 5  checkEquals(s, 'CCCC')
 6}
 7
 8test.get.smiles2 <- function() {
 9  m1 <- parse.smiles("CCCNCC")[[1]]
10  m2 <- parse.smiles("CNCCS")[[1]]
11  mcs <- get.mcs(m1, m2)
12  checkEquals("[CH2]NCC", get.smiles(mcs, smiles.flavors(c('Unique'))))
13}