mirror of
https://github.com/bspeice/qadapt
synced 2025-07-11 18:54:59 -04:00
Pass tests in release mode
This commit is contained in:
@ -3,5 +3,9 @@ use qadapt::enter_protected;
|
|||||||
#[test]
|
#[test]
|
||||||
#[should_panic]
|
#[should_panic]
|
||||||
fn guard_without_initialization() {
|
fn guard_without_initialization() {
|
||||||
enter_protected();
|
if cfg!(debug_assertions) {
|
||||||
|
enter_protected();
|
||||||
|
} else {
|
||||||
|
panic!("Intentional")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user