Skip to content

Commit 25d1d2e

Browse files
committed
Hamming: Bump test suite to 2.2.0
This references exercism/problem-specifications#1412.
1 parent 76cd537 commit 25d1d2e

File tree

2 files changed

+10
-50
lines changed

2 files changed

+10
-50
lines changed

exercises/hamming/package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: hamming
2-
version: 2.1.1.8
2+
version: 2.2.0.9
33

44
dependencies:
55
- base

exercises/hamming/test/Tests.hs

Lines changed: 9 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -31,62 +31,22 @@ cases = [ Case { description = "empty strands"
3131
, strand2 = ""
3232
, expected = Just 0
3333
}
34-
, Case { description = "identical strands"
34+
, Case { description = "single letter identical strands"
3535
, strand1 = "A"
3636
, strand2 = "A"
3737
, expected = Just 0
3838
}
39-
, Case { description = "long identical strands"
40-
, strand1 = "GGACTGA"
41-
, strand2 = "GGACTGA"
42-
, expected = Just 0
43-
}
44-
, Case { description = "complete distance in single nucleotide strands"
45-
, strand1 = "A"
46-
, strand2 = "G"
47-
, expected = Just 1
48-
}
49-
, Case { description = "complete distance in small strands"
50-
, strand1 = "AG"
51-
, strand2 = "CT"
52-
, expected = Just 2
53-
}
54-
, Case { description = "small distance in small strands"
55-
, strand1 = "AT"
56-
, strand2 = "CT"
57-
, expected = Just 1
58-
}
59-
, Case { description = "small distance"
60-
, strand1 = "GGACG"
61-
, strand2 = "GGTCG"
39+
, Case { description = "single letter different strands"
40+
, strand1 = "G"
41+
, strand2 = "T"
6242
, expected = Just 1
6343
}
64-
, Case { description = "small distance in long strands"
65-
, strand1 = "ACCAGGG"
66-
, strand2 = "ACTATGG"
67-
, expected = Just 2
68-
}
69-
, Case { description = "non-unique character in first strand"
70-
, strand1 = "AAG"
71-
, strand2 = "AAA"
72-
, expected = Just 1
73-
}
74-
, Case { description = "non-unique character in second strand"
75-
, strand1 = "AAA"
76-
, strand2 = "AAG"
77-
, expected = Just 1
78-
}
79-
, Case { description = "same nucleotides in different positions"
80-
, strand1 = "TAG"
81-
, strand2 = "GAT"
82-
, expected = Just 2
83-
}
84-
, Case { description = "large distance"
85-
, strand1 = "GATACA"
86-
, strand2 = "GCATAA"
87-
, expected = Just 4
44+
, Case { description = "long identical strands"
45+
, strand1 = "GGACTGAAATCTG"
46+
, strand2 = "GGACTGAAATCTG"
47+
, expected = Just 0
8848
}
89-
, Case { description = "large distance in off-by-one strand"
49+
, Case { description = "long different strands"
9050
, strand1 = "GGACGGATTCTG"
9151
, strand2 = "AGGACGGATTCT"
9252
, expected = Just 9

0 commit comments

Comments
 (0)