diff --git a/atspi-common/src/events/mod.rs b/atspi-common/src/events/mod.rs index 63c843c5..dacc6e76 100644 --- a/atspi-common/src/events/mod.rs +++ b/atspi-common/src/events/mod.rs @@ -488,7 +488,7 @@ fn test_event_listener_default_no_panic() { #[test] fn test_event_listener_signature() { - assert_eq_signatures!(&EventListeners::signature(), &EVENT_LISTENER_SIGNATURE); + assert_eq!(&EventListeners::signature(), &EVENT_LISTENER_SIGNATURE); } /// Covers both `EventListener` events. @@ -780,12 +780,12 @@ mod tests { #[test] fn check_event_body_qt_signature() { - assert_eq_signatures!(&::signature(), &QSPI_EVENT_SIGNATURE); + assert_eq!(&::signature(), &QSPI_EVENT_SIGNATURE); } #[test] fn check_event_body_signature() { - assert_eq_signatures!(&::signature(), &ATSPI_EVENT_SIGNATURE); + assert_eq!(&::signature(), &ATSPI_EVENT_SIGNATURE); } #[test] diff --git a/atspi-common/src/macros.rs b/atspi-common/src/macros.rs index f608412b..4126e106 100644 --- a/atspi-common/src/macros.rs +++ b/atspi-common/src/macros.rs @@ -530,17 +530,3 @@ macro_rules! event_test_cases { assert_impl_all!(zbus::Message: TryFrom<$type>); }; } - -/// Asserts that the signatures are equal, but ignores the outer parentheses as -/// the difference between marshalled and unmarshalled signatures is often just one set of outer parentheses. -#[macro_export] -macro_rules! assert_eq_signatures { - ($lhs_sig:expr, $rhs_sig:expr) => { - assert!( - $lhs_sig == $rhs_sig, - "Signatures are not equal (Lhs: {}, Rhs: {})", - $lhs_sig, - $rhs_sig - ); - }; -}