mirror of
https://github.com/bspeice/qadapt
synced 2024-11-21 13:28:11 -05:00
Pass tests in release mode
This commit is contained in:
parent
508aa05cb9
commit
42754635ba
@ -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")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user