diff options
Diffstat (limited to 'tests/util/mod.rs')
-rw-r--r-- | tests/util/mod.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/util/mod.rs b/tests/util/mod.rs index b1d3ea3..4a00a66 100644 --- a/tests/util/mod.rs +++ b/tests/util/mod.rs @@ -69,6 +69,13 @@ macro_rules! assert_cmd_err { } #[macro_export] +macro_rules! assert_cmu_err { + ($left:expr, $right:expr) => { + assert_err!(::nitrokey::Error::CommunicationError, $left, $right); + }; +} + +#[macro_export] macro_rules! assert_lib_err { ($left:expr, $right:expr) => { assert_err!(::nitrokey::Error::LibraryError, $left, $right); |