1
0
mirror of https://github.com/bspeice/qadapt synced 2024-11-21 21:38:10 -05:00

Pass tests in release mode

This commit is contained in:
Bradlee Speice 2018-12-06 23:22:30 -05:00
parent 508aa05cb9
commit 42754635ba

View File

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