Ejemplo n.º 1
0
 def test_score(self):
     c = [
         (CIGAR.S, 10),
         (CIGAR.EQ, 1),
         (CIGAR.X, 4),
         (CIGAR.EQ, 10),
         (CIGAR.I, 3),
         (CIGAR.EQ, 5),
     ]
     self.assertEqual(22, score(c))
Ejemplo n.º 2
0
 def test_score(self):
     c = [
         (CIGAR.S, 10),
         (CIGAR.EQ, 1),
         (CIGAR.X, 4),
         (CIGAR.EQ, 10),
         (CIGAR.I, 3),
         (CIGAR.EQ, 5),
     ]
     assert score(c) == 22
Ejemplo n.º 3
0
 def test_score_error(self):
     with self.assertRaises(AssertionError):
         c = [(CIGAR.S, 10), (CIGAR.EQ, 1), (CIGAR.X, 4), (99, 10),
              (CIGAR.I, 3), (CIGAR.EQ, 5)]
         score(c)