23a8f31f83
## Issue Addressed NA ## Proposed Changes Fixes most clippy warnings and ignores the rest of them, see issue #1388.
15 lines
628 B
Rust
15 lines
628 B
Rust
use proto_array::fork_choice_test_definition::*;
|
|
use std::fs::File;
|
|
|
|
fn main() {
|
|
write_test_def_to_yaml("votes.yaml", get_votes_test_definition());
|
|
write_test_def_to_yaml("no_votes.yaml", get_no_votes_test_definition());
|
|
write_test_def_to_yaml("ffg_01.yaml", get_ffg_case_01_test_definition());
|
|
write_test_def_to_yaml("ffg_02.yaml", get_ffg_case_02_test_definition());
|
|
}
|
|
|
|
fn write_test_def_to_yaml(filename: &str, def: ForkChoiceTestDefinition) {
|
|
let file = File::create(filename).expect("Should be able to open file");
|
|
serde_yaml::to_writer(file, &def).expect("Should be able to write YAML to file");
|
|
}
|