Пример #1
0
 public void Hamming_distance_is_off_by_one_strand()
 {
     Assert.That(Hamming.Compute("GGACGGATTCTG", "AGGACGGATTCT"), Is.EqualTo(9));
 }
Пример #2
0
 public void Smalling_hamming_distance_in_middle_somewhere()
 {
     Assert.That(Hamming.Compute("GGACG", "GGTCG"), Is.EqualTo(1));
 }
Пример #3
0
 public void No_difference_between_identical_strands()
 {
     Assert.That(Hamming.Compute("GGACTGA", "GGACTGA"), Is.EqualTo(0));
 }
Пример #4
0
 public void Complete_hamming_distance_in_small_strand()
 {
     Assert.That(Hamming.Compute("ACT", "GGA"), Is.EqualTo(3));
 }
Пример #5
0
 public void Ignores_extra_length_on_original_strand_when_longer()
 {
     Assert.That(Hamming.Compute("GACTACGGACAGGGTAGGGAAT", "GACATCGCACACC"), Is.EqualTo(5));
 }
Пример #6
0
 public void Strands_must_be_the_same_length_to_get_distance()
 {
     Assert.That(() => Hamming.Compute("AAACTAGGGG", "AGGCTAGCGGTAGGAC"), Throws.ArgumentException);
 }
Пример #7
0
 public void Hamming_char_length_is_different_on_dna1()
 {
     Assert.That(Hamming.Compute("GGACGGATTCTGGT", "AGGACGGATTCT"), Is.EqualTo(-1));
 }
Пример #8
0
 public void Complete_hamming_distance_in_small_strand()
 {
     Assert.Equal(3, Hamming.Compute("ACT", "GGA"));
 }
Пример #9
0
 public void No_difference_between_empty_strands()
 {
     Assert.Equal(0, Hamming.Compute("", ""));
 }
Пример #10
0
 public void No_difference_between_WhiteSpace_strands()
 {
     Assert.That(Hamming.Compute(" ", ""), Is.EqualTo(-1));
 }
Пример #11
0
 public void Larger_distance()
 {
     Assert.Equal(2, Hamming.Compute("ACCAGGG", "ACTATGG"));
 }
Пример #12
0
 public void Smalling_hamming_distance_in_middle_somewhere()
 {
     Assert.Equal(1, Hamming.Compute("GGACG", "GGTCG"));
 }
Пример #13
0
 public void Hamming_distance_is_off_by_one_strand()
 {
     Assert.Equal(9, Hamming.Compute("GGACGGATTCTG", "AGGACGGATTCT"));
 }
Пример #14
0
 public void Larger_distance()
 {
     Assert.That(Hamming.Compute("ACCAGGG", "ACTATGG"), Is.EqualTo(2));
 }
Пример #15
0
 public void Ignores_extra_length_on_other_strand_when_longer()
 {
     Assert.That(Hamming.Compute("AAACTAGGGG", "AGGCTAGCGGTAGGAC"), Is.EqualTo(3));
 }
Пример #16
0
 public void No_difference_between_empty_strands()
 {
     Assert.That(Hamming.Compute("", ""), Is.EqualTo(0));
 }
Пример #17
0
 public void No_difference_between_identical_strands()
 {
     Assert.Equal(0, Hamming.Compute("GGACTGA", "GGACTGA"));
 }