Пример #1
0
 def testAssignment(self):
     f = open('dataset_78_8.txt')
     v = next(f).strip()
     w = next(f).strip()
     
     s,vv,ww = affineAllign(v, w)
     
     print(s)
     print(vv)
     print(ww)
     
     pass
Пример #2
0
    def testAffine(self):
        v="PRTEINS"
        w="PRTWPSEIN"


        st = 8
        vt = "PRT---EINS"
        wt = "PRTWPSEIN-"
        s,vv,ww = affineAllign(v, w)
        
        assert s == st
        assert vv == vt
        assert ww == wt