2018-05-12 14:48:45 +00:00
|
|
|
mod tester;
|
|
|
|
|
|
|
|
use tester::BatTester;
|
|
|
|
|
2018-08-31 20:24:36 +00:00
|
|
|
macro_rules! snapshot_tests {
|
|
|
|
($($test_name: ident: $style: expr,)*) => {
|
|
|
|
$(
|
|
|
|
#[test]
|
|
|
|
fn $test_name() {
|
|
|
|
let bat_tester = BatTester::new();
|
|
|
|
bat_tester.test_snapshot($style);
|
|
|
|
}
|
|
|
|
)*
|
|
|
|
};
|
|
|
|
}
|
2018-05-12 14:48:45 +00:00
|
|
|
|
2018-08-31 20:24:36 +00:00
|
|
|
snapshot_tests! {
|
|
|
|
changes: "changes",
|
|
|
|
grid: "grid",
|
|
|
|
header: "header",
|
|
|
|
numbers: "numbers",
|
|
|
|
changes_grid: "changes,grid",
|
|
|
|
changes_header: "changes,header",
|
|
|
|
changes_numbers: "changes,numbers",
|
|
|
|
grid_header: "grid,header",
|
|
|
|
grid_numbers: "grid,numbers",
|
|
|
|
header_numbers: "header,numbers",
|
|
|
|
changes_grid_header: "changes,grid,header",
|
|
|
|
changes_grid_numbers: "changes,grid,numbers",
|
|
|
|
changes_header_numbers: "changes,header,numbers",
|
|
|
|
grid_header_numbers: "grid,header,numbers",
|
|
|
|
changes_grid_header_numbers: "changes,grid,header,numbers",
|
|
|
|
full: "full",
|
|
|
|
plain: "plain",
|
2018-05-12 14:48:45 +00:00
|
|
|
}
|