algorithmz 1.1.3

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::count_binary_substring;

#[test]
fn tests_count_binary_substring() {
    let result = count_binary_substring("00110011");
    assert_eq!(result, 6);
}

#[test]
fn test_count_binary_substring_empty() {
    let result = count_binary_substring("");
    assert_eq!(result, 0);
}