algorithmz 1.1.7

This is the corresponding implemenation of the python module of the same name.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use algorithmz::string::first_unique_character;

#[test] 
fn test_first_unique_character_empty() {
    let result = first_unique_character("");
    assert_eq!(result,0);
}
#[test]
fn test_first_unique_character() {
    let result = first_unique_character("teetlcode");
    assert_eq!(result,4);
}
#[test]
fn test_first_unique_character_nounique() {
    let result = first_unique_character("teet");
    assert_eq!(result, -1);
}