//! Test that the [`libthreema_macros::concat_fixed_bytes`] works as expected. #![expect(unused_crate_dependencies, reason = "False positive")] #![expect(clippy::min_ident_chars, reason = "Test variable names")] #![expect(clippy::tests_outside_test_module, reason = "trybuild tests work that way")]
use libthreema_macros::concat_fixed_bytes;
#[test] fn correct() { let a = [1_u8; 4]; let b = [2_u8; 3]; let c = [3_u8; 3];
{ let result: [u8; 0] = concat_fixed_bytes!();
assert_eq!(result, [] as [u8; 0]);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.