Skip to content

Commit

Permalink
Added should_panic to tests
Browse files Browse the repository at this point in the history
This commit added should_panic to tests which indicated by their context that they should panic given that they have the panic message in the comments. The only issue is not all of them panic but that should be solved in a separate fork
  • Loading branch information
rowanfr committed Sep 6, 2023
1 parent 8bca929 commit d2562e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/compiletest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ fn run_mode(mode: &'static str) {
}

#[test]
#[should_panic]
fn compile_test() {
let _ = env_logger::try_init();
run_mode("compile-fail");
Expand Down

0 comments on commit d2562e5

Please sign in to comment.