algorithmz 0.8.8

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
use algorithmz::map::is_valid_sudoku;

#[test]
fn test_is_valid_sudoku_empty() {
    let result = is_valid_sudoku(vec![]);
    assert!(matches!(result, Err (ref e) if e == "Cannot be an empty board!"));
}

#[test]
fn test_is_valid_sudoku() {
    let board = vec![vec!['.';9];9];
    let result = is_valid_sudoku(board).unwrap();
    assert_eq!(result,true)
}