exint 0.1.4

An implementation of generic signed and unsigned integers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
macro_rules! assert_panic {
  ($expr:expr, message = $message:ident) => {{
    let Err(error) = ::std::panic::catch_unwind(|| $expr) else {
      ::core::panic!(concat!("expected panic: ", stringify!($expr)));
    };

    let Some(error) = error.downcast_ref::<&'_ str>() else {
      ::core::panic!("expected string error");
    };

    $crate::tests::assert_eq!(*error, $crate::panic::$message);
  }};
}

pub(crate) use assert_panic;