Pass tests in release mode

pull/1/head
Bradlee Speice 2018-12-06 23:22:30 -05:00
parent 508aa05cb9
commit 42754635ba
1 changed files with 5 additions and 1 deletions

View File

@ -3,5 +3,9 @@ use qadapt::enter_protected;
#[test]
#[should_panic]
fn guard_without_initialization() {
enter_protected();
if cfg!(debug_assertions) {
enter_protected();
} else {
panic!("Intentional")
}
}