Browse Source

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

Bradlee Speice 3 months ago
parent
commit
8df83a56b1
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      tests/inactive_release.rs

+ 10
- 0
tests/inactive_release.rs View File

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

Loading…
Cancel
Save