//! Provides testing utility functions for use throughout the Rust code base. #[doc(hidden)] pub use pretty_assertions::assert_eq as _pretty_assert_eq; #[derive(PartialEq, Eq)] pub struct DebugAsDisplay(pub T); impl std::fmt::Debug for DebugAsDisplay { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { self.0.fmt(f) } } #[macro_export] macro_rules! assert_multiline_str_eq { ($a:expr, $b:expr) => { $crate::_pretty_assert_eq!($crate::DebugAsDisplay($a), $crate::DebugAsDisplay($b)) }; }