Procházet zdrojové kódy

hamming: update test suite (#1154)

* hamming: update test suite

* Empty commit

* code change
Sam Warner před 8 roky
rodič
revize
aad8978f1b

+ 1
- 1
exercises/hamming/.meta/version Zobrazit soubor

1
-1.1.0
1
+2.0.1

+ 3
- 2
exercises/hamming/src/test/java/HammingTest.java Zobrazit soubor

5
 
5
 
6
 import static org.junit.Assert.assertEquals;
6
 import static org.junit.Assert.assertEquals;
7
 
7
 
8
+
8
 public class HammingTest {
9
 public class HammingTest {
9
 
10
 
10
     @Rule
11
     @Rule
60
     @Ignore("Remove to run test")
61
     @Ignore("Remove to run test")
61
     @Test
62
     @Test
62
     public void testNonUniqueCharacterInFirstStrand() {
63
     public void testNonUniqueCharacterInFirstStrand() {
63
-        assertEquals(1, new Hamming("AGA", "AGG").getHammingDistance());
64
+        assertEquals(1, new Hamming("AAG", "AAA").getHammingDistance());
64
     }
65
     }
65
 
66
 
66
     @Ignore("Remove to run test")
67
     @Ignore("Remove to run test")
67
     @Test
68
     @Test
68
     public void testNonUniqueCharacterInSecondStrand() {
69
     public void testNonUniqueCharacterInSecondStrand() {
69
-        assertEquals(1, new Hamming("AGG", "AGA").getHammingDistance());
70
+        assertEquals(1, new Hamming("AAA", "AAG").getHammingDistance());
70
     }
71
     }
71
 
72
 
72
     @Ignore("Remove to run test")
73
     @Ignore("Remove to run test")