algorithmz 1.0.6

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

#[test]
fn test_is_rotated_empty() {
    let result = is_rotated("","");
    assert_eq!(result, true);
}

#[test]
fn test_is_rotated_false() {
    let result = is_rotated("daniel","szabo");
    assert_eq!(result, false);
}
#[test]
fn test_is_rotated() {
    let result = is_rotated("hello", "llohe");
    assert_eq!(result, true);
}