From f41cf8cc389be298a7486c4302ae582a524c6d7e Mon Sep 17 00:00:00 2001 From: Peter McEvoy Date: Fri, 3 Feb 2023 11:59:53 -0500 Subject: [PATCH] Test tas!() --- rust/ares/src/lib.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rust/ares/src/lib.rs b/rust/ares/src/lib.rs index c70f0b7..7a6fb1c 100644 --- a/rust/ares/src/lib.rs +++ b/rust/ares/src/lib.rs @@ -6,3 +6,14 @@ pub mod mem; pub mod mug; pub mod noun; pub mod serialization; + +#[cfg(test)] +mod tests { + + #[test] + fn tas() { + use ares_macros::tas; + assert_eq!(tas!(b"cut"), 0x747563); + assert_eq!(tas!(b"dec"), 0x636564); + } +}