odin_palace 0.1.0

Parser and analyzer for bank statements in the 1CClientBankExchange format
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::parser;
use rstest::rstest;
use std::fs;
use std::path::PathBuf;

#[rstest]
fn test_suites(#[files("src/tests/**/input.*")] path: PathBuf) {
    let content = fs::read(&path).expect("cannot read the file");
    let result = parser::Parser::default().parse(&content);
    insta::with_settings!({
        omit_expression => true,
        prepend_module_to_snapshot => false,
        snapshot_path => path.parent().unwrap(),
    },{
        insta::assert_debug_snapshot!("result", result);
    });
}