Add a release-only test for `is_active()` behavior

no_panic_unused
Bradlee Speice 2019-01-20 15:20:59 -05:00
rodič 640269ff10
revize 8df83a56b1
1 změnil soubory, kde provedl 10 přidání a 0 odebrání

10
tests/inactive_release.rs Normal file
Zobrazit soubor

@ -0,0 +1,10 @@
use qadapt::QADAPT;
#[global_allocator]
static Q: QADAPT = QADAPT;
#[cfg(not(debug_assertions))]
#[test]
fn release_only_inactive() {
assert!(!qadapt::is_active());
}