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::{encode,decode};

#[test]
fn test_encode() {
    let result  = encode("daniel is also awesome");
    assert_eq!(result,String::from("6:daniel2:is4:also7:awesome"));
}

#[test]
fn test_decode() {
    let result = decode("6:daniel2:is4:also7:awesome");
    assert_eq!(result, String::from("daniel is also awesome"));
}