示例#1
0
 def test_hamming_distance_in_very_long_strand(self):
     self.assertEqual(9, hamming.distance('GGACGGATTCTG', 'AGGACGGATTCT'))
示例#2
0
 def test_small_hamming_distance_in_longer_strand(self):
     self.assertEqual(1, hamming.distance('GGACG', 'GGTCG'))
示例#3
0
 def test_large_hamming_distance(self):
     self.assertEqual(4, hamming.distance('GATACA', 'GCATAA'))
示例#4
0
 def test_complete_hamming_distance_of_for_small_strand(self):
     self.assertEqual(2, hamming.distance('AG', 'CT'))
示例#5
0
 def test_small_hamming_distance(self):
     self.assertEqual(1, hamming.distance('AT', 'CT'))
示例#6
0
 def test_no_difference_between_identical_strands(self):
     self.assertEqual(0, hamming.distance('A', 'A'))
示例#7
0
 def test_complete_hamming_distance_of_for_single_nucleotide_strand(self):
     self.assertEqual(1, hamming.distance('A', 'G'))
示例#8
0
 def test_large_hamming_distance(self):
     self.assertEqual(4, hamming.distance('GATACA', 'GCATAA'))
示例#9
0
 def test_hamming_distance_in_very_long_strand(self):
     self.assertEqual(9, hamming.distance('GGACGGATTCTG', 'AGGACGGATTCT'))
示例#10
0
 def test_small_hamming_distance_in_longer_strand(self):
     self.assertEqual(1, hamming.distance('GGACG', 'GGTCG'))
示例#11
0
 def test_small_hamming_distance(self):
     self.assertEqual(1, hamming.distance('AT', 'CT'))
示例#12
0
 def test_complete_hamming_distance_of_for_small_strand(self):
     self.assertEqual(2, hamming.distance('AG', 'CT'))
示例#13
0
 def test_complete_hamming_distance_of_for_single_nucleotide_strand(self):
     self.assertEqual(1, hamming.distance('A', 'G'))
示例#14
0
 def test_no_difference_between_identical_strands(self):
     self.assertEqual(0, hamming.distance('A', 'A'))