From 6353c77bd4808f5b1a9c5d358271f2ee5a80b30e Mon Sep 17 00:00:00 2001 From: Joel Parker Henderson Date: Fri, 27 Sep 2024 20:28:18 +0200 Subject: [PATCH] Add namespace, to enable explicit "use" case --- Cargo.toml | 2 +- README.md | 112 +++++++++--------- book.md | 4 +- src/assert_approx_eq.rs | 4 +- src/assert_approx_ne.rs | 4 +- src/assert_bag/assert_bag_eq.rs | 4 +- src/assert_bag/assert_bag_ne.rs | 4 +- src/assert_bag/assert_bag_subbag.rs | 4 +- src/assert_bag/assert_bag_superbag.rs | 4 +- .../assert_command_stderr_contains.rs | 4 +- .../assert_command_stderr_eq.rs | 4 +- .../assert_command_stderr_eq_expr.rs | 4 +- .../assert_command_stderr_is_match.rs | 4 +- .../assert_command_stdout_contains.rs | 4 +- .../assert_command_stdout_eq.rs | 4 +- .../assert_command_stdout_eq_expr.rs | 4 +- .../assert_command_stdout_is_match.rs | 4 +- src/assert_contains.rs | 4 +- src/assert_ends_with.rs | 4 +- src/assert_err.rs | 4 +- src/assert_fn/assert_fn_eq.rs | 8 +- src/assert_fn/assert_fn_eq_expr.rs | 8 +- src/assert_fn/assert_fn_ge.rs | 8 +- src/assert_fn/assert_fn_ge_expr.rs | 8 +- src/assert_fn/assert_fn_gt.rs | 8 +- src/assert_fn/assert_fn_gt_expr.rs | 8 +- src/assert_fn/assert_fn_le.rs | 8 +- src/assert_fn/assert_fn_le_expr.rs | 8 +- src/assert_fn/assert_fn_lt.rs | 8 +- src/assert_fn/assert_fn_lt_expr.rs | 8 +- src/assert_fn/assert_fn_ne.rs | 8 +- src/assert_fn/assert_fn_ne_expr.rs | 8 +- src/assert_fn_err/assert_fn_err_eq.rs | 8 +- src/assert_fn_err/assert_fn_err_eq_expr.rs | 8 +- src/assert_fn_err/assert_fn_err_ge.rs | 8 +- src/assert_fn_err/assert_fn_err_ge_expr.rs | 8 +- src/assert_fn_err/assert_fn_err_gt.rs | 8 +- src/assert_fn_err/assert_fn_err_gt_expr.rs | 8 +- src/assert_fn_err/assert_fn_err_le.rs | 8 +- src/assert_fn_err/assert_fn_err_le_expr.rs | 8 +- src/assert_fn_err/assert_fn_err_lt.rs | 8 +- src/assert_fn_err/assert_fn_err_lt_expr.rs | 8 +- src/assert_fn_err/assert_fn_err_ne.rs | 8 +- src/assert_fn_err/assert_fn_err_ne_expr.rs | 8 +- src/assert_fn_ok/assert_fn_ok_eq.rs | 8 +- src/assert_fn_ok/assert_fn_ok_eq_expr.rs | 8 +- src/assert_fn_ok/assert_fn_ok_ge.rs | 8 +- src/assert_fn_ok/assert_fn_ok_ge_expr.rs | 8 +- src/assert_fn_ok/assert_fn_ok_gt.rs | 8 +- src/assert_fn_ok/assert_fn_ok_gt_expr.rs | 8 +- src/assert_fn_ok/assert_fn_ok_le.rs | 8 +- src/assert_fn_ok/assert_fn_ok_le_expr.rs | 8 +- src/assert_fn_ok/assert_fn_ok_lt.rs | 8 +- src/assert_fn_ok/assert_fn_ok_lt_expr.rs | 8 +- src/assert_fn_ok/assert_fn_ok_ne.rs | 8 +- src/assert_fn_ok/assert_fn_ok_ne_expr.rs | 8 +- .../assert_fs_read_to_string_contains.rs | 4 +- .../assert_fs_read_to_string_eq.rs | 4 +- .../assert_fs_read_to_string_eq_expr.rs | 4 +- .../assert_fs_read_to_string_ge.rs | 4 +- .../assert_fs_read_to_string_ge_expr.rs | 4 +- .../assert_fs_read_to_string_gt.rs | 4 +- .../assert_fs_read_to_string_gt_expr.rs | 4 +- .../assert_fs_read_to_string_le.rs | 4 +- .../assert_fs_read_to_string_le_expr.rs | 4 +- .../assert_fs_read_to_string_lt.rs | 4 +- .../assert_fs_read_to_string_lt_expr.rs | 4 +- .../assert_fs_read_to_string_matches.rs | 4 +- .../assert_fs_read_to_string_ne.rs | 4 +- .../assert_fs_read_to_string_ne_expr.rs | 4 +- src/assert_ge.rs | 4 +- src/assert_gt.rs | 4 +- src/assert_in_delta.rs | 4 +- src/assert_in_epsilon.rs | 4 +- src/assert_infix.rs | 4 +- .../assert_io_read_to_string_contains.rs | 4 +- .../assert_io_read_to_string_eq.rs | 4 +- .../assert_io_read_to_string_eq_expr.rs | 4 +- .../assert_io_read_to_string_ge.rs | 4 +- .../assert_io_read_to_string_ge_expr.rs | 4 +- .../assert_io_read_to_string_gt.rs | 4 +- .../assert_io_read_to_string_gt_expr.rs | 4 +- .../assert_io_read_to_string_le.rs | 4 +- .../assert_io_read_to_string_le_expr.rs | 4 +- .../assert_io_read_to_string_lt.rs | 4 +- .../assert_io_read_to_string_lt_expr.rs | 4 +- .../assert_io_read_to_string_matches.rs | 4 +- .../assert_io_read_to_string_ne.rs | 4 +- .../assert_io_read_to_string_ne_expr.rs | 4 +- src/assert_is_match.rs | 4 +- src/assert_le.rs | 4 +- src/assert_lt.rs | 4 +- src/assert_none.rs | 4 +- src/assert_not_contains.rs | 4 +- src/assert_not_ends_with.rs | 4 +- src/assert_not_match.rs | 4 +- src/assert_not_starts_with.rs | 4 +- src/assert_ok.rs | 4 +- src/assert_ok_eq.rs | 4 +- src/assert_ok_eq_expr.rs | 4 +- src/assert_ok_ne.rs | 4 +- src/assert_ok_ne_expr.rs | 4 +- src/assert_option/assert_option_none.rs | 4 +- src/assert_option/assert_option_some.rs | 4 +- src/assert_option/assert_option_some_eq.rs | 4 +- src/assert_option/assert_option_some_ne.rs | 4 +- src/assert_pending.rs | 4 +- src/assert_poll/assert_poll_pending.rs | 4 +- src/assert_poll/assert_poll_ready.rs | 4 +- src/assert_poll/assert_poll_ready_eq.rs | 4 +- src/assert_poll/assert_poll_ready_ne.rs | 4 +- .../assert_program_args_stderr_contains.rs | 4 +- .../assert_program_args_stderr_eq.rs | 4 +- .../assert_program_args_stderr_eq_expr.rs | 4 +- .../assert_program_args_stderr_ge.rs | 4 +- .../assert_program_args_stderr_ge_expr.rs | 4 +- .../assert_program_args_stderr_gt.rs | 4 +- .../assert_program_args_stderr_gt_expr.rs | 4 +- .../assert_program_args_stderr_is_match.rs | 4 +- .../assert_program_args_stderr_le.rs | 4 +- .../assert_program_args_stderr_le_expr.rs | 4 +- .../assert_program_args_stderr_lt.rs | 4 +- .../assert_program_args_stderr_lt_expr.rs | 4 +- .../assert_program_args_stderr_ne.rs | 4 +- .../assert_program_args_stderr_ne_expr.rs | 4 +- .../assert_program_args_stdout_contains.rs | 4 +- .../assert_program_args_stdout_eq.rs | 4 +- .../assert_program_args_stdout_eq_expr.rs | 4 +- .../assert_program_args_stdout_ge.rs | 4 +- .../assert_program_args_stdout_ge_expr.rs | 4 +- .../assert_program_args_stdout_gt.rs | 4 +- .../assert_program_args_stdout_gt_expr.rs | 4 +- .../assert_program_args_stdout_is_match.rs | 4 +- .../assert_program_args_stdout_le.rs | 4 +- .../assert_program_args_stdout_le_expr.rs | 4 +- .../assert_program_args_stdout_lt.rs | 4 +- .../assert_program_args_stdout_lt_expr.rs | 4 +- .../assert_program_args_stdout_ne.rs | 4 +- .../assert_program_args_stdout_ne_expr.rs | 4 +- src/assert_ready.rs | 4 +- src/assert_ready_eq.rs | 4 +- src/assert_ready_eq_expr.rs | 4 +- src/assert_ready_ne.rs | 4 +- src/assert_ready_ne_expr.rs | 8 +- src/assert_result/assert_result_err.rs | 4 +- src/assert_result/assert_result_ok.rs | 4 +- src/assert_result/assert_result_ok_eq.rs | 4 +- src/assert_result/assert_result_ok_ne.rs | 4 +- src/assert_set/assert_set_disjoint.rs | 4 +- src/assert_set/assert_set_eq.rs | 4 +- src/assert_set/assert_set_joint.rs | 4 +- src/assert_set/assert_set_ne.rs | 4 +- src/assert_set/assert_set_subset.rs | 4 +- src/assert_set/assert_set_superset.rs | 4 +- src/assert_some.rs | 4 +- src/assert_some_eq.rs | 4 +- src/assert_some_eq_expr.rs | 4 +- src/assert_some_ne.rs | 4 +- src/assert_some_ne_expr.rs | 4 +- src/assert_starts_with.rs | 4 +- src/lib.rs | 22 ++-- 161 files changed, 461 insertions(+), 455 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b96a7b1ea..009676df3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "assertables" -version = "8.9.0" +version = "8.10.0" authors = ["Joel Parker Henderson "] edition = "2021" description = "Assertables: assert macros for better testing, debugging, quality assurance, and runtime reliability." diff --git a/README.md b/README.md index ce972c767..692ef885e 100644 --- a/README.md +++ b/README.md @@ -21,100 +21,100 @@ The assertables crate provides many more, so you can write smarter tests. For values: -* [`assert_lt!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_lt.html) `// less than` -* [`assert_le!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_le.html) `// less than or equal` -* [`assert_gt!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_gt.html) `// greater than` -* [`assert_ge!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_ge.html) `// greater than or equal` +* [`assert_lt!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_lt.html) `// less than` +* [`assert_le!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_le.html) `// less than or equal` +* [`assert_gt!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_gt.html) `// greater than` +* [`assert_ge!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_ge.html) `// greater than or equal` For approximation: -* [`assert_approx_eq!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_approx_eq.html) -* [`assert_approx_ne!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_approx_ne.html) +* [`assert_approx_eq!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_approx_eq.html) +* [`assert_approx_ne!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_approx_ne.html) For strings: -* [`assert_starts_with!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_starts_with.html) -* [`assert_ends_with!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_ends_with.html) +* [`assert_starts_with!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_starts_with.html) +* [`assert_ends_with!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_ends_with.html) For matching: -* [`assert_contains!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_contains.html) -* [`assert_is_match!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_is_match.html) +* [`assert_contains!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_contains.html) +* [`assert_is_match!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_is_match.html) For infix operators: -* [`assert_infix!(a == b)`](https://docs.rs/assertables/latest/assertables/macro.assert_infix.html) -* [`assert_infix!(a && b)`](https://docs.rs/assertables/latest/assertables/macro.assert_infix.html) +* [`assert_infix!(a == b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_infix.html) +* [`assert_infix!(a && b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_infix.html) For nearness: -* [`assert_in_delta!(a, b, delta)`](https://docs.rs/assertables/latest/assertables/macro.assert_in_delta.html) -* [`assert_in_epsilon!(a, b, epsilon)`](https://docs.rs/assertables/latest/assertables/macro.assert_in_epsilon.html) +* [`assert_in_delta!(a, b, delta)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_in_delta.html) +* [`assert_in_epsilon!(a, b, epsilon)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_in_epsilon.html) For Result Ok/Err: -* [`assert_ok!(a)`](https://docs.rs/assertables/latest/assertables/macro.assert_ok.html) -* [`assert_ok_eq!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_ok_eq.html) -* [`assert_ok_eq_expr!(a, expr)`](https://docs.rs/assertables/latest/assertables/macro.assert_ok_eq_expr.html) -* [`assert_ok_ne!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_ok_ne.html) -* [`assert_ok_ne_expr!(a, expr)`](https://docs.rs/assertables/latest/assertables/macro.assert_ok_ne_expr).html) -* [`assert_err!(a)`](https://docs.rs/assertables/latest/assertables/macro.assert_err.html) +* [`assert_ok!(a)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_ok.html) +* [`assert_ok_eq!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_ok_eq.html) +* [`assert_ok_eq_expr!(a, expr)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_ok_eq_expr.html) +* [`assert_ok_ne!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_ok_ne.html) +* [`assert_ok_ne_expr!(a, expr)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_ok_ne_expr.html) +* [`assert_err!(a)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_err.html) For Option Some/None: -* [`assert_some!(a)`](https://docs.rs/assertables/latest/assertables/macro.assert_some.html) -* [`assert_some_eq!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_some_eq.html) -* [`assert_some_eq_expr!(a, expr)`](https://docs.rs/assertables/latest/assertables/macro.assert_some_eq_expr.html) -* [`assert_some_ne!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_some_ne.html) -* [`assert_some_ne_expr!(a, expr)`](https://docs.rs/assertables/latest/assertables/macro.assert_some_ne_expr.html) -* [`assert_none!(a)`](https://docs.rs/assertables/latest/assertables/macro.assert_none.html) +* [`assert_some!(a)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_some.html) +* [`assert_some_eq!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_some_eq.html) +* [`assert_some_eq_expr!(a, expr)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_some_eq_expr.html) +* [`assert_some_ne!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_some_ne.html) +* [`assert_some_ne_expr!(a, expr)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_some_ne_expr.html) +* [`assert_none!(a)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_none.html) For Poll Ready/Pending: -* [`assert_ready!(a)`](https://docs.rs/assertables/latest/assertables/macro.assert_ready.html) -* [`assert_ready_eq!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_ready_eq.html) -* [`assert_ready_eq_expr!(a, expr)`](https://docs.rs/assertables/latest/assertables/macro.assert_ready_eq_expr.html) -* [`assert_ready_ne!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_ready_ne.html) -* [`assert_ready_ne_expr!(a, expr)`](https://docs.rs/assertables/latest/assertables/macro.assert_ready_ne_expr.html) -* [`assert_pending!(a)`](https://docs.rs/assertables/latest/assertables/macro.assert_pending.html) +* [`assert_ready!(a)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_ready.html) +* [`assert_ready_eq!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_ready_eq.html) +* [`assert_ready_eq_expr!(a, expr)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_ready_eq_expr.html) +* [`assert_ready_ne!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_ready_ne.html) +* [`assert_ready_ne_expr!(a, expr)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_ready_ne_expr.html) +* [`assert_pending!(a)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_pending.html) For collections such as arrays, vectors, maps, sets: -* [`assert_set_subset!(collection1, collection2)`](https://docs.rs/assertables/latest/assertables/macro.assert_set_subset.html) -* [`assert_set_disjoint!(collection1, collection2)`](https://docs.rs/assertables/latest/assertables/macro.assert_set_disjoint.html) +* [`assert_set_subset!(collection1, collection2)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_set_subset.html) +* [`assert_set_disjoint!(collection1, collection2)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_set_disjoint.html) For file system paths and input/output readers: -* [`assert_fs_read_to_string_eq!(path1, path2)`](https://docs.rs/assertables/latest/assertables/macro.assert_fs_read_to_string_eq.html) -* [`assert_io_read_to_string_eq!(reader1, reader2)`](https://docs.rs/assertables/latest/assertables/macro.assert_io_read_to_string_eq.html) +* [`assert_fs_read_to_string_eq!(path1, path2)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_fs_read_to_string_eq.html) +* [`assert_io_read_to_string_eq!(reader1, reader2)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_io_read_to_string_eq.html) For command capture of standard output and standard error: -* [`assert_command_stdout_eq!(command1, command2)`](https://docs.rs/assertables/latest/assertables/macro.assert_command_stdout_eq.html) -* [`assert_program_args_stdout_eq!(program1, args1, program2, args2)`](https://docs.rs/assertables/latest/assertables/macro.assert_program_args_stdout_eq.html) +* [`assert_command_stdout_eq!(command1, command2)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_command_stdout_eq.html) +* [`assert_program_args_stdout_eq!(program1, args1, program2, args2)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_program_args_stdout_eq.html) There are many more macros that are grouped into modules. Modules for collections, such as arrays, vectors, lists, maps: -* [`assert_set`](https://docs.rs/assertables/latest/assertables/assert_set) for set collections -* [`assert_bag`](https://docs.rs/assertables/latest/assertables/assert_bag) for bag collections +* [`assert_set`](https://docs.rs/assertables/8.9.0/assertables/assert_set) for set collections +* [`assert_bag`](https://docs.rs/assertables/8.9.0/assertables/assert_bag) for bag collections Modules for functions: -* [`assert_fn`](https://docs.rs/assertables/latest/assertables/assert_fn) for functions in general. -* [`assert_fn_ok`](https://docs.rs/assertables/latest/assertables/assert_fn_ok) for functions that return `Result::Ok`. -* [`assert_fn_err`](https://docs.rs/assertables/latest/assertables/assert_fn_err) for functions that return `Result::Err`. +* [`assert_fn`](https://docs.rs/assertables/8.9.0/assertables/assert_fn) for functions in general. +* [`assert_fn_ok`](https://docs.rs/assertables/8.9.0/assertables/assert_fn_ok) for functions that return `Result::Ok`. +* [`assert_fn_err`](https://docs.rs/assertables/8.9.0/assertables/assert_fn_err) for functions that return `Result::Err`. Modules for readers: -* [`assert_fs_read_to_string`](https://docs.rs/assertables/latest/assertables/assert_fs_read_to_string) for file system path contents. -* [`assert_io_read_to_string`](https://docs.rs/assertables/latest/assertables/assert_io_read_to_string) for input/output reader streams. +* [`assert_fs_read_to_string`](https://docs.rs/assertables/8.9.0/assertables/assert_fs_read_to_string) for file system path contents. +* [`assert_io_read_to_string`](https://docs.rs/assertables/8.9.0/assertables/assert_io_read_to_string) for input/output reader streams. Modules for external calls: -* [`assert_command`](https://docs.rs/assertables/latest/assertables/assert_command) for commands with stdout/stderr. -* [`assert_program_args`](https://docs.rs/assertables/latest/assertables/assert_program_args) for programs with args with stdout/stderr. +* [`assert_command`](https://docs.rs/assertables/8.9.0/assertables/assert_command) for commands with stdout/stderr. +* [`assert_program_args`](https://docs.rs/assertables/8.9.0/assertables/assert_program_args) for programs with args with stdout/stderr. ### Top 3 benefits @@ -148,9 +148,9 @@ All the assert macros have 3 forms for different purposes: Examples: -* [`assert_starts_with!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_starts_with.html) // panic! -* [`debug_assert_starts_with!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.debug_assert_starts_with.html) // panic! in debug mode -* [`assert_starts_with_as_result!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_starts_with_as_result.html) // return Ok or Err +* [`assert_starts_with!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_starts_with.html) // panic! +* [`debug_assert_starts_with!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.debug_assert_starts_with.html) // panic! in debug mode +* [`assert_starts_with_as_result!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_starts_with_as_result.html) // return Ok or Err ### Forms for messages @@ -162,8 +162,8 @@ All the assert macros have 2 forms for messages. Examples: -* [`assert_starts_with!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_starts_with.html) -* [`assert_starts_with!(a, b, "Your custom message here")`](https://docs.rs/assertables/latest/assertables/macro.assert_starts_with.html) +* [`assert_starts_with!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_starts_with.html) +* [`assert_starts_with!(a, b, "Your custom message here")`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_starts_with.html) ### Forms for other versus expression @@ -175,15 +175,15 @@ Many of the assert macros have 2 forms for comparing left hand side and right ha Examples: -* [`assert_io_read_to_string_eq!(reader1, reader2)`](https://docs.rs/assertables/latest/assertables/macro.assert_io_read_to_string_eq.html) -* [`assert_io_read_to_string_eq_expr!(reader, expr)`](https://docs.rs/assertables/latest/assertables/macro.assert_io_read_to_string_eq_expr.html) +* [`assert_io_read_to_string_eq!(reader1, reader2)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_io_read_to_string_eq.html) +* [`assert_io_read_to_string_eq_expr!(reader, expr)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_io_read_to_string_eq_expr.html) ## Tracking * Package: assertables-rust-crate -* Version: 8.9.0 +* Version: 8.10.0 * Created: 2021-03-30T15:47:49Z -* Updated: 2024-09-25T15:18:42Z +* Updated: 2024-09-27T18:25:43Z * License: MIT or Apache-2.0 or GPL-2.0 or GPL-3.0 or contact us for more * Contact: Joel Parker Henderson (joel@sixarm.com) diff --git a/book.md b/book.md index 25de36a0b..6b9309976 100644 --- a/book.md +++ b/book.md @@ -612,13 +612,13 @@ Code: #[macro_export] macro_rules! assert_gt { ($a:expr, $b:expr $(,)?) => ({ - match assert_gt_result!($a, $b) { + match $crate::assert_gt_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }); ($a:expr, $b:expr, $($message:tt)+) => ({ - match assert_gt!($a, $b) { + match $crate::assert_gt!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_approx_eq.rs b/src/assert_approx_eq.rs index 6eeb0f559..2a0009d1e 100644 --- a/src/assert_approx_eq.rs +++ b/src/assert_approx_eq.rs @@ -233,13 +233,13 @@ mod tests { #[macro_export] macro_rules! assert_approx_eq { ($a:expr, $b:expr $(,)?) => {{ - match assert_approx_eq_as_result!($a, $b) { + match $crate::assert_approx_eq_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_approx_eq_as_result!($a, $b) { + match $crate::assert_approx_eq_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_approx_ne.rs b/src/assert_approx_ne.rs index 4efcee513..7cc22150e 100644 --- a/src/assert_approx_ne.rs +++ b/src/assert_approx_ne.rs @@ -233,13 +233,13 @@ mod tests { #[macro_export] macro_rules! assert_approx_ne { ($a:expr, $b:expr $(,)?) => {{ - match assert_approx_ne_as_result!($a, $b) { + match $crate::assert_approx_ne_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_approx_ne_as_result!($a, $b) { + match $crate::assert_approx_ne_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_bag/assert_bag_eq.rs b/src/assert_bag/assert_bag_eq.rs index b8baeee9b..401020c8e 100644 --- a/src/assert_bag/assert_bag_eq.rs +++ b/src/assert_bag/assert_bag_eq.rs @@ -167,13 +167,13 @@ mod test_as_result { #[macro_export] macro_rules! assert_bag_eq { ($a_collection:expr, $b_collection:expr $(,)?) => {{ - match assert_bag_eq_as_result!($a_collection, $b_collection) { + match $crate::assert_bag_eq_as_result!($a_collection, $b_collection) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_collection:expr, $b_collection:expr, $($message:tt)+) => {{ - match assert_bag_eq_as_result!($a_collection, $b_collection) { + match $crate::assert_bag_eq_as_result!($a_collection, $b_collection) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_bag/assert_bag_ne.rs b/src/assert_bag/assert_bag_ne.rs index 61f5988a5..cd008e09a 100644 --- a/src/assert_bag/assert_bag_ne.rs +++ b/src/assert_bag/assert_bag_ne.rs @@ -169,13 +169,13 @@ mod test_assert_x_result { #[macro_export] macro_rules! assert_bag_ne { ($a_collection:expr, $b_collection:expr $(,)?) => {{ - match assert_bag_ne_as_result!($a_collection, $b_collection) { + match $crate::assert_bag_ne_as_result!($a_collection, $b_collection) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_collection:expr, $b_collection:expr, $($message:tt)+) => {{ - match assert_bag_ne_as_result!($a_collection, $b_collection) { + match $crate::assert_bag_ne_as_result!($a_collection, $b_collection) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_bag/assert_bag_subbag.rs b/src/assert_bag/assert_bag_subbag.rs index 42fa94b37..08e6aaf31 100644 --- a/src/assert_bag/assert_bag_subbag.rs +++ b/src/assert_bag/assert_bag_subbag.rs @@ -194,13 +194,13 @@ mod tests { #[macro_export] macro_rules! assert_bag_subbag { ($a_collection:expr, $b_collection:expr $(,)?) => {{ - match assert_bag_subbag_as_result!($a_collection, $b_collection) { + match $crate::assert_bag_subbag_as_result!($a_collection, $b_collection) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_collection:expr, $b_collection:expr, $($message:tt)+) => {{ - match assert_bag_subbag_as_result!($a_collection, $b_collection) { + match $crate::assert_bag_subbag_as_result!($a_collection, $b_collection) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_bag/assert_bag_superbag.rs b/src/assert_bag/assert_bag_superbag.rs index 8bd6da3ac..1765a286f 100644 --- a/src/assert_bag/assert_bag_superbag.rs +++ b/src/assert_bag/assert_bag_superbag.rs @@ -194,13 +194,13 @@ mod tests { #[macro_export] macro_rules! assert_bag_superbag { ($a_collection:expr, $b_collection:expr $(,)?) => {{ - match assert_bag_superbag_as_result!($a_collection, $b_collection) { + match $crate::assert_bag_superbag_as_result!($a_collection, $b_collection) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_collection:expr, $b_collection:expr, $($message:tt)+) => {{ - match assert_bag_superbag_as_result!($a_collection, $b_collection) { + match $crate::assert_bag_superbag_as_result!($a_collection, $b_collection) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_command/assert_command_stderr_contains.rs b/src/assert_command/assert_command_stderr_contains.rs index 9eb49d638..c7eba030f 100644 --- a/src/assert_command/assert_command_stderr_contains.rs +++ b/src/assert_command/assert_command_stderr_contains.rs @@ -193,13 +193,13 @@ mod tests { #[macro_export] macro_rules! assert_command_stderr_contains { ($command:expr, $containee:expr $(,)?) => {{ - match assert_command_stderr_contains_as_result!($command, $containee) { + match $crate::assert_command_stderr_contains_as_result!($command, $containee) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($command:expr, $containee:expr, $($message:tt)+) => {{ - match assert_command_stderr_contains_as_result!($command, $containee) { + match $crate::assert_command_stderr_contains_as_result!($command, $containee) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_command/assert_command_stderr_eq.rs b/src/assert_command/assert_command_stderr_eq.rs index 92a4e8086..139419389 100644 --- a/src/assert_command/assert_command_stderr_eq.rs +++ b/src/assert_command/assert_command_stderr_eq.rs @@ -198,13 +198,13 @@ mod tests { #[macro_export] macro_rules! assert_command_stderr_eq { ($a_command:expr, $b_command:expr $(,)?) => {{ - match assert_command_stderr_eq_as_result!($a_command, $b_command) { + match $crate::assert_command_stderr_eq_as_result!($a_command, $b_command) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_command:expr, $b_command:expr, $($message:tt)+) => {{ - match assert_command_stderr_eq_as_result!($a_command, $b_command) { + match $crate::assert_command_stderr_eq_as_result!($a_command, $b_command) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_command/assert_command_stderr_eq_expr.rs b/src/assert_command/assert_command_stderr_eq_expr.rs index 1a7941498..3bfd7a4e7 100644 --- a/src/assert_command/assert_command_stderr_eq_expr.rs +++ b/src/assert_command/assert_command_stderr_eq_expr.rs @@ -193,13 +193,13 @@ mod tests { #[macro_export] macro_rules! assert_command_stderr_eq_expr { ($a_command:expr, $b_expr:expr $(,)?) => {{ - match assert_command_stderr_eq_expr_as_result!($a_command, $b_expr) { + match $crate::assert_command_stderr_eq_expr_as_result!($a_command, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_command:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_command_stderr_eq_expr_as_result!($a_command, $b_expr) { + match $crate::assert_command_stderr_eq_expr_as_result!($a_command, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_command/assert_command_stderr_is_match.rs b/src/assert_command/assert_command_stderr_is_match.rs index cd9012f2e..07e428822 100644 --- a/src/assert_command/assert_command_stderr_is_match.rs +++ b/src/assert_command/assert_command_stderr_is_match.rs @@ -196,13 +196,13 @@ mod tests { #[macro_export] macro_rules! assert_command_stderr_is_match { ($command:expr, $matcher:expr $(,)?) => {{ - match assert_command_stderr_is_match_as_result!($command, $matcher) { + match $crate::assert_command_stderr_is_match_as_result!($command, $matcher) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($command:expr, $matcher:expr, $($message:tt)+) => {{ - match assert_command_stderr_is_match_as_result!($command, $matcher) { + match $crate::assert_command_stderr_is_match_as_result!($command, $matcher) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_command/assert_command_stdout_contains.rs b/src/assert_command/assert_command_stdout_contains.rs index c3bda01d0..9bd630887 100644 --- a/src/assert_command/assert_command_stdout_contains.rs +++ b/src/assert_command/assert_command_stdout_contains.rs @@ -193,13 +193,13 @@ mod tests { #[macro_export] macro_rules! assert_command_stdout_contains { ($command:expr, $b:expr $(,)?) => {{ - match assert_command_stdout_contains_as_result!($command, $b) { + match $crate::assert_command_stdout_contains_as_result!($command, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($command:expr, $b:expr, $($message:tt)+) => {{ - match assert_command_stdout_contains_as_result!($command, $b) { + match $crate::assert_command_stdout_contains_as_result!($command, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_command/assert_command_stdout_eq.rs b/src/assert_command/assert_command_stdout_eq.rs index 8bd58604e..21173b4c0 100644 --- a/src/assert_command/assert_command_stdout_eq.rs +++ b/src/assert_command/assert_command_stdout_eq.rs @@ -199,13 +199,13 @@ mod tests { #[macro_export] macro_rules! assert_command_stdout_eq { ($a_command:expr, $b_command:expr $(,)?) => {{ - match assert_command_stdout_eq_as_result!($a_command, $b_command) { + match $crate::assert_command_stdout_eq_as_result!($a_command, $b_command) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_command:expr, $b_command:expr, $($message:tt)+) => {{ - match assert_command_stdout_eq_as_result!($a_command, $b_command) { + match $crate::assert_command_stdout_eq_as_result!($a_command, $b_command) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_command/assert_command_stdout_eq_expr.rs b/src/assert_command/assert_command_stdout_eq_expr.rs index 4f54c1113..913939efa 100644 --- a/src/assert_command/assert_command_stdout_eq_expr.rs +++ b/src/assert_command/assert_command_stdout_eq_expr.rs @@ -190,13 +190,13 @@ mod tests { #[macro_export] macro_rules! assert_command_stdout_eq_expr { ($a_command:expr, $b_expr:expr $(,)?) => {{ - match assert_command_stdout_eq_expr_as_result!($a_command, $b_expr) { + match $crate::assert_command_stdout_eq_expr_as_result!($a_command, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_command:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_command_stdout_eq_expr_as_result!($a_command, $b_expr) { + match $crate::assert_command_stdout_eq_expr_as_result!($a_command, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_command/assert_command_stdout_is_match.rs b/src/assert_command/assert_command_stdout_is_match.rs index 359a21948..a3dac3f6e 100644 --- a/src/assert_command/assert_command_stdout_is_match.rs +++ b/src/assert_command/assert_command_stdout_is_match.rs @@ -196,13 +196,13 @@ mod tests { #[macro_export] macro_rules! assert_command_stdout_is_match { ($command:expr, $matcher:expr $(,)?) => {{ - match assert_command_stdout_is_match_as_result!($command, $matcher) { + match $crate::assert_command_stdout_is_match_as_result!($command, $matcher) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($command:expr, $matcher:expr, $($message:tt)+) => {{ - match assert_command_stdout_is_match_as_result!($command, $matcher) { + match $crate::assert_command_stdout_is_match_as_result!($command, $matcher) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_contains.rs b/src/assert_contains.rs index e2132f9fc..29bb174e2 100644 --- a/src/assert_contains.rs +++ b/src/assert_contains.rs @@ -193,13 +193,13 @@ mod tests { #[macro_export] macro_rules! assert_contains { ($container:expr, $containee:expr $(,)?) => {{ - match assert_contains_as_result!($container, $containee) { + match $crate::assert_contains_as_result!($container, $containee) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($container:expr, $containee:expr, $($message:tt)+) => {{ - match assert_contains_as_result!($container, $containee) { + match $crate::assert_contains_as_result!($container, $containee) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_ends_with.rs b/src/assert_ends_with.rs index dc1cd3e8a..17ea8022d 100644 --- a/src/assert_ends_with.rs +++ b/src/assert_ends_with.rs @@ -151,13 +151,13 @@ mod tests { #[macro_export] macro_rules! assert_ends_with { ($a:expr, $b:expr $(,)?) => {{ - match assert_ends_with_as_result!($a, $b) { + match $crate::assert_ends_with_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_ends_with_as_result!($a, $b) { + match $crate::assert_ends_with_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_err.rs b/src/assert_err.rs index 90473b5b6..3950fb636 100644 --- a/src/assert_err.rs +++ b/src/assert_err.rs @@ -141,13 +141,13 @@ mod tests { #[macro_export] macro_rules! assert_err { ($a:expr $(,)?) => {{ - match assert_err_as_result!($a) { + match $crate::assert_err_as_result!($a) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $($message:tt)+) => {{ - match assert_err_as_result!($a) { + match $crate::assert_err_as_result!($a) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn/assert_fn_eq.rs b/src/assert_fn/assert_fn_eq.rs index d38f829cc..deb4275cb 100644 --- a/src/assert_fn/assert_fn_eq.rs +++ b/src/assert_fn/assert_fn_eq.rs @@ -255,14 +255,14 @@ macro_rules! assert_fn_eq { //// Arity 1 ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => {{ - match assert_fn_eq_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_eq_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => {{ - match assert_fn_eq_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_eq_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -271,14 +271,14 @@ macro_rules! assert_fn_eq { //// Arity 0 ($a_function:path, $b_function:path) => {{ - match assert_fn_eq_as_result!($a_function, $b_function) { + match $crate::assert_fn_eq_as_result!($a_function, $b_function) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_function:path, $($message:tt)+) => {{ - match assert_fn_eq_as_result!($a_function, $b_function) { + match $crate::assert_fn_eq_as_result!($a_function, $b_function) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn/assert_fn_eq_expr.rs b/src/assert_fn/assert_fn_eq_expr.rs index b6e719da4..8992c5adb 100644 --- a/src/assert_fn/assert_fn_eq_expr.rs +++ b/src/assert_fn/assert_fn_eq_expr.rs @@ -249,14 +249,14 @@ macro_rules! assert_fn_eq_expr { //// Arity 1 ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => {{ - match assert_fn_eq_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_eq_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_eq_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_eq_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -265,14 +265,14 @@ macro_rules! assert_fn_eq_expr { //// Arity 0 ($a_function:path, $b_expr:expr $(,)?) => {{ - match assert_fn_eq_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_eq_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_eq_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_eq_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn/assert_fn_ge.rs b/src/assert_fn/assert_fn_ge.rs index d8329f553..59d41ad2f 100644 --- a/src/assert_fn/assert_fn_ge.rs +++ b/src/assert_fn/assert_fn_ge.rs @@ -269,14 +269,14 @@ macro_rules! assert_fn_ge { //// Arity 1 ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => {{ - match assert_fn_ge_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_ge_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => {{ - match assert_fn_ge_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_ge_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -285,14 +285,14 @@ macro_rules! assert_fn_ge { //// Arity 0 ($a_function:path, $b_function:path $(,)?) => {{ - match assert_fn_ge_as_result!($a_function, $b_function) { + match $crate::assert_fn_ge_as_result!($a_function, $b_function) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_function:path, $($message:tt)+) => {{ - match assert_fn_ge_as_result!($a_function, $b_function) { + match $crate::assert_fn_ge_as_result!($a_function, $b_function) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn/assert_fn_ge_expr.rs b/src/assert_fn/assert_fn_ge_expr.rs index d77c850f3..aacbb1954 100644 --- a/src/assert_fn/assert_fn_ge_expr.rs +++ b/src/assert_fn/assert_fn_ge_expr.rs @@ -268,14 +268,14 @@ macro_rules! assert_fn_ge_expr { //// Arity 1 ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => {{ - match assert_fn_ge_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_ge_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_ge_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_ge_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -284,14 +284,14 @@ macro_rules! assert_fn_ge_expr { //// Arity 0 ($a_function:path, $b_expr:expr $(,)?) => {{ - match assert_fn_ge_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_ge_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_ge_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_ge_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn/assert_fn_gt.rs b/src/assert_fn/assert_fn_gt.rs index d9d137b00..0aa3e5783 100644 --- a/src/assert_fn/assert_fn_gt.rs +++ b/src/assert_fn/assert_fn_gt.rs @@ -295,14 +295,14 @@ macro_rules! assert_fn_gt { //// Arity 1 ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => {{ - match assert_fn_gt_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_gt_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => {{ - match assert_fn_gt_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_gt_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -311,14 +311,14 @@ macro_rules! assert_fn_gt { //// Arity 0 ($a_function:path, $b_function:path) => {{ - match assert_fn_gt_as_result!($a_function, $b_function) { + match $crate::assert_fn_gt_as_result!($a_function, $b_function) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_function:path, $($message:tt)+) => {{ - match assert_fn_gt_as_result!($a_function, $b_function) { + match $crate::assert_fn_gt_as_result!($a_function, $b_function) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn/assert_fn_gt_expr.rs b/src/assert_fn/assert_fn_gt_expr.rs index 10241c98c..bd6749263 100644 --- a/src/assert_fn/assert_fn_gt_expr.rs +++ b/src/assert_fn/assert_fn_gt_expr.rs @@ -290,14 +290,14 @@ macro_rules! assert_fn_gt_expr { //// Arity 1 ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => {{ - match assert_fn_gt_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_gt_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_gt_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_gt_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -306,14 +306,14 @@ macro_rules! assert_fn_gt_expr { //// Arity 0 ($a_function:path, $b_expr:expr $(,)?) => {{ - match assert_fn_gt_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_gt_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_gt_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_gt_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn/assert_fn_le.rs b/src/assert_fn/assert_fn_le.rs index 6a67c6bdc..9a384c784 100644 --- a/src/assert_fn/assert_fn_le.rs +++ b/src/assert_fn/assert_fn_le.rs @@ -271,14 +271,14 @@ macro_rules! assert_fn_le { //// Arity 1 ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => {{ - match assert_fn_le_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_le_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => {{ - match assert_fn_le_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_le_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -287,14 +287,14 @@ macro_rules! assert_fn_le { //// Arity 0 ($a_function:path, $b_function:path) => {{ - match assert_fn_le_as_result!($a_function, $b_function) { + match $crate::assert_fn_le_as_result!($a_function, $b_function) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_function:path, $($message:tt)+) => {{ - match assert_fn_le_as_result!($a_function, $b_function) { + match $crate::assert_fn_le_as_result!($a_function, $b_function) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn/assert_fn_le_expr.rs b/src/assert_fn/assert_fn_le_expr.rs index e1c2b1118..88d73bc66 100644 --- a/src/assert_fn/assert_fn_le_expr.rs +++ b/src/assert_fn/assert_fn_le_expr.rs @@ -267,14 +267,14 @@ macro_rules! assert_fn_le_expr { //// Arity 1 ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => {{ - match assert_fn_le_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_le_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_le_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_le_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -283,14 +283,14 @@ macro_rules! assert_fn_le_expr { //// Arity 0 ($a_function:path, $b_expr:expr $(,)?) => {{ - match assert_fn_le_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_le_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_le_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_le_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn/assert_fn_lt.rs b/src/assert_fn/assert_fn_lt.rs index ba91f3a18..eb363103e 100644 --- a/src/assert_fn/assert_fn_lt.rs +++ b/src/assert_fn/assert_fn_lt.rs @@ -295,14 +295,14 @@ macro_rules! assert_fn_lt { //// Arity 1 ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => {{ - match assert_fn_lt_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_lt_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => {{ - match assert_fn_lt_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_lt_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -311,14 +311,14 @@ macro_rules! assert_fn_lt { //// Arity 0 ($a_function:path, $b_function:path) => {{ - match assert_fn_lt_as_result!($a_function, $b_function) { + match $crate::assert_fn_lt_as_result!($a_function, $b_function) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_function:path, $($message:tt)+) => {{ - match assert_fn_lt_as_result!($a_function, $b_function) { + match $crate::assert_fn_lt_as_result!($a_function, $b_function) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn/assert_fn_lt_expr.rs b/src/assert_fn/assert_fn_lt_expr.rs index 0ce1aca50..898c124ba 100644 --- a/src/assert_fn/assert_fn_lt_expr.rs +++ b/src/assert_fn/assert_fn_lt_expr.rs @@ -290,14 +290,14 @@ macro_rules! assert_fn_lt_expr { //// Arity 1 ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => {{ - match assert_fn_lt_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_lt_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_lt_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_lt_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -306,14 +306,14 @@ macro_rules! assert_fn_lt_expr { //// Arity 0 ($a_function:path, $b_expr:expr $(,)?) => {{ - match assert_fn_lt_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_lt_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_lt_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_lt_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn/assert_fn_ne.rs b/src/assert_fn/assert_fn_ne.rs index 0b7d47451..ccb136a1f 100644 --- a/src/assert_fn/assert_fn_ne.rs +++ b/src/assert_fn/assert_fn_ne.rs @@ -255,14 +255,14 @@ macro_rules! assert_fn_ne { //// Arity 1 ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => {{ - match assert_fn_ne_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_ne_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => {{ - match assert_fn_ne_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_ne_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -271,14 +271,14 @@ macro_rules! assert_fn_ne { //// Arity 0 ($a_function:path, $b_function:path) => {{ - match assert_fn_ne_as_result!($a_function, $b_function) { + match $crate::assert_fn_ne_as_result!($a_function, $b_function) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_function:path, $($message:tt)+) => {{ - match assert_fn_ne_as_result!($a_function, $b_function) { + match $crate::assert_fn_ne_as_result!($a_function, $b_function) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn/assert_fn_ne_expr.rs b/src/assert_fn/assert_fn_ne_expr.rs index ce6778370..e495ded13 100644 --- a/src/assert_fn/assert_fn_ne_expr.rs +++ b/src/assert_fn/assert_fn_ne_expr.rs @@ -247,14 +247,14 @@ macro_rules! assert_fn_ne_expr { //// Arity 1 ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => {{ - match assert_fn_ne_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_ne_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_ne_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_ne_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -263,14 +263,14 @@ macro_rules! assert_fn_ne_expr { //// Arity 0 ($a_function:path, $b_expr:expr $(,)?) => {{ - match assert_fn_ne_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_ne_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_ne_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_ne_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_err/assert_fn_err_eq.rs b/src/assert_fn_err/assert_fn_err_eq.rs index 0c505fe6a..be16ba9d4 100644 --- a/src/assert_fn_err/assert_fn_err_eq.rs +++ b/src/assert_fn_err/assert_fn_err_eq.rs @@ -319,14 +319,14 @@ macro_rules! assert_fn_err_eq { //// Arity 1 ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => {{ - match assert_fn_err_eq_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_err_eq_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => {{ - match assert_fn_err_eq_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_err_eq_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -335,14 +335,14 @@ macro_rules! assert_fn_err_eq { //// Arity 0 ($a_function:path, $b_function:path) => {{ - match assert_fn_err_eq_as_result!($a_function, $b_function) { + match $crate::assert_fn_err_eq_as_result!($a_function, $b_function) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_function:path, $($message:tt)+) => {{ - match assert_fn_err_eq_as_result!($a_function, $b_function) { + match $crate::assert_fn_err_eq_as_result!($a_function, $b_function) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_err/assert_fn_err_eq_expr.rs b/src/assert_fn_err/assert_fn_err_eq_expr.rs index a3ee53f3b..79deece62 100644 --- a/src/assert_fn_err/assert_fn_err_eq_expr.rs +++ b/src/assert_fn_err/assert_fn_err_eq_expr.rs @@ -298,14 +298,14 @@ macro_rules! assert_fn_err_eq_expr { //// Arity 1 ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => {{ - match assert_fn_err_eq_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_err_eq_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_err_eq_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_err_eq_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -314,14 +314,14 @@ macro_rules! assert_fn_err_eq_expr { //// Arity 0 ($a_function:path, $b_expr:expr $(,)?) => {{ - match assert_fn_err_eq_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_err_eq_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_err_eq_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_err_eq_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_err/assert_fn_err_ge.rs b/src/assert_fn_err/assert_fn_err_ge.rs index 986c8a8e0..725037324 100644 --- a/src/assert_fn_err/assert_fn_err_ge.rs +++ b/src/assert_fn_err/assert_fn_err_ge.rs @@ -333,14 +333,14 @@ macro_rules! assert_fn_err_ge { //// Arity 1 ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => {{ - match assert_fn_err_ge_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_err_ge_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => {{ - match assert_fn_err_ge_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_err_ge_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -349,14 +349,14 @@ macro_rules! assert_fn_err_ge { //// Arity 0 ($a_function:path, $b_function:path) => {{ - match assert_fn_err_ge_as_result!($a_function, $b_function) { + match $crate::assert_fn_err_ge_as_result!($a_function, $b_function) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_function:path, $($message:tt)+) => {{ - match assert_fn_err_ge_as_result!($a_function, $b_function) { + match $crate::assert_fn_err_ge_as_result!($a_function, $b_function) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_err/assert_fn_err_ge_expr.rs b/src/assert_fn_err/assert_fn_err_ge_expr.rs index ee488c349..fc661dc99 100644 --- a/src/assert_fn_err/assert_fn_err_ge_expr.rs +++ b/src/assert_fn_err/assert_fn_err_ge_expr.rs @@ -320,14 +320,14 @@ macro_rules! assert_fn_err_ge_expr { //// Arity 1 ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => {{ - match assert_fn_err_ge_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_err_ge_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_err_ge_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_err_ge_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -336,14 +336,14 @@ macro_rules! assert_fn_err_ge_expr { //// Arity 0 ($a_function:path, $b_expr:expr $(,)?) => {{ - match assert_fn_err_ge_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_err_ge_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_err_ge_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_err_ge_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_err/assert_fn_err_gt.rs b/src/assert_fn_err/assert_fn_err_gt.rs index f7d0a68cc..3c5240636 100644 --- a/src/assert_fn_err/assert_fn_err_gt.rs +++ b/src/assert_fn_err/assert_fn_err_gt.rs @@ -359,14 +359,14 @@ macro_rules! assert_fn_err_gt { //// Arity 1 ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => {{ - match assert_fn_err_gt_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_err_gt_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => {{ - match assert_fn_err_gt_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_err_gt_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -375,14 +375,14 @@ macro_rules! assert_fn_err_gt { //// Arity 0 ($a_function:path, $b_function:path) => {{ - match assert_fn_err_gt_as_result!($a_function, $b_function) { + match $crate::assert_fn_err_gt_as_result!($a_function, $b_function) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_function:path, $($message:tt)+) => {{ - match assert_fn_err_gt_as_result!($a_function, $b_function) { + match $crate::assert_fn_err_gt_as_result!($a_function, $b_function) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_err/assert_fn_err_gt_expr.rs b/src/assert_fn_err/assert_fn_err_gt_expr.rs index 7aa2f4a22..ef9f0194e 100644 --- a/src/assert_fn_err/assert_fn_err_gt_expr.rs +++ b/src/assert_fn_err/assert_fn_err_gt_expr.rs @@ -346,14 +346,14 @@ macro_rules! assert_fn_err_gt_expr { //// Arity 1 ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => {{ - match assert_fn_err_gt_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_err_gt_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_err_gt_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_err_gt_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -362,14 +362,14 @@ macro_rules! assert_fn_err_gt_expr { //// Arity 0 ($a_function:path, $b_expr:expr $(,)?) => {{ - match assert_fn_err_gt_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_err_gt_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_err_gt_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_err_gt_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_err/assert_fn_err_le.rs b/src/assert_fn_err/assert_fn_err_le.rs index bb30cdcc8..a8b58179f 100644 --- a/src/assert_fn_err/assert_fn_err_le.rs +++ b/src/assert_fn_err/assert_fn_err_le.rs @@ -333,14 +333,14 @@ macro_rules! assert_fn_err_le { //// Arity 1 ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => {{ - match assert_fn_err_le_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_err_le_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => {{ - match assert_fn_err_le_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_err_le_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -349,14 +349,14 @@ macro_rules! assert_fn_err_le { //// Arity 0 ($a_function:path, $b_function:path) => {{ - match assert_fn_err_le_as_result!($a_function, $b_function) { + match $crate::assert_fn_err_le_as_result!($a_function, $b_function) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_function:path, $($message:tt)+) => {{ - match assert_fn_err_le_as_result!($a_function, $b_function) { + match $crate::assert_fn_err_le_as_result!($a_function, $b_function) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_err/assert_fn_err_le_expr.rs b/src/assert_fn_err/assert_fn_err_le_expr.rs index d3e62bf20..1422befd6 100644 --- a/src/assert_fn_err/assert_fn_err_le_expr.rs +++ b/src/assert_fn_err/assert_fn_err_le_expr.rs @@ -320,14 +320,14 @@ macro_rules! assert_fn_err_le_expr { //// Arity 1 ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => {{ - match assert_fn_err_le_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_err_le_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_err_le_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_err_le_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -336,14 +336,14 @@ macro_rules! assert_fn_err_le_expr { //// Arity 0 ($a_function:path, $b_expr:expr $(,)?) => {{ - match assert_fn_err_le_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_err_le_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_err_le_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_err_le_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_err/assert_fn_err_lt.rs b/src/assert_fn_err/assert_fn_err_lt.rs index a16a55296..b38af5699 100644 --- a/src/assert_fn_err/assert_fn_err_lt.rs +++ b/src/assert_fn_err/assert_fn_err_lt.rs @@ -353,14 +353,14 @@ macro_rules! assert_fn_err_lt { //// Arity 1 ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => {{ - match assert_fn_err_lt_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_err_lt_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => {{ - match assert_fn_err_lt_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_err_lt_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -369,14 +369,14 @@ macro_rules! assert_fn_err_lt { //// Arity 0 ($a_function:path, $b_function:path) => {{ - match assert_fn_err_lt_as_result!($a_function, $b_function) { + match $crate::assert_fn_err_lt_as_result!($a_function, $b_function) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_function:path, $($message:tt)+) => {{ - match assert_fn_err_lt_as_result!($a_function, $b_function) { + match $crate::assert_fn_err_lt_as_result!($a_function, $b_function) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_err/assert_fn_err_lt_expr.rs b/src/assert_fn_err/assert_fn_err_lt_expr.rs index 4a1f227b3..ab397d890 100644 --- a/src/assert_fn_err/assert_fn_err_lt_expr.rs +++ b/src/assert_fn_err/assert_fn_err_lt_expr.rs @@ -346,14 +346,14 @@ macro_rules! assert_fn_err_lt_expr { //// Arity 1 ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => {{ - match assert_fn_err_lt_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_err_lt_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_err_lt_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_err_lt_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -362,14 +362,14 @@ macro_rules! assert_fn_err_lt_expr { //// Arity 0 ($a_function:path, $b_expr:expr $(,)?) => {{ - match assert_fn_err_lt_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_err_lt_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_err_lt_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_err_lt_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_err/assert_fn_err_ne.rs b/src/assert_fn_err/assert_fn_err_ne.rs index a3b7b7f9a..89ef86e03 100644 --- a/src/assert_fn_err/assert_fn_err_ne.rs +++ b/src/assert_fn_err/assert_fn_err_ne.rs @@ -319,14 +319,14 @@ macro_rules! assert_fn_err_ne { //// Arity 1 ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => {{ - match assert_fn_err_ne_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_err_ne_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => {{ - match assert_fn_err_ne_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_err_ne_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -335,14 +335,14 @@ macro_rules! assert_fn_err_ne { //// Arity 0 ($a_function:path, $b_function:path) => {{ - match assert_fn_err_ne_as_result!($a_function, $b_function) { + match $crate::assert_fn_err_ne_as_result!($a_function, $b_function) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_function:path, $($message:tt)+) => {{ - match assert_fn_err_ne_as_result!($a_function, $b_function) { + match $crate::assert_fn_err_ne_as_result!($a_function, $b_function) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_err/assert_fn_err_ne_expr.rs b/src/assert_fn_err/assert_fn_err_ne_expr.rs index 235cd173c..462f79291 100644 --- a/src/assert_fn_err/assert_fn_err_ne_expr.rs +++ b/src/assert_fn_err/assert_fn_err_ne_expr.rs @@ -305,14 +305,14 @@ macro_rules! assert_fn_err_ne_expr { //// Arity 1 ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => {{ - match assert_fn_err_ne_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_err_ne_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_err_ne_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_err_ne_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -321,14 +321,14 @@ macro_rules! assert_fn_err_ne_expr { //// Arity 0 ($a_function:path, $b_expr:expr $(,)?) => {{ - match assert_fn_err_ne_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_err_ne_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_err_ne_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_err_ne_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_ok/assert_fn_ok_eq.rs b/src/assert_fn_ok/assert_fn_ok_eq.rs index fb7fb1f68..6e30ac79d 100644 --- a/src/assert_fn_ok/assert_fn_ok_eq.rs +++ b/src/assert_fn_ok/assert_fn_ok_eq.rs @@ -319,14 +319,14 @@ macro_rules! assert_fn_ok_eq { //// Arity 1 ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => {{ - match assert_fn_ok_eq_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_ok_eq_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => {{ - match assert_fn_ok_eq_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_ok_eq_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -335,14 +335,14 @@ macro_rules! assert_fn_ok_eq { //// Arity 0 ($a_function:path, $b_function:path) => {{ - match assert_fn_ok_eq_as_result!($a_function, $b_function) { + match $crate::assert_fn_ok_eq_as_result!($a_function, $b_function) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_function:path, $($message:tt)+) => {{ - match assert_fn_ok_eq_as_result!($a_function, $b_function) { + match $crate::assert_fn_ok_eq_as_result!($a_function, $b_function) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_ok/assert_fn_ok_eq_expr.rs b/src/assert_fn_ok/assert_fn_ok_eq_expr.rs index b264b7d42..f4dce4832 100644 --- a/src/assert_fn_ok/assert_fn_ok_eq_expr.rs +++ b/src/assert_fn_ok/assert_fn_ok_eq_expr.rs @@ -305,14 +305,14 @@ macro_rules! assert_fn_ok_eq_expr { //// Arity 1 ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => {{ - match assert_fn_ok_eq_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_ok_eq_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_ok_eq_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_ok_eq_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -321,14 +321,14 @@ macro_rules! assert_fn_ok_eq_expr { //// Arity 0 ($a_function:path, $b_expr:expr $(,)?) => {{ - match assert_fn_ok_eq_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_ok_eq_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_ok_eq_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_ok_eq_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_ok/assert_fn_ok_ge.rs b/src/assert_fn_ok/assert_fn_ok_ge.rs index e020dec5e..dd75660e7 100644 --- a/src/assert_fn_ok/assert_fn_ok_ge.rs +++ b/src/assert_fn_ok/assert_fn_ok_ge.rs @@ -333,14 +333,14 @@ macro_rules! assert_fn_ok_ge { //// Arity 1 ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => {{ - match assert_fn_ok_ge_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_ok_ge_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => {{ - match assert_fn_ok_ge_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_ok_ge_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -349,14 +349,14 @@ macro_rules! assert_fn_ok_ge { //// Arity 0 ($a_function:path, $b_function:path) => {{ - match assert_fn_ok_ge_as_result!($a_function, $b_function) { + match $crate::assert_fn_ok_ge_as_result!($a_function, $b_function) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_function:path, $($message:tt)+) => {{ - match assert_fn_ok_ge_as_result!($a_function, $b_function) { + match $crate::assert_fn_ok_ge_as_result!($a_function, $b_function) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_ok/assert_fn_ok_ge_expr.rs b/src/assert_fn_ok/assert_fn_ok_ge_expr.rs index 4966f1b1b..a6689cc04 100644 --- a/src/assert_fn_ok/assert_fn_ok_ge_expr.rs +++ b/src/assert_fn_ok/assert_fn_ok_ge_expr.rs @@ -320,14 +320,14 @@ macro_rules! assert_fn_ok_ge_expr { //// Arity 1 ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => {{ - match assert_fn_ok_ge_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_ok_ge_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_ok_ge_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_ok_ge_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -336,14 +336,14 @@ macro_rules! assert_fn_ok_ge_expr { //// Arity 0 ($a_function:path, $b_expr:expr $(,)?) => {{ - match assert_fn_ok_ge_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_ok_ge_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_ok_ge_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_ok_ge_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_ok/assert_fn_ok_gt.rs b/src/assert_fn_ok/assert_fn_ok_gt.rs index bee9fd221..bdd0190fb 100644 --- a/src/assert_fn_ok/assert_fn_ok_gt.rs +++ b/src/assert_fn_ok/assert_fn_ok_gt.rs @@ -359,14 +359,14 @@ macro_rules! assert_fn_ok_gt { //// Arity 1 ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => {{ - match assert_fn_ok_gt_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_ok_gt_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => {{ - match assert_fn_ok_gt_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_ok_gt_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -375,14 +375,14 @@ macro_rules! assert_fn_ok_gt { //// Arity 0 ($a_function:path, $b_function:path) => {{ - match assert_fn_ok_gt_as_result!($a_function, $b_function) { + match $crate::assert_fn_ok_gt_as_result!($a_function, $b_function) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_function:path, $($message:tt)+) => {{ - match assert_fn_ok_gt_as_result!($a_function, $b_function) { + match $crate::assert_fn_ok_gt_as_result!($a_function, $b_function) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_ok/assert_fn_ok_gt_expr.rs b/src/assert_fn_ok/assert_fn_ok_gt_expr.rs index d8b7f14e1..18b27f6c6 100644 --- a/src/assert_fn_ok/assert_fn_ok_gt_expr.rs +++ b/src/assert_fn_ok/assert_fn_ok_gt_expr.rs @@ -346,14 +346,14 @@ macro_rules! assert_fn_ok_gt_expr { //// Arity 1 ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => {{ - match assert_fn_ok_gt_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_ok_gt_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_ok_gt_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_ok_gt_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -362,14 +362,14 @@ macro_rules! assert_fn_ok_gt_expr { //// Arity 0 ($a_function:path, $b_expr:expr $(,)?) => {{ - match assert_fn_ok_gt_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_ok_gt_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_ok_gt_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_ok_gt_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_ok/assert_fn_ok_le.rs b/src/assert_fn_ok/assert_fn_ok_le.rs index 54dff3856..d21a4520d 100644 --- a/src/assert_fn_ok/assert_fn_ok_le.rs +++ b/src/assert_fn_ok/assert_fn_ok_le.rs @@ -333,14 +333,14 @@ macro_rules! assert_fn_ok_le { //// Arity 1 ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => {{ - match assert_fn_ok_le_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_ok_le_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => {{ - match assert_fn_ok_le_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_ok_le_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -349,14 +349,14 @@ macro_rules! assert_fn_ok_le { //// Arity 0 ($a_function:path, $b_function:path) => {{ - match assert_fn_ok_le_as_result!($a_function, $b_function) { + match $crate::assert_fn_ok_le_as_result!($a_function, $b_function) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_function:path, $($message:tt)+) => {{ - match assert_fn_ok_le_as_result!($a_function, $b_function) { + match $crate::assert_fn_ok_le_as_result!($a_function, $b_function) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_ok/assert_fn_ok_le_expr.rs b/src/assert_fn_ok/assert_fn_ok_le_expr.rs index 0e73db063..6a134cd19 100644 --- a/src/assert_fn_ok/assert_fn_ok_le_expr.rs +++ b/src/assert_fn_ok/assert_fn_ok_le_expr.rs @@ -321,14 +321,14 @@ macro_rules! assert_fn_ok_le_expr { //// Arity 1 ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => {{ - match assert_fn_ok_le_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_ok_le_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_ok_le_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_ok_le_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -337,14 +337,14 @@ macro_rules! assert_fn_ok_le_expr { //// Arity 0 ($a_function:path, $b_expr:expr $(,)?) => {{ - match assert_fn_ok_le_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_ok_le_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_ok_le_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_ok_le_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_ok/assert_fn_ok_lt.rs b/src/assert_fn_ok/assert_fn_ok_lt.rs index 3d73f415f..aa7ae63a0 100644 --- a/src/assert_fn_ok/assert_fn_ok_lt.rs +++ b/src/assert_fn_ok/assert_fn_ok_lt.rs @@ -357,14 +357,14 @@ macro_rules! assert_fn_ok_lt { //// Arity 1 ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => {{ - match assert_fn_ok_lt_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_ok_lt_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => {{ - match assert_fn_ok_lt_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_ok_lt_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -373,14 +373,14 @@ macro_rules! assert_fn_ok_lt { //// Arity 0 ($a_function:path, $b_function:path) => {{ - match assert_fn_ok_lt_as_result!($a_function, $b_function) { + match $crate::assert_fn_ok_lt_as_result!($a_function, $b_function) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_function:path, $($message:tt)+) => {{ - match assert_fn_ok_lt_as_result!($a_function, $b_function) { + match $crate::assert_fn_ok_lt_as_result!($a_function, $b_function) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_ok/assert_fn_ok_lt_expr.rs b/src/assert_fn_ok/assert_fn_ok_lt_expr.rs index cb4f06a51..537a7ddc2 100644 --- a/src/assert_fn_ok/assert_fn_ok_lt_expr.rs +++ b/src/assert_fn_ok/assert_fn_ok_lt_expr.rs @@ -307,14 +307,14 @@ macro_rules! assert_fn_ok_lt_expr { //// Arity 1 ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => {{ - match assert_fn_ok_lt_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_ok_lt_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_ok_lt_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_ok_lt_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -323,14 +323,14 @@ macro_rules! assert_fn_ok_lt_expr { //// Arity 0 ($a_function:path, $b_expr:expr $(,)?) => {{ - match assert_fn_ok_lt_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_ok_lt_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_ok_lt_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_ok_lt_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_ok/assert_fn_ok_ne.rs b/src/assert_fn_ok/assert_fn_ok_ne.rs index 71ff6dcdb..69629ee21 100644 --- a/src/assert_fn_ok/assert_fn_ok_ne.rs +++ b/src/assert_fn_ok/assert_fn_ok_ne.rs @@ -319,14 +319,14 @@ macro_rules! assert_fn_ok_ne { //// Arity 1 ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => {{ - match assert_fn_ok_ne_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_ok_ne_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => {{ - match assert_fn_ok_ne_as_result!($a_function, $a_param, $b_function, $b_param) { + match $crate::assert_fn_ok_ne_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -335,14 +335,14 @@ macro_rules! assert_fn_ok_ne { //// Arity 0 ($a_function:path, $b_function:path) => {{ - match assert_fn_ok_ne_as_result!($a_function, $b_function) { + match $crate::assert_fn_ok_ne_as_result!($a_function, $b_function) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_function:path, $($message:tt)+) => {{ - match assert_fn_ok_ne_as_result!($a_function, $b_function) { + match $crate::assert_fn_ok_ne_as_result!($a_function, $b_function) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_ok/assert_fn_ok_ne_expr.rs b/src/assert_fn_ok/assert_fn_ok_ne_expr.rs index ed0d4ff4a..385423ae1 100644 --- a/src/assert_fn_ok/assert_fn_ok_ne_expr.rs +++ b/src/assert_fn_ok/assert_fn_ok_ne_expr.rs @@ -305,14 +305,14 @@ macro_rules! assert_fn_ok_ne_expr { //// Arity 1 ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => {{ - match assert_fn_ok_ne_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_ok_ne_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_ok_ne_expr_as_result!($a_function, $a_param, $b_expr) { + match $crate::assert_fn_ok_ne_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -321,14 +321,14 @@ macro_rules! assert_fn_ok_ne_expr { //// Arity 0 ($a_function:path, $b_expr:expr $(,)?) => {{ - match assert_fn_ok_ne_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_ok_ne_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_function:path, $b_expr:expr, $($message:tt)+) => {{ - match assert_fn_ok_ne_expr_as_result!($a_function, $b_expr) { + match $crate::assert_fn_ok_ne_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fs_read_to_string/assert_fs_read_to_string_contains.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_contains.rs index e43bdfbca..55171326c 100644 --- a/src/assert_fs_read_to_string/assert_fs_read_to_string_contains.rs +++ b/src/assert_fs_read_to_string/assert_fs_read_to_string_contains.rs @@ -196,13 +196,13 @@ mod tests { #[macro_export] macro_rules! assert_fs_read_to_string_contains { ($path:expr, $containee:expr $(,)?) => {{ - match assert_fs_read_to_string_contains_as_result!($path, $containee) { + match $crate::assert_fs_read_to_string_contains_as_result!($path, $containee) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($path:expr, $containee:expr, $($message:tt)+) => {{ - match assert_fs_read_to_string_contains_as_result!($path, $containee) { + match $crate::assert_fs_read_to_string_contains_as_result!($path, $containee) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fs_read_to_string/assert_fs_read_to_string_eq.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_eq.rs index 1ea04cc61..8273143fb 100644 --- a/src/assert_fs_read_to_string/assert_fs_read_to_string_eq.rs +++ b/src/assert_fs_read_to_string/assert_fs_read_to_string_eq.rs @@ -205,13 +205,13 @@ mod tests { #[macro_export] macro_rules! assert_fs_read_to_string_eq { ($a_path:expr, $b_path:expr $(,)?) => {{ - match assert_fs_read_to_string_eq_as_result!($a_path, $b_path) { + match $crate::assert_fs_read_to_string_eq_as_result!($a_path, $b_path) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_path:expr, $b_path:expr, $($message:tt)+) => {{ - match assert_fs_read_to_string_eq_as_result!($a_path, $b_path) { + match $crate::assert_fs_read_to_string_eq_as_result!($a_path, $b_path) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fs_read_to_string/assert_fs_read_to_string_eq_expr.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_eq_expr.rs index 3b10d9919..ca0328f75 100644 --- a/src/assert_fs_read_to_string/assert_fs_read_to_string_eq_expr.rs +++ b/src/assert_fs_read_to_string/assert_fs_read_to_string_eq_expr.rs @@ -202,13 +202,13 @@ mod tests { #[macro_export] macro_rules! assert_fs_read_to_string_eq_expr { ($a_path:expr, $b_expr:expr $(,)?) => {{ - match assert_fs_read_to_string_eq_expr_as_result!($a_path, $b_expr) { + match $crate::assert_fs_read_to_string_eq_expr_as_result!($a_path, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_path:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fs_read_to_string_eq_expr_as_result!($a_path, $b_expr) { + match $crate::assert_fs_read_to_string_eq_expr_as_result!($a_path, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fs_read_to_string/assert_fs_read_to_string_ge.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_ge.rs index b95ae93c0..218f14f2e 100644 --- a/src/assert_fs_read_to_string/assert_fs_read_to_string_ge.rs +++ b/src/assert_fs_read_to_string/assert_fs_read_to_string_ge.rs @@ -205,13 +205,13 @@ mod tests { #[macro_export] macro_rules! assert_fs_read_to_string_ge { ($a_path:expr, $b_path:expr $(,)?) => {{ - match assert_fs_read_to_string_ge_as_result!($a_path, $b_path) { + match $crate::assert_fs_read_to_string_ge_as_result!($a_path, $b_path) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_path:expr, $b_path:expr, $($message:tt)+) => {{ - match assert_fs_read_to_string_ge_as_result!($a_path, $b_path) { + match $crate::assert_fs_read_to_string_ge_as_result!($a_path, $b_path) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fs_read_to_string/assert_fs_read_to_string_ge_expr.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_ge_expr.rs index 82dfc04df..0c1876a37 100644 --- a/src/assert_fs_read_to_string/assert_fs_read_to_string_ge_expr.rs +++ b/src/assert_fs_read_to_string/assert_fs_read_to_string_ge_expr.rs @@ -202,13 +202,13 @@ mod tests { #[macro_export] macro_rules! assert_fs_read_to_string_ge_expr { ($a_path:expr, $b_expr:expr $(,)?) => {{ - match assert_fs_read_to_string_ge_expr_as_result!($a_path, $b_expr) { + match $crate::assert_fs_read_to_string_ge_expr_as_result!($a_path, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_path:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fs_read_to_string_ge_expr_as_result!($a_path, $b_expr) { + match $crate::assert_fs_read_to_string_ge_expr_as_result!($a_path, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fs_read_to_string/assert_fs_read_to_string_gt.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_gt.rs index 04af208b7..250a6bf0d 100644 --- a/src/assert_fs_read_to_string/assert_fs_read_to_string_gt.rs +++ b/src/assert_fs_read_to_string/assert_fs_read_to_string_gt.rs @@ -205,13 +205,13 @@ mod tests { #[macro_export] macro_rules! assert_fs_read_to_string_gt { ($a_path:expr, $b_path:expr $(,)?) => {{ - match assert_fs_read_to_string_gt_as_result!($a_path, $b_path) { + match $crate::assert_fs_read_to_string_gt_as_result!($a_path, $b_path) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_path:expr, $b_path:expr, $($message:tt)+) => {{ - match assert_fs_read_to_string_gt_as_result!($a_path, $b_path) { + match $crate::assert_fs_read_to_string_gt_as_result!($a_path, $b_path) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fs_read_to_string/assert_fs_read_to_string_gt_expr.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_gt_expr.rs index 346d103f0..f82892703 100644 --- a/src/assert_fs_read_to_string/assert_fs_read_to_string_gt_expr.rs +++ b/src/assert_fs_read_to_string/assert_fs_read_to_string_gt_expr.rs @@ -202,13 +202,13 @@ mod tests { #[macro_export] macro_rules! assert_fs_read_to_string_gt_expr { ($a_path:expr, $b_expr:expr $(,)?) => {{ - match assert_fs_read_to_string_gt_expr_as_result!($a_path, $b_expr) { + match $crate::assert_fs_read_to_string_gt_expr_as_result!($a_path, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_path:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fs_read_to_string_gt_expr_as_result!($a_path, $b_expr) { + match $crate::assert_fs_read_to_string_gt_expr_as_result!($a_path, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fs_read_to_string/assert_fs_read_to_string_le.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_le.rs index bfefd0080..c9ba66022 100644 --- a/src/assert_fs_read_to_string/assert_fs_read_to_string_le.rs +++ b/src/assert_fs_read_to_string/assert_fs_read_to_string_le.rs @@ -205,13 +205,13 @@ mod tests { #[macro_export] macro_rules! assert_fs_read_to_string_le { ($a_path:expr, $b_path:expr $(,)?) => {{ - match assert_fs_read_to_string_le_as_result!($a_path, $b_path) { + match $crate::assert_fs_read_to_string_le_as_result!($a_path, $b_path) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_path:expr, $b_path:expr, $($message:tt)+) => {{ - match assert_fs_read_to_string_le_as_result!($a_path, $b_path) { + match $crate::assert_fs_read_to_string_le_as_result!($a_path, $b_path) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fs_read_to_string/assert_fs_read_to_string_le_expr.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_le_expr.rs index 059cbfb7e..dcf5bddc5 100644 --- a/src/assert_fs_read_to_string/assert_fs_read_to_string_le_expr.rs +++ b/src/assert_fs_read_to_string/assert_fs_read_to_string_le_expr.rs @@ -202,13 +202,13 @@ mod tests { #[macro_export] macro_rules! assert_fs_read_to_string_le_expr { ($a_path:expr, $b_expr:expr $(,)?) => {{ - match assert_fs_read_to_string_le_expr_as_result!($a_path, $b_expr) { + match $crate::assert_fs_read_to_string_le_expr_as_result!($a_path, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_path:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fs_read_to_string_le_expr_as_result!($a_path, $b_expr) { + match $crate::assert_fs_read_to_string_le_expr_as_result!($a_path, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fs_read_to_string/assert_fs_read_to_string_lt.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_lt.rs index 36ecca2a6..c70080d90 100644 --- a/src/assert_fs_read_to_string/assert_fs_read_to_string_lt.rs +++ b/src/assert_fs_read_to_string/assert_fs_read_to_string_lt.rs @@ -205,13 +205,13 @@ mod tests { #[macro_export] macro_rules! assert_fs_read_to_string_lt { ($a_path:expr, $b_path:expr $(,)?) => {{ - match assert_fs_read_to_string_lt_as_result!($a_path, $b_path) { + match $crate::assert_fs_read_to_string_lt_as_result!($a_path, $b_path) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_path:expr, $b_path:expr, $($message:tt)+) => {{ - match assert_fs_read_to_string_lt_as_result!($a_path, $b_path) { + match $crate::assert_fs_read_to_string_lt_as_result!($a_path, $b_path) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fs_read_to_string/assert_fs_read_to_string_lt_expr.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_lt_expr.rs index dc6ad83e7..2d9ccb1b8 100644 --- a/src/assert_fs_read_to_string/assert_fs_read_to_string_lt_expr.rs +++ b/src/assert_fs_read_to_string/assert_fs_read_to_string_lt_expr.rs @@ -202,13 +202,13 @@ mod tests { #[macro_export] macro_rules! assert_fs_read_to_string_lt_expr { ($a_path:expr, $b_expr:expr $(,)?) => {{ - match assert_fs_read_to_string_lt_expr_as_result!($a_path, $b_expr) { + match $crate::assert_fs_read_to_string_lt_expr_as_result!($a_path, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_path:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fs_read_to_string_lt_expr_as_result!($a_path, $b_expr) { + match $crate::assert_fs_read_to_string_lt_expr_as_result!($a_path, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fs_read_to_string/assert_fs_read_to_string_matches.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_matches.rs index cfd7ae699..d12661586 100644 --- a/src/assert_fs_read_to_string/assert_fs_read_to_string_matches.rs +++ b/src/assert_fs_read_to_string/assert_fs_read_to_string_matches.rs @@ -198,13 +198,13 @@ mod tests { #[macro_export] macro_rules! assert_fs_read_to_string_matches { ($path:expr, $matcher:expr $(,)?) => {{ - match assert_fs_read_to_string_matches_as_result!($path, $matcher) { + match $crate::assert_fs_read_to_string_matches_as_result!($path, $matcher) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($path:expr, $matcher:expr, $($message:tt)+) => {{ - match assert_fs_read_to_string_matches_as_result!($path, $matcher) { + match $crate::assert_fs_read_to_string_matches_as_result!($path, $matcher) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fs_read_to_string/assert_fs_read_to_string_ne.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_ne.rs index ee7e71d62..50b016068 100644 --- a/src/assert_fs_read_to_string/assert_fs_read_to_string_ne.rs +++ b/src/assert_fs_read_to_string/assert_fs_read_to_string_ne.rs @@ -205,13 +205,13 @@ mod tests { #[macro_export] macro_rules! assert_fs_read_to_string_ne { ($a_path:expr, $b_path:expr $(,)?) => {{ - match assert_fs_read_to_string_ne_as_result!($a_path, $b_path) { + match $crate::assert_fs_read_to_string_ne_as_result!($a_path, $b_path) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_path:expr, $b_path:expr, $($message:tt)+) => {{ - match assert_fs_read_to_string_ne_as_result!($a_path, $b_path) { + match $crate::assert_fs_read_to_string_ne_as_result!($a_path, $b_path) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fs_read_to_string/assert_fs_read_to_string_ne_expr.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_ne_expr.rs index 76f10b7fb..4d514e4d3 100644 --- a/src/assert_fs_read_to_string/assert_fs_read_to_string_ne_expr.rs +++ b/src/assert_fs_read_to_string/assert_fs_read_to_string_ne_expr.rs @@ -202,13 +202,13 @@ mod tests { #[macro_export] macro_rules! assert_fs_read_to_string_ne_expr { ($a_path:expr, $b_expr:expr $(,)?) => {{ - match assert_fs_read_to_string_ne_expr_as_result!($a_path, $b_expr) { + match $crate::assert_fs_read_to_string_ne_expr_as_result!($a_path, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_path:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_fs_read_to_string_ne_expr_as_result!($a_path, $b_expr) { + match $crate::assert_fs_read_to_string_ne_expr_as_result!($a_path, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_ge.rs b/src/assert_ge.rs index a12b9ee55..31dee9ad4 100644 --- a/src/assert_ge.rs +++ b/src/assert_ge.rs @@ -153,13 +153,13 @@ mod tests { #[macro_export] macro_rules! assert_ge { ($a:expr, $b:expr $(,)?) => {{ - match assert_ge_as_result!($a, $b) { + match $crate::assert_ge_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_ge_as_result!($a, $b) { + match $crate::assert_ge_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_gt.rs b/src/assert_gt.rs index 87dcf3521..de2630507 100644 --- a/src/assert_gt.rs +++ b/src/assert_gt.rs @@ -153,13 +153,13 @@ mod tests { #[macro_export] macro_rules! assert_gt { ($a:expr, $b:expr $(,)?) => {{ - match assert_gt_as_result!($a, $b) { + match $crate::assert_gt_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_gt_as_result!($a, $b) { + match $crate::assert_gt_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_in_delta.rs b/src/assert_in_delta.rs index 7b973f1cb..304b30634 100644 --- a/src/assert_in_delta.rs +++ b/src/assert_in_delta.rs @@ -242,13 +242,13 @@ mod tests { #[macro_export] macro_rules! assert_in_delta { ($a:expr, $b:expr, $delta:expr $(,)?) => {{ - match assert_in_delta_as_result!($a, $b, $delta) { + match $crate::assert_in_delta_as_result!($a, $b, $delta) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $delta:expr, $($message:tt)+) => {{ - match assert_in_delta_as_result!($a, $b, $delta) { + match $crate::assert_in_delta_as_result!($a, $b, $delta) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_in_epsilon.rs b/src/assert_in_epsilon.rs index 7eb3146e0..37d0dd5ac 100644 --- a/src/assert_in_epsilon.rs +++ b/src/assert_in_epsilon.rs @@ -249,13 +249,13 @@ mod tests { #[macro_export] macro_rules! assert_in_epsilon { ($a:expr, $b:expr, $epsilon:expr $(,)?) => {{ - match assert_in_epsilon_as_result!($a, $b, $epsilon) { + match $crate::assert_in_epsilon_as_result!($a, $b, $epsilon) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $epsilon:expr, $($message:tt)+) => {{ - match assert_in_epsilon_as_result!($a, $b, $epsilon) { + match $crate::assert_in_epsilon_as_result!($a, $b, $epsilon) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_infix.rs b/src/assert_infix.rs index bc267892f..30e862734 100644 --- a/src/assert_infix.rs +++ b/src/assert_infix.rs @@ -233,13 +233,13 @@ mod tests { #[macro_export] macro_rules! assert_infix { ($a:tt $infix:tt $b:tt) => {{ - match assert_infix_as_result!($a $infix $b) { + match $crate::assert_infix_as_result!($a $infix $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:tt $infix:tt $b:tt, $($message:tt)+) => {{ - match assert_infix_as_result!($a $infix $b) { + match $crate::assert_infix_as_result!($a $infix $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_io_read_to_string/assert_io_read_to_string_contains.rs b/src/assert_io_read_to_string/assert_io_read_to_string_contains.rs index 0d8a573b5..bd2b36c5d 100644 --- a/src/assert_io_read_to_string/assert_io_read_to_string_contains.rs +++ b/src/assert_io_read_to_string/assert_io_read_to_string_contains.rs @@ -186,13 +186,13 @@ mod tests { #[macro_export] macro_rules! assert_io_read_to_string_contains { ($reader:expr, $containee:expr $(,)?) => {{ - match assert_io_read_to_string_contains_as_result!($reader, $containee) { + match $crate::assert_io_read_to_string_contains_as_result!($reader, $containee) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_io_read_to_string_contains_as_result!($reader, $containee) { + match $crate::assert_io_read_to_string_contains_as_result!($reader, $containee) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_io_read_to_string/assert_io_read_to_string_eq.rs b/src/assert_io_read_to_string/assert_io_read_to_string_eq.rs index fef5a8dc5..3b3683d1c 100644 --- a/src/assert_io_read_to_string/assert_io_read_to_string_eq.rs +++ b/src/assert_io_read_to_string/assert_io_read_to_string_eq.rs @@ -192,13 +192,13 @@ mod tests { #[macro_export] macro_rules! assert_io_read_to_string_eq { ($a_reader:expr, $b:expr $(,)?) => {{ - match assert_io_read_to_string_eq_as_result!($a_reader, $b) { + match $crate::assert_io_read_to_string_eq_as_result!($a_reader, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_reader:expr, $b:expr, $($message:tt)+) => {{ - match assert_io_read_to_string_eq_as_result!($a_reader, $b) { + match $crate::assert_io_read_to_string_eq_as_result!($a_reader, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_io_read_to_string/assert_io_read_to_string_eq_expr.rs b/src/assert_io_read_to_string/assert_io_read_to_string_eq_expr.rs index 046bf55c5..26a550245 100644 --- a/src/assert_io_read_to_string/assert_io_read_to_string_eq_expr.rs +++ b/src/assert_io_read_to_string/assert_io_read_to_string_eq_expr.rs @@ -192,13 +192,13 @@ mod tests { #[macro_export] macro_rules! assert_io_read_to_string_eq_expr { ($a_reader:expr, $b_expr:expr $(,)?) => {{ - match assert_io_read_to_string_eq_expr_as_result!($a_reader, $b_expr) { + match $crate::assert_io_read_to_string_eq_expr_as_result!($a_reader, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_reader:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_io_read_to_string_eq_expr_as_result!($a_reader, $b_expr) { + match $crate::assert_io_read_to_string_eq_expr_as_result!($a_reader, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_io_read_to_string/assert_io_read_to_string_ge.rs b/src/assert_io_read_to_string/assert_io_read_to_string_ge.rs index 161839c02..36a14c326 100644 --- a/src/assert_io_read_to_string/assert_io_read_to_string_ge.rs +++ b/src/assert_io_read_to_string/assert_io_read_to_string_ge.rs @@ -192,13 +192,13 @@ mod tests { #[macro_export] macro_rules! assert_io_read_to_string_ge { ($a_reader:expr, $b:expr $(,)?) => {{ - match assert_io_read_to_string_ge_as_result!($a_reader, $b) { + match $crate::assert_io_read_to_string_ge_as_result!($a_reader, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_reader:expr, $b:expr, $($message:tt)+) => {{ - match assert_io_read_to_string_ge_as_result!($a_reader, $b) { + match $crate::assert_io_read_to_string_ge_as_result!($a_reader, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_io_read_to_string/assert_io_read_to_string_ge_expr.rs b/src/assert_io_read_to_string/assert_io_read_to_string_ge_expr.rs index 22088c883..bc51df666 100644 --- a/src/assert_io_read_to_string/assert_io_read_to_string_ge_expr.rs +++ b/src/assert_io_read_to_string/assert_io_read_to_string_ge_expr.rs @@ -192,13 +192,13 @@ mod tests { #[macro_export] macro_rules! assert_io_read_to_string_ge_expr { ($a_reader:expr, $b_expr:expr $(,)?) => {{ - match assert_io_read_to_string_ge_expr_as_result!($a_reader, $b_expr) { + match $crate::assert_io_read_to_string_ge_expr_as_result!($a_reader, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_reader:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_io_read_to_string_ge_expr_as_result!($a_reader, $b_expr) { + match $crate::assert_io_read_to_string_ge_expr_as_result!($a_reader, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_io_read_to_string/assert_io_read_to_string_gt.rs b/src/assert_io_read_to_string/assert_io_read_to_string_gt.rs index a060258e4..77745adf4 100644 --- a/src/assert_io_read_to_string/assert_io_read_to_string_gt.rs +++ b/src/assert_io_read_to_string/assert_io_read_to_string_gt.rs @@ -192,13 +192,13 @@ mod tests { #[macro_export] macro_rules! assert_io_read_to_string_gt { ($a_reader:expr, $b:expr $(,)?) => {{ - match assert_io_read_to_string_gt_as_result!($a_reader, $b) { + match $crate::assert_io_read_to_string_gt_as_result!($a_reader, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_reader:expr, $b:expr, $($message:tt)+) => {{ - match assert_io_read_to_string_gt_as_result!($a_reader, $b) { + match $crate::assert_io_read_to_string_gt_as_result!($a_reader, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_io_read_to_string/assert_io_read_to_string_gt_expr.rs b/src/assert_io_read_to_string/assert_io_read_to_string_gt_expr.rs index d01083c06..af0c68746 100644 --- a/src/assert_io_read_to_string/assert_io_read_to_string_gt_expr.rs +++ b/src/assert_io_read_to_string/assert_io_read_to_string_gt_expr.rs @@ -192,13 +192,13 @@ mod tests { #[macro_export] macro_rules! assert_io_read_to_string_gt_expr { ($a_reader:expr, $b_expr:expr $(,)?) => {{ - match assert_io_read_to_string_gt_expr_as_result!($a_reader, $b_expr) { + match $crate::assert_io_read_to_string_gt_expr_as_result!($a_reader, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_reader:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_io_read_to_string_gt_expr_as_result!($a_reader, $b_expr) { + match $crate::assert_io_read_to_string_gt_expr_as_result!($a_reader, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_io_read_to_string/assert_io_read_to_string_le.rs b/src/assert_io_read_to_string/assert_io_read_to_string_le.rs index 06505bd16..c11debb51 100644 --- a/src/assert_io_read_to_string/assert_io_read_to_string_le.rs +++ b/src/assert_io_read_to_string/assert_io_read_to_string_le.rs @@ -192,13 +192,13 @@ mod tests { #[macro_export] macro_rules! assert_io_read_to_string_le { ($a_reader:expr, $b:expr $(,)?) => {{ - match assert_io_read_to_string_le_as_result!($a_reader, $b) { + match $crate::assert_io_read_to_string_le_as_result!($a_reader, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_reader:expr, $b:expr, $($message:tt)+) => {{ - match assert_io_read_to_string_le_as_result!($a_reader, $b) { + match $crate::assert_io_read_to_string_le_as_result!($a_reader, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_io_read_to_string/assert_io_read_to_string_le_expr.rs b/src/assert_io_read_to_string/assert_io_read_to_string_le_expr.rs index 355cce8ca..a513a2166 100644 --- a/src/assert_io_read_to_string/assert_io_read_to_string_le_expr.rs +++ b/src/assert_io_read_to_string/assert_io_read_to_string_le_expr.rs @@ -192,13 +192,13 @@ mod tests { #[macro_export] macro_rules! assert_io_read_to_string_le_expr { ($a_reader:expr, $b_expr:expr $(,)?) => {{ - match assert_io_read_to_string_le_expr_as_result!($a_reader, $b_expr) { + match $crate::assert_io_read_to_string_le_expr_as_result!($a_reader, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_reader:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_io_read_to_string_le_expr_as_result!($a_reader, $b_expr) { + match $crate::assert_io_read_to_string_le_expr_as_result!($a_reader, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_io_read_to_string/assert_io_read_to_string_lt.rs b/src/assert_io_read_to_string/assert_io_read_to_string_lt.rs index 3413f9ba2..084a55233 100644 --- a/src/assert_io_read_to_string/assert_io_read_to_string_lt.rs +++ b/src/assert_io_read_to_string/assert_io_read_to_string_lt.rs @@ -192,13 +192,13 @@ mod tests { #[macro_export] macro_rules! assert_io_read_to_string_lt { ($a_reader:expr, $b:expr $(,)?) => {{ - match assert_io_read_to_string_lt_as_result!($a_reader, $b) { + match $crate::assert_io_read_to_string_lt_as_result!($a_reader, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_reader:expr, $b:expr, $($message:tt)+) => {{ - match assert_io_read_to_string_lt_as_result!($a_reader, $b) { + match $crate::assert_io_read_to_string_lt_as_result!($a_reader, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_io_read_to_string/assert_io_read_to_string_lt_expr.rs b/src/assert_io_read_to_string/assert_io_read_to_string_lt_expr.rs index 5c43eb914..999fc9c60 100644 --- a/src/assert_io_read_to_string/assert_io_read_to_string_lt_expr.rs +++ b/src/assert_io_read_to_string/assert_io_read_to_string_lt_expr.rs @@ -192,13 +192,13 @@ mod tests { #[macro_export] macro_rules! assert_io_read_to_string_lt_expr { ($a_reader:expr, $b_expr:expr $(,)?) => {{ - match assert_io_read_to_string_lt_expr_as_result!($a_reader, $b_expr) { + match $crate::assert_io_read_to_string_lt_expr_as_result!($a_reader, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_reader:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_io_read_to_string_lt_expr_as_result!($a_reader, $b_expr) { + match $crate::assert_io_read_to_string_lt_expr_as_result!($a_reader, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_io_read_to_string/assert_io_read_to_string_matches.rs b/src/assert_io_read_to_string/assert_io_read_to_string_matches.rs index fc12291b8..60c87c5a5 100644 --- a/src/assert_io_read_to_string/assert_io_read_to_string_matches.rs +++ b/src/assert_io_read_to_string/assert_io_read_to_string_matches.rs @@ -188,13 +188,13 @@ mod tests { #[macro_export] macro_rules! assert_io_read_to_string_matches { ($a_reader:expr, $b_matcher:expr $(,)?) => {{ - match assert_io_read_to_string_matches_as_result!($a_reader, $b_matcher) { + match $crate::assert_io_read_to_string_matches_as_result!($a_reader, $b_matcher) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_reader:expr, $b_matcher:expr, $($message:tt)+) => {{ - match assert_io_read_to_string_matches_as_result!($a_reader, $b_matcher) { + match $crate::assert_io_read_to_string_matches_as_result!($a_reader, $b_matcher) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_io_read_to_string/assert_io_read_to_string_ne.rs b/src/assert_io_read_to_string/assert_io_read_to_string_ne.rs index 54bd80159..a6da32857 100644 --- a/src/assert_io_read_to_string/assert_io_read_to_string_ne.rs +++ b/src/assert_io_read_to_string/assert_io_read_to_string_ne.rs @@ -192,13 +192,13 @@ mod tests { #[macro_export] macro_rules! assert_io_read_to_string_ne { ($a_reader:expr, $b:expr $(,)?) => {{ - match assert_io_read_to_string_ne_as_result!($a_reader, $b) { + match $crate::assert_io_read_to_string_ne_as_result!($a_reader, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_reader:expr, $b:expr, $($message:tt)+) => {{ - match assert_io_read_to_string_ne_as_result!($a_reader, $b) { + match $crate::assert_io_read_to_string_ne_as_result!($a_reader, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_io_read_to_string/assert_io_read_to_string_ne_expr.rs b/src/assert_io_read_to_string/assert_io_read_to_string_ne_expr.rs index 1dff12c8b..1ba4f91de 100644 --- a/src/assert_io_read_to_string/assert_io_read_to_string_ne_expr.rs +++ b/src/assert_io_read_to_string/assert_io_read_to_string_ne_expr.rs @@ -192,13 +192,13 @@ mod tests { #[macro_export] macro_rules! assert_io_read_to_string_ne_expr { ($a_reader:expr, $b_expr:expr $(,)?) => {{ - match assert_io_read_to_string_ne_expr_as_result!($a_reader, $b_expr) { + match $crate::assert_io_read_to_string_ne_expr_as_result!($a_reader, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_reader:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_io_read_to_string_ne_expr_as_result!($a_reader, $b_expr) { + match $crate::assert_io_read_to_string_ne_expr_as_result!($a_reader, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_is_match.rs b/src/assert_is_match.rs index c9a7bc38d..07a5a6b59 100644 --- a/src/assert_is_match.rs +++ b/src/assert_is_match.rs @@ -159,13 +159,13 @@ mod tests { #[macro_export] macro_rules! assert_is_match { ($matcher:expr, $matchee:expr $(,)?) => {{ - match assert_is_match_as_result!($matcher, $matchee) { + match $crate::assert_is_match_as_result!($matcher, $matchee) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($matcher:expr, $matchee:expr, $($message:tt)+) => {{ - match assert_is_match_as_result!($matcher, $matchee) { + match $crate::assert_is_match_as_result!($matcher, $matchee) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_le.rs b/src/assert_le.rs index 1b0f5a9ec..5258de061 100644 --- a/src/assert_le.rs +++ b/src/assert_le.rs @@ -153,13 +153,13 @@ mod tests { #[macro_export] macro_rules! assert_le { ($a:expr, $b:expr $(,)?) => {{ - match assert_le_as_result!($a, $b) { + match $crate::assert_le_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_le_as_result!($a, $b) { + match $crate::assert_le_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_lt.rs b/src/assert_lt.rs index bdbd7f0d9..f75cd3556 100644 --- a/src/assert_lt.rs +++ b/src/assert_lt.rs @@ -154,13 +154,13 @@ mod test_assert_x_result { #[macro_export] macro_rules! assert_lt { ($a:expr, $b:expr $(,)?) => {{ - match assert_lt_as_result!($a, $b) { + match $crate::assert_lt_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_lt_as_result!($a, $b) { + match $crate::assert_lt_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_none.rs b/src/assert_none.rs index 855f23f28..7b5ba80c5 100644 --- a/src/assert_none.rs +++ b/src/assert_none.rs @@ -141,13 +141,13 @@ mod tests { #[macro_export] macro_rules! assert_none { ($a:expr $(,)?) => {{ - match assert_none_as_result!($a) { + match $crate::assert_none_as_result!($a) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $($message:tt)+) => {{ - match assert_none_as_result!($a) { + match $crate::assert_none_as_result!($a) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_not_contains.rs b/src/assert_not_contains.rs index e14c2035d..dc85a57b1 100644 --- a/src/assert_not_contains.rs +++ b/src/assert_not_contains.rs @@ -194,13 +194,13 @@ mod tests { #[macro_export] macro_rules! assert_not_contains { ($container:expr, $containee:expr $(,)?) => {{ - match assert_not_contains_as_result!($container, $containee) { + match $crate::assert_not_contains_as_result!($container, $containee) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($container:expr, $containee:expr, $($message:tt)+) => {{ - match assert_not_contains_as_result!($container, $containee) { + match $crate::assert_not_contains_as_result!($container, $containee) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_not_ends_with.rs b/src/assert_not_ends_with.rs index ee49bac69..ffef6994b 100644 --- a/src/assert_not_ends_with.rs +++ b/src/assert_not_ends_with.rs @@ -151,13 +151,13 @@ mod tests { #[macro_export] macro_rules! assert_not_ends_with { ($a:expr, $b:expr $(,)?) => {{ - match assert_not_ends_with_as_result!($a, $b) { + match $crate::assert_not_ends_with_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_not_ends_with_as_result!($a, $b) { + match $crate::assert_not_ends_with_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_not_match.rs b/src/assert_not_match.rs index 2aae37afb..485951dfb 100644 --- a/src/assert_not_match.rs +++ b/src/assert_not_match.rs @@ -159,13 +159,13 @@ mod tests { #[macro_export] macro_rules! assert_not_match { ($matcher:expr, $matchee:expr $(,)?) => {{ - match assert_not_match_as_result!($matcher, $matchee) { + match $crate::assert_not_match_as_result!($matcher, $matchee) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($matcher:expr, $matchee:expr, $($message:tt)+) => {{ - match assert_not_match_as_result!($matcher, $matchee) { + match $crate::assert_not_match_as_result!($matcher, $matchee) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_not_starts_with.rs b/src/assert_not_starts_with.rs index d9b9fd51b..2131abc5b 100644 --- a/src/assert_not_starts_with.rs +++ b/src/assert_not_starts_with.rs @@ -151,13 +151,13 @@ mod tests { #[macro_export] macro_rules! assert_not_starts_with { ($a:expr, $b:expr $(,)?) => {{ - match assert_not_starts_with_as_result!($a, $b) { + match $crate::assert_not_starts_with_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_not_starts_with_as_result!($a, $b) { + match $crate::assert_not_starts_with_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_ok.rs b/src/assert_ok.rs index 0e4c56518..2bd8712e9 100644 --- a/src/assert_ok.rs +++ b/src/assert_ok.rs @@ -141,13 +141,13 @@ mod tests { #[macro_export] macro_rules! assert_ok { ($a:expr $(,)?) => {{ - match assert_ok_as_result!($a) { + match $crate::assert_ok_as_result!($a) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $($message:tt)+) => {{ - match assert_ok_as_result!($a) { + match $crate::assert_ok_as_result!($a) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_ok_eq.rs b/src/assert_ok_eq.rs index 3c73fe5a0..87f40d9ac 100644 --- a/src/assert_ok_eq.rs +++ b/src/assert_ok_eq.rs @@ -203,13 +203,13 @@ mod tests { #[macro_export] macro_rules! assert_ok_eq { ($a:expr, $b:expr $(,)?) => {{ - match assert_ok_eq_as_result!($a, $b) { + match $crate::assert_ok_eq_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_ok_eq_as_result!($a, $b) { + match $crate::assert_ok_eq_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_ok_eq_expr.rs b/src/assert_ok_eq_expr.rs index bc9062f75..74001374e 100644 --- a/src/assert_ok_eq_expr.rs +++ b/src/assert_ok_eq_expr.rs @@ -198,13 +198,13 @@ mod tests { #[macro_export] macro_rules! assert_ok_eq_expr { ($a:expr, $b:expr $(,)?) => {{ - match assert_ok_eq_expr_as_result!($a, $b) { + match $crate::assert_ok_eq_expr_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_ok_eq_expr_as_result!($a, $b) { + match $crate::assert_ok_eq_expr_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_ok_ne.rs b/src/assert_ok_ne.rs index 25a6ffe4d..ef124a03b 100644 --- a/src/assert_ok_ne.rs +++ b/src/assert_ok_ne.rs @@ -203,13 +203,13 @@ mod tests { #[macro_export] macro_rules! assert_ok_ne { ($a:expr, $b:expr $(,)?) => {{ - match assert_ok_ne_as_result!($a, $b) { + match $crate::assert_ok_ne_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_ok_ne_as_result!($a, $b) { + match $crate::assert_ok_ne_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_ok_ne_expr.rs b/src/assert_ok_ne_expr.rs index e94ab7728..50817806c 100644 --- a/src/assert_ok_ne_expr.rs +++ b/src/assert_ok_ne_expr.rs @@ -198,13 +198,13 @@ mod tests { #[macro_export] macro_rules! assert_ok_ne_expr { ($a:expr, $b:expr $(,)?) => {{ - match assert_ok_ne_expr_as_result!($a, $b) { + match $crate::assert_ok_ne_expr_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_ok_ne_expr_as_result!($a, $b) { + match $crate::assert_ok_ne_expr_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_option/assert_option_none.rs b/src/assert_option/assert_option_none.rs index e389102a5..404799eb3 100644 --- a/src/assert_option/assert_option_none.rs +++ b/src/assert_option/assert_option_none.rs @@ -134,13 +134,13 @@ mod tests { #[macro_export] macro_rules! assert_option_none { ($a:expr $(,)?) => {{ - match assert_option_none_as_result!($a) { + match $crate::assert_option_none_as_result!($a) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $($message:tt)+) => {{ - match assert_option_none_as_result!($a) { + match $crate::assert_option_none_as_result!($a) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_option/assert_option_some.rs b/src/assert_option/assert_option_some.rs index 64da7b28c..0b6435657 100644 --- a/src/assert_option/assert_option_some.rs +++ b/src/assert_option/assert_option_some.rs @@ -134,13 +134,13 @@ mod tests { #[macro_export] macro_rules! assert_option_some { ($a:expr $(,)?) => {{ - match assert_option_some_as_result!($a) { + match $crate::assert_option_some_as_result!($a) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $($message:tt)+) => {{ - match assert_option_some_as_result!($a) { + match $crate::assert_option_some_as_result!($a) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_option/assert_option_some_eq.rs b/src/assert_option/assert_option_some_eq.rs index 59518f98a..33144394a 100644 --- a/src/assert_option/assert_option_some_eq.rs +++ b/src/assert_option/assert_option_some_eq.rs @@ -196,13 +196,13 @@ mod tests { #[macro_export] macro_rules! assert_option_some_eq { ($a:expr, $b:expr $(,)?) => {{ - match assert_option_some_eq_as_result!($a, $b) { + match $crate::assert_option_some_eq_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_option_some_eq_as_result!($a, $b) { + match $crate::assert_option_some_eq_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_option/assert_option_some_ne.rs b/src/assert_option/assert_option_some_ne.rs index 711bcbf45..8a2c8dd72 100644 --- a/src/assert_option/assert_option_some_ne.rs +++ b/src/assert_option/assert_option_some_ne.rs @@ -196,13 +196,13 @@ mod tests { #[macro_export] macro_rules! assert_option_some_ne { ($a:expr, $b:expr $(,)?) => {{ - match assert_option_some_ne_as_result!($a, $b) { + match $crate::assert_option_some_ne_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_option_some_ne_as_result!($a, $b) { + match $crate::assert_option_some_ne_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_pending.rs b/src/assert_pending.rs index ad13f450b..3a8c6fd1b 100644 --- a/src/assert_pending.rs +++ b/src/assert_pending.rs @@ -148,13 +148,13 @@ mod tests { #[macro_export] macro_rules! assert_pending { ($a:expr $(,)?) => {{ - match assert_pending_as_result!($a) { + match $crate::assert_pending_as_result!($a) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $($message:tt)+) => {{ - match assert_pending_as_result!($a) { + match $crate::assert_pending_as_result!($a) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_poll/assert_poll_pending.rs b/src/assert_poll/assert_poll_pending.rs index c13b9b97d..dbccaae04 100644 --- a/src/assert_poll/assert_poll_pending.rs +++ b/src/assert_poll/assert_poll_pending.rs @@ -141,13 +141,13 @@ mod tests { #[macro_export] macro_rules! assert_poll_pending { ($a:expr $(,)?) => {{ - match assert_poll_pending_as_result!($a) { + match $crate::assert_poll_pending_as_result!($a) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $($message:tt)+) => {{ - match assert_poll_pending_as_result!($a) { + match $crate::assert_poll_pending_as_result!($a) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_poll/assert_poll_ready.rs b/src/assert_poll/assert_poll_ready.rs index 3b5cf2058..576c2eb95 100644 --- a/src/assert_poll/assert_poll_ready.rs +++ b/src/assert_poll/assert_poll_ready.rs @@ -141,13 +141,13 @@ mod tests { #[macro_export] macro_rules! assert_poll_ready { ($a:expr $(,)?) => {{ - match assert_poll_ready_as_result!($a) { + match $crate::assert_poll_ready_as_result!($a) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $($message:tt)+) => {{ - match assert_poll_ready_as_result!($a) { + match $crate::assert_poll_ready_as_result!($a) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_poll/assert_poll_ready_eq.rs b/src/assert_poll/assert_poll_ready_eq.rs index bb0ab7ac9..eaab33929 100644 --- a/src/assert_poll/assert_poll_ready_eq.rs +++ b/src/assert_poll/assert_poll_ready_eq.rs @@ -202,13 +202,13 @@ mod tests { #[macro_export] macro_rules! assert_poll_ready_eq { ($a:expr, $b:expr $(,)?) => {{ - match assert_poll_ready_eq_as_result!($a, $b) { + match $crate::assert_poll_ready_eq_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_poll_ready_eq_as_result!($a, $b) { + match $crate::assert_poll_ready_eq_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_poll/assert_poll_ready_ne.rs b/src/assert_poll/assert_poll_ready_ne.rs index 8dc842e72..655ce1f9f 100644 --- a/src/assert_poll/assert_poll_ready_ne.rs +++ b/src/assert_poll/assert_poll_ready_ne.rs @@ -202,13 +202,13 @@ mod tests { #[macro_export] macro_rules! assert_poll_ready_ne { ($a:expr, $b:expr $(,)?) => {{ - match assert_poll_ready_ne_as_result!($a, $b) { + match $crate::assert_poll_ready_ne_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_poll_ready_ne_as_result!($a, $b) { + match $crate::assert_poll_ready_ne_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stderr_contains.rs b/src/assert_program_args/assert_program_args_stderr_contains.rs index 164f58df3..a92d28587 100644 --- a/src/assert_program_args/assert_program_args_stderr_contains.rs +++ b/src/assert_program_args/assert_program_args_stderr_contains.rs @@ -212,13 +212,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stderr_contains { ($a_program:expr, $a_args:expr, $containee:expr $(,)?) => {{ - match assert_program_args_stderr_contains_as_result!($a_program, $a_args, $containee) { + match $crate::assert_program_args_stderr_contains_as_result!($a_program, $a_args, $containee) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $containee:expr, $($message:tt)+) => {{ - match assert_program_args_stderr_contains_as_result!($a_program, $a_args, $containee) { + match $crate::assert_program_args_stderr_contains_as_result!($a_program, $a_args, $containee) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stderr_eq.rs b/src/assert_program_args/assert_program_args_stderr_eq.rs index 8daeefb0e..6625f33cc 100644 --- a/src/assert_program_args/assert_program_args_stderr_eq.rs +++ b/src/assert_program_args/assert_program_args_stderr_eq.rs @@ -225,13 +225,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stderr_eq { ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => {{ - match assert_program_args_stderr_eq_as_result!($a_program, $a_args, $b_program, $b_args) { + match $crate::assert_program_args_stderr_eq_as_result!($a_program, $a_args, $b_program, $b_args) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => {{ - match assert_program_args_stderr_eq_as_result!($a_program, $a_args, $b_program, $b_args) { + match $crate::assert_program_args_stderr_eq_as_result!($a_program, $a_args, $b_program, $b_args) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stderr_eq_expr.rs b/src/assert_program_args/assert_program_args_stderr_eq_expr.rs index bdbbab999..dfba35254 100644 --- a/src/assert_program_args/assert_program_args_stderr_eq_expr.rs +++ b/src/assert_program_args/assert_program_args_stderr_eq_expr.rs @@ -201,13 +201,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stderr_eq_expr { ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => {{ - match assert_program_args_stderr_eq_expr_as_result!($a_program, $a_args, $b_expr) { + match $crate::assert_program_args_stderr_eq_expr_as_result!($a_program, $a_args, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_program_args_stderr_eq_expr_as_result!($a_program, $a_args, $b_expr) { + match $crate::assert_program_args_stderr_eq_expr_as_result!($a_program, $a_args, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stderr_ge.rs b/src/assert_program_args/assert_program_args_stderr_ge.rs index 0aa481742..8e9be78ca 100644 --- a/src/assert_program_args/assert_program_args_stderr_ge.rs +++ b/src/assert_program_args/assert_program_args_stderr_ge.rs @@ -235,13 +235,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stderr_ge { ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => {{ - match assert_program_args_stderr_ge_as_result!($a_program, $a_args, $b_program, $b_args) { + match $crate::assert_program_args_stderr_ge_as_result!($a_program, $a_args, $b_program, $b_args) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => {{ - match assert_program_args_stderr_ge_as_result!($a_program, $a_args, $b_program, $b_args) { + match $crate::assert_program_args_stderr_ge_as_result!($a_program, $a_args, $b_program, $b_args) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stderr_ge_expr.rs b/src/assert_program_args/assert_program_args_stderr_ge_expr.rs index 9610b6851..81dbe80c0 100644 --- a/src/assert_program_args/assert_program_args_stderr_ge_expr.rs +++ b/src/assert_program_args/assert_program_args_stderr_ge_expr.rs @@ -208,13 +208,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stderr_ge_expr { ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => {{ - match assert_program_args_stderr_ge_expr_as_result!($a_program, $a_args, $b_expr) { + match $crate::assert_program_args_stderr_ge_expr_as_result!($a_program, $a_args, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_program_args_stderr_ge_expr_as_result!($a_program, $a_args, $b_expr) { + match $crate::assert_program_args_stderr_ge_expr_as_result!($a_program, $a_args, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stderr_gt.rs b/src/assert_program_args/assert_program_args_stderr_gt.rs index 8c254cbe0..01c6de43f 100644 --- a/src/assert_program_args/assert_program_args_stderr_gt.rs +++ b/src/assert_program_args/assert_program_args_stderr_gt.rs @@ -225,13 +225,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stderr_gt { ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => {{ - match assert_program_args_stderr_gt_as_result!($a_program, $a_args, $b_program, $b_args) { + match $crate::assert_program_args_stderr_gt_as_result!($a_program, $a_args, $b_program, $b_args) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => {{ - match assert_program_args_stderr_gt_as_result!($a_program, $a_args, $b_program, $b_args) { + match $crate::assert_program_args_stderr_gt_as_result!($a_program, $a_args, $b_program, $b_args) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stderr_gt_expr.rs b/src/assert_program_args/assert_program_args_stderr_gt_expr.rs index b235b9594..2d8976121 100644 --- a/src/assert_program_args/assert_program_args_stderr_gt_expr.rs +++ b/src/assert_program_args/assert_program_args_stderr_gt_expr.rs @@ -201,13 +201,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stderr_gt_expr { ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => {{ - match assert_program_args_stderr_gt_expr_as_result!($a_program, $a_args, $b_expr) { + match $crate::assert_program_args_stderr_gt_expr_as_result!($a_program, $a_args, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_program_args_stderr_gt_expr_as_result!($a_program, $a_args, $b_expr) { + match $crate::assert_program_args_stderr_gt_expr_as_result!($a_program, $a_args, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stderr_is_match.rs b/src/assert_program_args/assert_program_args_stderr_is_match.rs index 4c21f1e79..bf60c2f5a 100644 --- a/src/assert_program_args/assert_program_args_stderr_is_match.rs +++ b/src/assert_program_args/assert_program_args_stderr_is_match.rs @@ -207,13 +207,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stderr_is_match { ($a_program:expr, $a_args:expr, $matcher:expr $(,)?) => {{ - match assert_program_args_stderr_is_match_as_result!($a_program, $a_args, $matcher) { + match $crate::assert_program_args_stderr_is_match_as_result!($a_program, $a_args, $matcher) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $matcher:expr, $($message:tt)+) => {{ - match assert_program_args_stderr_is_match_as_result!($a_program, $a_args, $matcher) { + match $crate::assert_program_args_stderr_is_match_as_result!($a_program, $a_args, $matcher) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stderr_le.rs b/src/assert_program_args/assert_program_args_stderr_le.rs index 234505ad5..9d9747569 100644 --- a/src/assert_program_args/assert_program_args_stderr_le.rs +++ b/src/assert_program_args/assert_program_args_stderr_le.rs @@ -225,13 +225,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stderr_le { ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => {{ - match assert_program_args_stderr_le_as_result!($a_program, $a_args, $b_program, $b_args) { + match $crate::assert_program_args_stderr_le_as_result!($a_program, $a_args, $b_program, $b_args) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => {{ - match assert_program_args_stderr_le_as_result!($a_program, $a_args, $b_program, $b_args) { + match $crate::assert_program_args_stderr_le_as_result!($a_program, $a_args, $b_program, $b_args) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stderr_le_expr.rs b/src/assert_program_args/assert_program_args_stderr_le_expr.rs index 6be9e8e51..99173fd37 100644 --- a/src/assert_program_args/assert_program_args_stderr_le_expr.rs +++ b/src/assert_program_args/assert_program_args_stderr_le_expr.rs @@ -201,13 +201,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stderr_le_expr { ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => {{ - match assert_program_args_stderr_le_expr_as_result!($a_program, $a_args, $b_expr) { + match $crate::assert_program_args_stderr_le_expr_as_result!($a_program, $a_args, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_program_args_stderr_le_expr_as_result!($a_program, $a_args, $b_expr) { + match $crate::assert_program_args_stderr_le_expr_as_result!($a_program, $a_args, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stderr_lt.rs b/src/assert_program_args/assert_program_args_stderr_lt.rs index 2fa528067..46cb1e7a7 100644 --- a/src/assert_program_args/assert_program_args_stderr_lt.rs +++ b/src/assert_program_args/assert_program_args_stderr_lt.rs @@ -225,13 +225,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stderr_lt { ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => {{ - match assert_program_args_stderr_lt_as_result!($a_program, $a_args, $b_program, $b_args) { + match $crate::assert_program_args_stderr_lt_as_result!($a_program, $a_args, $b_program, $b_args) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => {{ - match assert_program_args_stderr_lt_as_result!($a_program, $a_args, $b_program, $b_args) { + match $crate::assert_program_args_stderr_lt_as_result!($a_program, $a_args, $b_program, $b_args) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stderr_lt_expr.rs b/src/assert_program_args/assert_program_args_stderr_lt_expr.rs index 858f2649f..6e3d706fb 100644 --- a/src/assert_program_args/assert_program_args_stderr_lt_expr.rs +++ b/src/assert_program_args/assert_program_args_stderr_lt_expr.rs @@ -201,13 +201,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stderr_lt_expr { ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => {{ - match assert_program_args_stderr_lt_expr_as_result!($a_program, $a_args, $b_expr) { + match $crate::assert_program_args_stderr_lt_expr_as_result!($a_program, $a_args, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_program_args_stderr_lt_expr_as_result!($a_program, $a_args, $b_expr) { + match $crate::assert_program_args_stderr_lt_expr_as_result!($a_program, $a_args, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stderr_ne.rs b/src/assert_program_args/assert_program_args_stderr_ne.rs index 27135d6b4..989f35205 100644 --- a/src/assert_program_args/assert_program_args_stderr_ne.rs +++ b/src/assert_program_args/assert_program_args_stderr_ne.rs @@ -225,13 +225,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stderr_ne { ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => {{ - match assert_program_args_stderr_ne_as_result!($a_program, $a_args, $b_program, $b_args) { + match $crate::assert_program_args_stderr_ne_as_result!($a_program, $a_args, $b_program, $b_args) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => {{ - match assert_program_args_stderr_ne_as_result!($a_program, $a_args, $b_program, $b_args) { + match $crate::assert_program_args_stderr_ne_as_result!($a_program, $a_args, $b_program, $b_args) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stderr_ne_expr.rs b/src/assert_program_args/assert_program_args_stderr_ne_expr.rs index c4e16b95f..e9bceaae8 100644 --- a/src/assert_program_args/assert_program_args_stderr_ne_expr.rs +++ b/src/assert_program_args/assert_program_args_stderr_ne_expr.rs @@ -201,13 +201,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stderr_ne_expr { ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => {{ - match assert_program_args_stderr_ne_expr_as_result!($a_program, $a_args, $b_expr) { + match $crate::assert_program_args_stderr_ne_expr_as_result!($a_program, $a_args, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_program_args_stderr_ne_expr_as_result!($a_program, $a_args, $b_expr) { + match $crate::assert_program_args_stderr_ne_expr_as_result!($a_program, $a_args, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stdout_contains.rs b/src/assert_program_args/assert_program_args_stdout_contains.rs index bd7f19742..c03a70f65 100644 --- a/src/assert_program_args/assert_program_args_stdout_contains.rs +++ b/src/assert_program_args/assert_program_args_stdout_contains.rs @@ -212,13 +212,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stdout_contains { ($a_program:expr, $a_args:expr, $containee:expr $(,)?) => {{ - match assert_program_args_stdout_contains_as_result!($a_program, $a_args, $containee) { + match $crate::assert_program_args_stdout_contains_as_result!($a_program, $a_args, $containee) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $containee:expr, $($message:tt)+) => {{ - match assert_program_args_stdout_contains_as_result!($a_program, $a_args, $containee) { + match $crate::assert_program_args_stdout_contains_as_result!($a_program, $a_args, $containee) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stdout_eq.rs b/src/assert_program_args/assert_program_args_stdout_eq.rs index 116a45ee3..c7f086d0c 100644 --- a/src/assert_program_args/assert_program_args_stdout_eq.rs +++ b/src/assert_program_args/assert_program_args_stdout_eq.rs @@ -226,13 +226,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stdout_eq { ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => {{ - match assert_program_args_stdout_eq_as_result!($a_program, $a_args, $b_program, $b_args) { + match $crate::assert_program_args_stdout_eq_as_result!($a_program, $a_args, $b_program, $b_args) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => {{ - match assert_program_args_stdout_eq_as_result!($a_program, $a_args, $b_program, $b_args) { + match $crate::assert_program_args_stdout_eq_as_result!($a_program, $a_args, $b_program, $b_args) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stdout_eq_expr.rs b/src/assert_program_args/assert_program_args_stdout_eq_expr.rs index aee291067..3393aaee7 100644 --- a/src/assert_program_args/assert_program_args_stdout_eq_expr.rs +++ b/src/assert_program_args/assert_program_args_stdout_eq_expr.rs @@ -202,13 +202,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stdout_eq_expr { ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => {{ - match assert_program_args_stdout_eq_expr_as_result!($a_program, $a_args, $b_expr) { + match $crate::assert_program_args_stdout_eq_expr_as_result!($a_program, $a_args, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_program_args_stdout_eq_expr_as_result!($a_program, $a_args, $b_expr) { + match $crate::assert_program_args_stdout_eq_expr_as_result!($a_program, $a_args, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stdout_ge.rs b/src/assert_program_args/assert_program_args_stdout_ge.rs index e0059d18a..84ed42981 100644 --- a/src/assert_program_args/assert_program_args_stdout_ge.rs +++ b/src/assert_program_args/assert_program_args_stdout_ge.rs @@ -236,13 +236,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stdout_ge { ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => {{ - match assert_program_args_stdout_ge_as_result!($a_program, $a_args, $b_program, $b_args) { + match $crate::assert_program_args_stdout_ge_as_result!($a_program, $a_args, $b_program, $b_args) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => {{ - match assert_program_args_stdout_ge_as_result!($a_program, $a_args, $b_program, $b_args) { + match $crate::assert_program_args_stdout_ge_as_result!($a_program, $a_args, $b_program, $b_args) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stdout_ge_expr.rs b/src/assert_program_args/assert_program_args_stdout_ge_expr.rs index 2e0ccd0dd..af1c04abe 100644 --- a/src/assert_program_args/assert_program_args_stdout_ge_expr.rs +++ b/src/assert_program_args/assert_program_args_stdout_ge_expr.rs @@ -211,13 +211,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stdout_ge_expr { ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => {{ - match assert_program_args_stdout_ge_expr_as_result!($a_program, $a_args, $b_expr) { + match $crate::assert_program_args_stdout_ge_expr_as_result!($a_program, $a_args, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_program_args_stdout_ge_expr_as_result!($a_program, $a_args, $b_expr) { + match $crate::assert_program_args_stdout_ge_expr_as_result!($a_program, $a_args, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stdout_gt.rs b/src/assert_program_args/assert_program_args_stdout_gt.rs index 18b3a6246..f74ce6f54 100644 --- a/src/assert_program_args/assert_program_args_stdout_gt.rs +++ b/src/assert_program_args/assert_program_args_stdout_gt.rs @@ -226,13 +226,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stdout_gt { ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => {{ - match assert_program_args_stdout_gt_as_result!($a_program, $a_args, $b_program, $b_args) { + match $crate::assert_program_args_stdout_gt_as_result!($a_program, $a_args, $b_program, $b_args) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => {{ - match assert_program_args_stdout_gt_as_result!($a_program, $a_args, $b_program, $b_args) { + match $crate::assert_program_args_stdout_gt_as_result!($a_program, $a_args, $b_program, $b_args) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stdout_gt_expr.rs b/src/assert_program_args/assert_program_args_stdout_gt_expr.rs index 12d02494e..349629b5a 100644 --- a/src/assert_program_args/assert_program_args_stdout_gt_expr.rs +++ b/src/assert_program_args/assert_program_args_stdout_gt_expr.rs @@ -202,13 +202,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stdout_gt_expr { ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => {{ - match assert_program_args_stdout_gt_expr_as_result!($a_program, $a_args, $b_expr) { + match $crate::assert_program_args_stdout_gt_expr_as_result!($a_program, $a_args, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_program_args_stdout_gt_expr_as_result!($a_program, $a_args, $b_expr) { + match $crate::assert_program_args_stdout_gt_expr_as_result!($a_program, $a_args, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stdout_is_match.rs b/src/assert_program_args/assert_program_args_stdout_is_match.rs index c470dc91e..fc98f440e 100644 --- a/src/assert_program_args/assert_program_args_stdout_is_match.rs +++ b/src/assert_program_args/assert_program_args_stdout_is_match.rs @@ -207,13 +207,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stdout_is_match { ($a_program:expr, $a_args:expr, $matcher:expr $(,)?) => {{ - match assert_program_args_stdout_is_match_as_result!($a_program, $a_args, $matcher) { + match $crate::assert_program_args_stdout_is_match_as_result!($a_program, $a_args, $matcher) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $matcher:expr, $($message:tt)+) => {{ - match assert_program_args_stdout_is_match_as_result!($a_program, $a_args, $matcher) { + match $crate::assert_program_args_stdout_is_match_as_result!($a_program, $a_args, $matcher) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stdout_le.rs b/src/assert_program_args/assert_program_args_stdout_le.rs index 889ebe437..b043e93fb 100644 --- a/src/assert_program_args/assert_program_args_stdout_le.rs +++ b/src/assert_program_args/assert_program_args_stdout_le.rs @@ -236,13 +236,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stdout_le { ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => {{ - match assert_program_args_stdout_le_as_result!($a_program, $a_args, $b_program, $b_args) { + match $crate::assert_program_args_stdout_le_as_result!($a_program, $a_args, $b_program, $b_args) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => {{ - match assert_program_args_stdout_le_as_result!($a_program, $a_args, $b_program, $b_args) { + match $crate::assert_program_args_stdout_le_as_result!($a_program, $a_args, $b_program, $b_args) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stdout_le_expr.rs b/src/assert_program_args/assert_program_args_stdout_le_expr.rs index a1c326576..84ac02701 100644 --- a/src/assert_program_args/assert_program_args_stdout_le_expr.rs +++ b/src/assert_program_args/assert_program_args_stdout_le_expr.rs @@ -211,13 +211,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stdout_le_expr { ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => {{ - match assert_program_args_stdout_le_expr_as_result!($a_program, $a_args, $b_expr) { + match $crate::assert_program_args_stdout_le_expr_as_result!($a_program, $a_args, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_program_args_stdout_le_expr_as_result!($a_program, $a_args, $b_expr) { + match $crate::assert_program_args_stdout_le_expr_as_result!($a_program, $a_args, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stdout_lt.rs b/src/assert_program_args/assert_program_args_stdout_lt.rs index cb39d3eff..51e0c2517 100644 --- a/src/assert_program_args/assert_program_args_stdout_lt.rs +++ b/src/assert_program_args/assert_program_args_stdout_lt.rs @@ -226,13 +226,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stdout_lt { ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => {{ - match assert_program_args_stdout_lt_as_result!($a_program, $a_args, $b_program, $b_args) { + match $crate::assert_program_args_stdout_lt_as_result!($a_program, $a_args, $b_program, $b_args) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => {{ - match assert_program_args_stdout_lt_as_result!($a_program, $a_args, $b_program, $b_args) { + match $crate::assert_program_args_stdout_lt_as_result!($a_program, $a_args, $b_program, $b_args) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stdout_lt_expr.rs b/src/assert_program_args/assert_program_args_stdout_lt_expr.rs index 75500af93..2d6ef9881 100644 --- a/src/assert_program_args/assert_program_args_stdout_lt_expr.rs +++ b/src/assert_program_args/assert_program_args_stdout_lt_expr.rs @@ -202,13 +202,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stdout_lt_expr { ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => {{ - match assert_program_args_stdout_lt_expr_as_result!($a_program, $a_args, $b_expr) { + match $crate::assert_program_args_stdout_lt_expr_as_result!($a_program, $a_args, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_program_args_stdout_lt_expr_as_result!($a_program, $a_args, $b_expr) { + match $crate::assert_program_args_stdout_lt_expr_as_result!($a_program, $a_args, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stdout_ne.rs b/src/assert_program_args/assert_program_args_stdout_ne.rs index f36947e16..5216b3d0b 100644 --- a/src/assert_program_args/assert_program_args_stdout_ne.rs +++ b/src/assert_program_args/assert_program_args_stdout_ne.rs @@ -226,13 +226,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stdout_ne { ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => {{ - match assert_program_args_stdout_ne_as_result!($a_program, $a_args, $b_program, $b_args) { + match $crate::assert_program_args_stdout_ne_as_result!($a_program, $a_args, $b_program, $b_args) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => {{ - match assert_program_args_stdout_ne_as_result!($a_program, $a_args, $b_program, $b_args) { + match $crate::assert_program_args_stdout_ne_as_result!($a_program, $a_args, $b_program, $b_args) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_program_args/assert_program_args_stdout_ne_expr.rs b/src/assert_program_args/assert_program_args_stdout_ne_expr.rs index 7ff08cc39..7b293c58d 100644 --- a/src/assert_program_args/assert_program_args_stdout_ne_expr.rs +++ b/src/assert_program_args/assert_program_args_stdout_ne_expr.rs @@ -202,13 +202,13 @@ mod tests { #[macro_export] macro_rules! assert_program_args_stdout_ne_expr { ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => {{ - match assert_program_args_stdout_ne_expr_as_result!($a_program, $a_args, $b_expr) { + match $crate::assert_program_args_stdout_ne_expr_as_result!($a_program, $a_args, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_program:expr, $a_args:expr, $b_expr:expr, $($message:tt)+) => {{ - match assert_program_args_stdout_ne_expr_as_result!($a_program, $a_args, $b_expr) { + match $crate::assert_program_args_stdout_ne_expr_as_result!($a_program, $a_args, $b_expr) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_ready.rs b/src/assert_ready.rs index 6b0ef864e..54a85eb0e 100644 --- a/src/assert_ready.rs +++ b/src/assert_ready.rs @@ -148,13 +148,13 @@ mod tests { #[macro_export] macro_rules! assert_ready { ($a:expr $(,)?) => {{ - match assert_ready_as_result!($a) { + match $crate::assert_ready_as_result!($a) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $($message:tt)+) => {{ - match assert_ready_as_result!($a) { + match $crate::assert_ready_as_result!($a) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_ready_eq.rs b/src/assert_ready_eq.rs index 8f8df3ce1..ac622b642 100644 --- a/src/assert_ready_eq.rs +++ b/src/assert_ready_eq.rs @@ -209,13 +209,13 @@ mod tests { #[macro_export] macro_rules! assert_ready_eq { ($a:expr, $b:expr $(,)?) => {{ - match assert_ready_eq_as_result!($a, $b) { + match $crate::assert_ready_eq_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_ready_eq_as_result!($a, $b) { + match $crate::assert_ready_eq_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_ready_eq_expr.rs b/src/assert_ready_eq_expr.rs index ae10c9aed..b7a24cc10 100644 --- a/src/assert_ready_eq_expr.rs +++ b/src/assert_ready_eq_expr.rs @@ -204,13 +204,13 @@ mod tests { #[macro_export] macro_rules! assert_ready_eq_expr { ($a:expr, $b:expr $(,)?) => {{ - match assert_ready_eq_expr_as_result!($a, $b) { + match $crate::assert_ready_eq_expr_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_ready_eq_expr_as_result!($a, $b) { + match $crate::assert_ready_eq_expr_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_ready_ne.rs b/src/assert_ready_ne.rs index 578bbbaa7..f75f2efc0 100644 --- a/src/assert_ready_ne.rs +++ b/src/assert_ready_ne.rs @@ -209,13 +209,13 @@ mod tests { #[macro_export] macro_rules! assert_ready_ne { ($a:expr, $b:expr $(,)?) => {{ - match assert_ready_ne_as_result!($a, $b) { + match $crate::assert_ready_ne_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_ready_ne_as_result!($a, $b) { + match $crate::assert_ready_ne_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_ready_ne_expr.rs b/src/assert_ready_ne_expr.rs index 085f38182..847e23576 100644 --- a/src/assert_ready_ne_expr.rs +++ b/src/assert_ready_ne_expr.rs @@ -180,7 +180,7 @@ mod tests { /// // a debug: `Ready(1)`, /// // a inner: `1`, /// // b label: `b`, -/// // b debug: `2` +/// // b debug: `1` /// # let actual = result.unwrap_err().downcast::().unwrap().to_string(); /// # let expect = concat!( /// # "assertion failed: `assert_ready_ne_expr!(a, b)`\n", @@ -189,7 +189,7 @@ mod tests { /// # " a debug: `Ready(1)`,\n", /// # " a inner: `1`,\n", /// # " b label: `b`,\n", -/// # " b debug: `2`" +/// # " b debug: `1`" /// # ); /// # assert_eq!(actual, expect); /// # } @@ -204,13 +204,13 @@ mod tests { #[macro_export] macro_rules! assert_ready_ne_expr { ($a:expr, $b:expr $(,)?) => {{ - match assert_ready_ne_expr_as_result!($a, $b) { + match $crate::assert_ready_ne_expr_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_ready_ne_expr_as_result!($a, $b) { + match $crate::assert_ready_ne_expr_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_result/assert_result_err.rs b/src/assert_result/assert_result_err.rs index b34381101..78ac09b77 100644 --- a/src/assert_result/assert_result_err.rs +++ b/src/assert_result/assert_result_err.rs @@ -134,13 +134,13 @@ mod tests { #[macro_export] macro_rules! assert_result_err { ($a:expr $(,)?) => {{ - match assert_result_err_as_result!($a) { + match $crate::assert_result_err_as_result!($a) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $($message:tt)+) => {{ - match assert_result_err_as_result!($a) { + match $crate::assert_result_err_as_result!($a) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_result/assert_result_ok.rs b/src/assert_result/assert_result_ok.rs index 06ea54613..a18a053d8 100644 --- a/src/assert_result/assert_result_ok.rs +++ b/src/assert_result/assert_result_ok.rs @@ -134,13 +134,13 @@ mod tests { #[macro_export] macro_rules! assert_result_ok { ($a:expr $(,)?) => {{ - match assert_result_ok_as_result!($a) { + match $crate::assert_result_ok_as_result!($a) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $($message:tt)+) => {{ - match assert_result_ok_as_result!($a) { + match $crate::assert_result_ok_as_result!($a) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_result/assert_result_ok_eq.rs b/src/assert_result/assert_result_ok_eq.rs index 38499d4ae..746999320 100644 --- a/src/assert_result/assert_result_ok_eq.rs +++ b/src/assert_result/assert_result_ok_eq.rs @@ -196,13 +196,13 @@ mod tests { #[macro_export] macro_rules! assert_result_ok_eq { ($a:expr, $b:expr $(,)?) => {{ - match assert_result_ok_eq_as_result!($a, $b) { + match $crate::assert_result_ok_eq_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_result_ok_eq_as_result!($a, $b) { + match $crate::assert_result_ok_eq_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_result/assert_result_ok_ne.rs b/src/assert_result/assert_result_ok_ne.rs index 4b087c7e8..a3765cd37 100644 --- a/src/assert_result/assert_result_ok_ne.rs +++ b/src/assert_result/assert_result_ok_ne.rs @@ -196,13 +196,13 @@ mod tests { #[macro_export] macro_rules! assert_result_ok_ne { ($a:expr, $b:expr $(,)?) => {{ - match assert_result_ok_ne_as_result!($a, $b) { + match $crate::assert_result_ok_ne_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_result_ok_ne_as_result!($a, $b) { + match $crate::assert_result_ok_ne_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_set/assert_set_disjoint.rs b/src/assert_set/assert_set_disjoint.rs index 6d50fd23d..ccdf920cd 100644 --- a/src/assert_set/assert_set_disjoint.rs +++ b/src/assert_set/assert_set_disjoint.rs @@ -169,13 +169,13 @@ mod tests { #[macro_export] macro_rules! assert_set_disjoint { ($a_collection:expr, $b_collection:expr $(,)?) => {{ - match assert_set_disjoint_as_result!($a_collection, $b_collection) { + match $crate::assert_set_disjoint_as_result!($a_collection, $b_collection) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_collection:expr, $b_collection:expr, $($message:tt)+) => {{ - match assert_set_disjoint_as_result!($a_collection, $b_collection) { + match $crate::assert_set_disjoint_as_result!($a_collection, $b_collection) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_set/assert_set_eq.rs b/src/assert_set/assert_set_eq.rs index 84a074014..ce46caa4c 100644 --- a/src/assert_set/assert_set_eq.rs +++ b/src/assert_set/assert_set_eq.rs @@ -171,13 +171,13 @@ mod tests { #[macro_export] macro_rules! assert_set_eq { ($a_collection:expr, $b_collection:expr $(,)?) => {{ - match assert_set_eq_as_result!($a_collection, $b_collection) { + match $crate::assert_set_eq_as_result!($a_collection, $b_collection) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_collection:expr, $b_collection:expr, $($message:tt)+) => {{ - match assert_set_eq_as_result!($a_collection, $b_collection) { + match $crate::assert_set_eq_as_result!($a_collection, $b_collection) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_set/assert_set_joint.rs b/src/assert_set/assert_set_joint.rs index 2b67fa012..25731673e 100644 --- a/src/assert_set/assert_set_joint.rs +++ b/src/assert_set/assert_set_joint.rs @@ -169,13 +169,13 @@ mod tests { #[macro_export] macro_rules! assert_set_joint { ($a_collection:expr, $b_collection:expr $(,)?) => {{ - match assert_set_joint_as_result!($a_collection, $b_collection) { + match $crate::assert_set_joint_as_result!($a_collection, $b_collection) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_collection:expr, $b_collection:expr, $($message:tt)+) => {{ - match assert_set_joint_as_result!($a_collection, $b_collection) { + match $crate::assert_set_joint_as_result!($a_collection, $b_collection) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_set/assert_set_ne.rs b/src/assert_set/assert_set_ne.rs index 437cfc618..5afac33ac 100644 --- a/src/assert_set/assert_set_ne.rs +++ b/src/assert_set/assert_set_ne.rs @@ -170,13 +170,13 @@ mod tests { #[macro_export] macro_rules! assert_set_ne { ($a_collection:expr, $b_collection:expr $(,)?) => {{ - match assert_set_ne_as_result!($a_collection, $b_collection) { + match $crate::assert_set_ne_as_result!($a_collection, $b_collection) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_collection:expr, $b_collection:expr, $($message:tt)+) => {{ - match assert_set_ne_as_result!($a_collection, $b_collection) { + match $crate::assert_set_ne_as_result!($a_collection, $b_collection) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_set/assert_set_subset.rs b/src/assert_set/assert_set_subset.rs index 77e7824af..cbbf39fa7 100644 --- a/src/assert_set/assert_set_subset.rs +++ b/src/assert_set/assert_set_subset.rs @@ -169,13 +169,13 @@ mod tests { #[macro_export] macro_rules! assert_set_subset { ($a_collection:expr, $b_collection:expr $(,)?) => {{ - match assert_set_subset_as_result!($a_collection, $b_collection) { + match $crate::assert_set_subset_as_result!($a_collection, $b_collection) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_collection:expr, $b_collection:expr, $($message:tt)+) => {{ - match assert_set_subset_as_result!($a_collection, $b_collection) { + match $crate::assert_set_subset_as_result!($a_collection, $b_collection) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_set/assert_set_superset.rs b/src/assert_set/assert_set_superset.rs index 42d0b9722..76469a89a 100644 --- a/src/assert_set/assert_set_superset.rs +++ b/src/assert_set/assert_set_superset.rs @@ -171,13 +171,13 @@ mod tests { #[macro_export] macro_rules! assert_set_superset { ($a_collection:expr, $b_collection:expr $(,)?) => {{ - match assert_set_superset_as_result!($a_collection, $b_collection) { + match $crate::assert_set_superset_as_result!($a_collection, $b_collection) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a_collection:expr, $b_collection:expr, $($message:tt)+) => {{ - match assert_set_superset_as_result!($a_collection, $b_collection) { + match $crate::assert_set_superset_as_result!($a_collection, $b_collection) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_some.rs b/src/assert_some.rs index a62ba874b..6b8ee075f 100644 --- a/src/assert_some.rs +++ b/src/assert_some.rs @@ -141,13 +141,13 @@ mod tests { #[macro_export] macro_rules! assert_some { ($a:expr $(,)?) => {{ - match assert_some_as_result!($a) { + match $crate::assert_some_as_result!($a) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $($message:tt)+) => {{ - match assert_some_as_result!($a) { + match $crate::assert_some_as_result!($a) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_some_eq.rs b/src/assert_some_eq.rs index b48a65dd1..bc2f2f134 100644 --- a/src/assert_some_eq.rs +++ b/src/assert_some_eq.rs @@ -203,13 +203,13 @@ mod tests { #[macro_export] macro_rules! assert_some_eq { ($a:expr, $b:expr $(,)?) => {{ - match assert_some_eq_as_result!($a, $b) { + match $crate::assert_some_eq_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_some_eq_as_result!($a, $b) { + match $crate::assert_some_eq_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_some_eq_expr.rs b/src/assert_some_eq_expr.rs index 138b62767..8214151e8 100644 --- a/src/assert_some_eq_expr.rs +++ b/src/assert_some_eq_expr.rs @@ -198,13 +198,13 @@ mod tests { #[macro_export] macro_rules! assert_some_eq_expr { ($a:expr, $b:expr $(,)?) => {{ - match assert_some_eq_expr_as_result!($a, $b) { + match $crate::assert_some_eq_expr_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_some_eq_expr_as_result!($a, $b) { + match $crate::assert_some_eq_expr_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_some_ne.rs b/src/assert_some_ne.rs index e5c5bdb5d..335b180dd 100644 --- a/src/assert_some_ne.rs +++ b/src/assert_some_ne.rs @@ -203,13 +203,13 @@ mod tests { #[macro_export] macro_rules! assert_some_ne { ($a:expr, $b:expr $(,)?) => {{ - match assert_some_ne_as_result!($a, $b) { + match $crate::assert_some_ne_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_some_ne_as_result!($a, $b) { + match $crate::assert_some_ne_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_some_ne_expr.rs b/src/assert_some_ne_expr.rs index 63c168dc0..f21bb4a36 100644 --- a/src/assert_some_ne_expr.rs +++ b/src/assert_some_ne_expr.rs @@ -198,13 +198,13 @@ mod tests { #[macro_export] macro_rules! assert_some_ne_expr { ($a:expr, $b:expr $(,)?) => {{ - match assert_some_ne_expr_as_result!($a, $b) { + match $crate::assert_some_ne_expr_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_some_ne_expr_as_result!($a, $b) { + match $crate::assert_some_ne_expr_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_starts_with.rs b/src/assert_starts_with.rs index 5a76093d6..881ce9846 100644 --- a/src/assert_starts_with.rs +++ b/src/assert_starts_with.rs @@ -151,13 +151,13 @@ mod tests { #[macro_export] macro_rules! assert_starts_with { ($a:expr, $b:expr $(,)?) => {{ - match assert_starts_with_as_result!($a, $b) { + match $crate::assert_starts_with_as_result!($a, $b) { Ok(()) => (), Err(err) => panic!("{}", err), } }}; ($a:expr, $b:expr, $($message:tt)+) => {{ - match assert_starts_with_as_result!($a, $b) { + match $crate::assert_starts_with_as_result!($a, $b) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/lib.rs b/src/lib.rs index d08cae402..a8109d191 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -193,9 +193,9 @@ //! ## Tracking //! //! * Package: assertables-rust-crate -//! * Version: 8.9.0 +//! * Version: 8.10.0 //! * Created: 2021-03-30T15:47:49Z -//! * Updated: 2024-09-25T15:18:42Z +//! * Updated: 2024-09-27T18:25:43Z //! * License: MIT or Apache-2.0 or GPL-2.0 or GPL-3.0 or contact us for more //! * Contact: Joel Parker Henderson (joel@sixarm.com) @@ -216,15 +216,21 @@ pub mod assert_approx_ne; pub mod assert_in_delta; pub mod assert_in_epsilon; -// Assert value matching -pub mod assert_contains; -pub mod assert_ends_with; +// Match pub mod assert_is_match; -pub mod assert_not_contains; -pub mod assert_not_ends_with; pub mod assert_not_match; -pub mod assert_not_starts_with; + +// Contains +pub mod assert_contains; +pub mod assert_not_contains; + +// Starts with pub mod assert_starts_with; +pub mod assert_not_starts_with; + +// Ends with +pub mod assert_ends_with; +pub mod assert_not_ends_with; // For Result Ok/Err pub mod assert_ok;