Skip to content

Commit 0191e43

Browse files
committed
hamming: make test names consistent [Fix exercism#304]
*Remove mention of "complete" *Fix spelling mistake in second test *Add throws Exception to methods that throw exceptions
1 parent 4e98d87 commit 0191e43

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎exercises/hamming/src/test/java/HammingTest.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ public void testNoDifferenceBetweenIdenticalStrands() {
1919

2020
@Ignore
2121
@Test
22-
public void testCompleteHammingDistanceOfForSingleNucleotideStrand() {
22+
public void testHammingDistanceForSingleNucleotideStrand() {
2323
assertThat(Hamming.compute("A", "G"), is(1));
2424
}
2525

2626
@Ignore
2727
@Test
28-
public void testCompleteHammingDistanceForSmallStrand() {
28+
public void testHammingDistanceForSmallStrand() {
2929
assertThat(Hamming.compute("AG", "CT"), is(2));
3030
}
3131

@@ -43,14 +43,14 @@ public void testSmallHammingDistanceInLongerStrand() {
4343

4444
@Ignore
4545
@Test
46-
public void testValidatesFirstStrandNotLonger() {
46+
public void testValidatesFirstStrandNotLonger() throws IllegalArgumentException {
4747
thrown.expect(IllegalArgumentException.class);
4848
Hamming.compute("AAAG", "AAA");
4949
}
5050

5151
@Ignore
5252
@Test
53-
public void testValidatesOtherStrandNotLonger() {
53+
public void testValidatesOtherStrandNotLonger() throws IllegalArgumentException {
5454
thrown.expect(IllegalArgumentException.class);
5555
Hamming.compute("AAA", "AAAG");
5656
}

0 commit comments

Comments
 (0)