File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ pub fn check(candidate: &str) -> bool {
5
5
return true
6
6
}
7
7
let mut seen: HashSet < char > = HashSet :: new ( ) ;
8
- for char in candidate. chars ( ) {
8
+ for char in candidate. to_lowercase ( ) . chars ( ) {
9
9
if seen. contains ( & char) {
10
10
return false
11
11
}
Original file line number Diff line number Diff line change @@ -26,25 +26,21 @@ fn longest_reported_english_isogram() {
26
26
}
27
27
28
28
#[ test]
29
- #[ ignore]
30
29
fn word_with_duplicated_character_in_mixed_case ( ) {
31
30
assert ! ( !check( "Alphabet" ) ) ;
32
31
}
33
32
34
33
#[ test]
35
- #[ ignore]
36
34
fn word_with_duplicated_character_in_mixed_case_lowercase_first ( ) {
37
35
assert ! ( !check( "alphAbet" ) ) ;
38
36
}
39
37
40
38
#[ test]
41
- #[ ignore]
42
39
fn hypothetical_isogrammic_word_with_hyphen ( ) {
43
40
assert ! ( check( "thumbscrew-japingly" ) ) ;
44
41
}
45
42
46
43
#[ test]
47
- #[ ignore]
48
44
fn hypothetical_word_with_duplicated_character_following_hyphen ( ) {
49
45
assert ! ( !check( "thumbscrew-jappingly" ) ) ;
50
46
}
You can’t perform that action at this time.
0 commit comments