|
|
@@ -16,51 +16,51 @@ public class HammingTest {
|
|
16
|
16
|
assertThat(new Hamming("A", "A").getHammingDistance(), is(0));
|
|
17
|
17
|
}
|
|
18
|
18
|
|
|
19
|
|
- @Ignore
|
|
|
19
|
+ @Ignore("Remove to run test")
|
|
20
|
20
|
@Test
|
|
21
|
21
|
public void testHammingDistanceForSingleNucleotideStrand() {
|
|
22
|
22
|
assertThat(new Hamming("A", "G").getHammingDistance(), is(1));
|
|
23
|
23
|
}
|
|
24
|
24
|
|
|
25
|
|
- @Ignore
|
|
|
25
|
+ @Ignore("Remove to run test")
|
|
26
|
26
|
@Test
|
|
27
|
27
|
public void testHammingDistanceForSmallStrand() {
|
|
28
|
28
|
assertThat(new Hamming("AG", "CT").getHammingDistance(), is(2));
|
|
29
|
29
|
}
|
|
30
|
30
|
|
|
31
|
|
- @Ignore
|
|
|
31
|
+ @Ignore("Remove to run test")
|
|
32
|
32
|
@Test
|
|
33
|
33
|
public void testSmallHammingDistance() {
|
|
34
|
34
|
assertThat(new Hamming("AT", "CT").getHammingDistance(), is(1));
|
|
35
|
35
|
}
|
|
36
|
36
|
|
|
37
|
|
- @Ignore
|
|
|
37
|
+ @Ignore("Remove to run test")
|
|
38
|
38
|
@Test
|
|
39
|
39
|
public void testSmallHammingDistanceInLongerStrand() {
|
|
40
|
40
|
assertThat(new Hamming("GGACG", "GGTCG").getHammingDistance(), is(1));
|
|
41
|
41
|
}
|
|
42
|
42
|
|
|
43
|
|
- @Ignore
|
|
|
43
|
+ @Ignore("Remove to run test")
|
|
44
|
44
|
@Test
|
|
45
|
45
|
public void testValidatesFirstStrandNotLonger() {
|
|
46
|
46
|
thrown.expect(IllegalArgumentException.class);
|
|
47
|
47
|
new Hamming("AAAG", "AAA");
|
|
48
|
48
|
}
|
|
49
|
49
|
|
|
50
|
|
- @Ignore
|
|
|
50
|
+ @Ignore("Remove to run test")
|
|
51
|
51
|
@Test
|
|
52
|
52
|
public void testValidatesOtherStrandNotLonger() {
|
|
53
|
53
|
thrown.expect(IllegalArgumentException.class);
|
|
54
|
54
|
new Hamming("AAA", "AAAG");
|
|
55
|
55
|
}
|
|
56
|
56
|
|
|
57
|
|
- @Ignore
|
|
|
57
|
+ @Ignore("Remove to run test")
|
|
58
|
58
|
@Test
|
|
59
|
59
|
public void testLargeHammingDistance() {
|
|
60
|
60
|
assertThat(new Hamming("GATACA", "GCATAA").getHammingDistance(), is(4));
|
|
61
|
61
|
}
|
|
62
|
62
|
|
|
63
|
|
- @Ignore
|
|
|
63
|
+ @Ignore("Remove to run test")
|
|
64
|
64
|
@Test
|
|
65
|
65
|
public void testHammingDistanceInVeryLongStrand() {
|
|
66
|
66
|
assertThat(new Hamming("GGACGGATTCTG", "AGGACGGATTCT").getHammingDistance(), is(9));
|