algorithmz 1.2.9

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
use algorithmz::string::reverse_string;

#[test]
fn test_reverse_string_empty() {
    let result = reverse_string("");
    assert_eq!(result, String::from(""));
}

#[test]
fn test_reverse_string() {
    let result = reverse_string("abcdef");
    assert_eq!(result, String::from("fedcba"));
}