Skip to content

Commit

Permalink
Add tree skip test
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdrozd committed Aug 14, 2024
1 parent 8affd85 commit 067b51e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,3 +370,17 @@ fn test_print() {
println!("{}", comp.show(Some(params)));
});
}

#[test]
fn test_skip() {
let progs = [];

let halt = 0;
let params = (3, 2);

let halt = halt != 0;

for prog in progs {
assert!(skip(&CompProg::from_str(prog), params, halt));
}
}

0 comments on commit 067b51e

Please sign in to comment.