@@ -25,26 +25,14 @@ describe('combineSmiles', () => {
2525
2626 it ( 'real case with problem smiles core starting with R' , async ( ) => {
2727 const fragments = [
28- { i : 1 , R1 : true , R2 : true , R3 : true , R4 : true , smiles : 'CC([R])=O' } ,
29- { i : 2 , R1 : true , R2 : true , R3 : true , R4 : true , smiles : 'OC[R]' } ,
30- { i : 3 , R1 : true , R2 : true , R3 : true , R4 : true , smiles : 'CNC[R]' } ,
31- { i : 4 , R1 : true , R2 : true , R3 : true , R4 : true , smiles : 'CCOC[R]' } ,
32- {
33- i : 5 ,
34- R1 : true ,
35- R2 : true ,
36- R3 : true ,
37- R4 : true ,
38- smiles : '[R]C1=CC=CC=C1' ,
39- } ,
4028 { i : 6 , R1 : true , R2 : true , R3 : true , R4 : true , smiles : 'CC[R]' } ,
4129 { i : 7 , R1 : true , R2 : true , R3 : true , R4 : true , smiles : 'CCC[R]' } ,
4230 { i : 8 , R1 : true , R2 : true , R3 : true , R4 : true , smiles : '[R]' } ,
4331 ] ;
4432 const core = '[R4]C(C([R3])=C1[R2])=CN=C1[R1]' ;
4533 const results = await combineSmiles ( core , fragments , OCL ) ;
4634
47- expect ( results ) . toHaveLength ( 3872 ) ;
35+ expect ( results ) . toHaveLength ( 72 ) ;
4836 expect ( results [ 0 ] . mw ) . toBe ( 79.1017 ) ;
4937 expect ( results [ 0 ] . mf ) . toBe ( 'C5H5N' ) ;
5038 } ) ;
0 commit comments