Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Nov 10, 2023
1 parent 290ed6a commit 80f8b5b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 18 deletions.
20 changes: 20 additions & 0 deletions Code/itf/tests/consensus.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
use malachite_itf::consensus::State;

#[test]
fn parse_fixtures() {
let folder = format!("{}/tests/fixtures/consensus", env!("CARGO_MANIFEST_DIR"));

let fixtures = std::fs::read_dir(folder)
.unwrap()
.map(|entry| entry.unwrap().path())
.collect::<Vec<_>>();

for fixture in fixtures {
println!("Parsing '{}'", fixture.display());

let json = std::fs::read_to_string(&fixture).unwrap();
let state = itf::trace_from_str::<State>(&json).unwrap();

dbg!(state);
}
}
17 changes: 0 additions & 17 deletions Code/itf/tests/decide_non_proposer.rs

This file was deleted.

1 change: 0 additions & 1 deletion Code/itf/tests/fixtures/DecideNonProposerTest0.itf.json

This file was deleted.

Loading

0 comments on commit 80f8b5b

Please sign in to comment.