aboutsummaryrefslogtreecommitdiff
path: root/tests/display.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2024-06-22 12:26:04 -0700
committeriximeow <me@iximeow.net>2024-06-22 12:26:04 -0700
commit2bbeeec8cf26c1b165cdc5e6548b28bbc3c1d6a3 (patch)
treee96d808768bf10f6a5c9f7358ff7e8fa8dca8809 /tests/display.rs
parent0c69ee37f98ce616df5237cbe74952c2a28cc5cb (diff)
be more careful about what does and doesnt need alloc
Diffstat (limited to 'tests/display.rs')
-rw-r--r--tests/display.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/display.rs b/tests/display.rs
index 9a8ef2e..887db53 100644
--- a/tests/display.rs
+++ b/tests/display.rs
@@ -22,6 +22,23 @@ fn sinks_are_equivalent() {
}
*/
+#[test]
+#[allow(deprecated)]
+fn formatters_are_not_feature_gated() {
+ use yaxpeax_arch::display::{
+ u8_hex, u16_hex, u32_hex, u64_hex,
+ signed_i8_hex, signed_i16_hex, signed_i32_hex, signed_i64_hex
+ };
+ let _ = u8_hex(10);
+ let _ = u16_hex(10);
+ let _ = u32_hex(10);
+ let _ = u64_hex(10);
+ let _ = signed_i8_hex(10);
+ let _ = signed_i16_hex(10);
+ let _ = signed_i32_hex(10);
+ let _ = signed_i64_hex(10);
+}
+
#[cfg(feature="alloc")]
#[test]
fn display_sink_write_hex_helpers() {