algorithmz 1.0.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
use algorithmz::string::repeat_string;

#[test]
fn test_repeat_string_negative() {
    let result = repeat_string("abc", "xyz");
    assert_eq!(result, -1);
}

#[test]
fn test_repeat_string() {
    let result = repeat_string("abc", "cabcabca");
    assert_eq!(result, 4);
}