Skip to content

Commit 6353c77

Browse files
Add namespace, to enable explicit "use" case
1 parent d8ed5ff commit 6353c77

File tree

161 files changed

+461
-455
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+461
-455
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "assertables"
3-
version = "8.9.0"
3+
version = "8.10.0"
44
authors = ["Joel Parker Henderson <[email protected]>"]
55
edition = "2021"
66
description = "Assertables: assert macros for better testing, debugging, quality assurance, and runtime reliability."

README.md

+56-56
Original file line numberDiff line numberDiff line change
@@ -21,100 +21,100 @@ The assertables crate provides many more, so you can write smarter tests.
2121

2222
For values:
2323

24-
* [`assert_lt!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_lt.html) `// less than`
25-
* [`assert_le!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_le.html) `// less than or equal`
26-
* [`assert_gt!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_gt.html) `// greater than`
27-
* [`assert_ge!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_ge.html) `// greater than or equal`
24+
* [`assert_lt!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_lt.html) `// less than`
25+
* [`assert_le!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_le.html) `// less than or equal`
26+
* [`assert_gt!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_gt.html) `// greater than`
27+
* [`assert_ge!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_ge.html) `// greater than or equal`
2828

2929
For approximation:
3030

31-
* [`assert_approx_eq!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_approx_eq.html)
32-
* [`assert_approx_ne!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_approx_ne.html)
31+
* [`assert_approx_eq!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_approx_eq.html)
32+
* [`assert_approx_ne!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_approx_ne.html)
3333

3434
For strings:
3535

36-
* [`assert_starts_with!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_starts_with.html)
37-
* [`assert_ends_with!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_ends_with.html)
36+
* [`assert_starts_with!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_starts_with.html)
37+
* [`assert_ends_with!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_ends_with.html)
3838

3939
For matching:
4040

41-
* [`assert_contains!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_contains.html)
42-
* [`assert_is_match!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_is_match.html)
41+
* [`assert_contains!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_contains.html)
42+
* [`assert_is_match!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_is_match.html)
4343

4444
For infix operators:
4545

46-
* [`assert_infix!(a == b)`](https://docs.rs/assertables/latest/assertables/macro.assert_infix.html)
47-
* [`assert_infix!(a && b)`](https://docs.rs/assertables/latest/assertables/macro.assert_infix.html)
46+
* [`assert_infix!(a == b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_infix.html)
47+
* [`assert_infix!(a && b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_infix.html)
4848

4949
For nearness:
5050

51-
* [`assert_in_delta!(a, b, delta)`](https://docs.rs/assertables/latest/assertables/macro.assert_in_delta.html)
52-
* [`assert_in_epsilon!(a, b, epsilon)`](https://docs.rs/assertables/latest/assertables/macro.assert_in_epsilon.html)
51+
* [`assert_in_delta!(a, b, delta)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_in_delta.html)
52+
* [`assert_in_epsilon!(a, b, epsilon)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_in_epsilon.html)
5353

5454
For Result Ok/Err:
5555

56-
* [`assert_ok!(a)`](https://docs.rs/assertables/latest/assertables/macro.assert_ok.html)
57-
* [`assert_ok_eq!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_ok_eq.html)
58-
* [`assert_ok_eq_expr!(a, expr)`](https://docs.rs/assertables/latest/assertables/macro.assert_ok_eq_expr.html)
59-
* [`assert_ok_ne!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_ok_ne.html)
60-
* [`assert_ok_ne_expr!(a, expr)`](https://docs.rs/assertables/latest/assertables/macro.assert_ok_ne_expr).html)
61-
* [`assert_err!(a)`](https://docs.rs/assertables/latest/assertables/macro.assert_err.html)
56+
* [`assert_ok!(a)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_ok.html)
57+
* [`assert_ok_eq!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_ok_eq.html)
58+
* [`assert_ok_eq_expr!(a, expr)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_ok_eq_expr.html)
59+
* [`assert_ok_ne!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_ok_ne.html)
60+
* [`assert_ok_ne_expr!(a, expr)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_ok_ne_expr.html)
61+
* [`assert_err!(a)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_err.html)
6262

6363
For Option Some/None:
6464

65-
* [`assert_some!(a)`](https://docs.rs/assertables/latest/assertables/macro.assert_some.html)
66-
* [`assert_some_eq!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_some_eq.html)
67-
* [`assert_some_eq_expr!(a, expr)`](https://docs.rs/assertables/latest/assertables/macro.assert_some_eq_expr.html)
68-
* [`assert_some_ne!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_some_ne.html)
69-
* [`assert_some_ne_expr!(a, expr)`](https://docs.rs/assertables/latest/assertables/macro.assert_some_ne_expr.html)
70-
* [`assert_none!(a)`](https://docs.rs/assertables/latest/assertables/macro.assert_none.html)
65+
* [`assert_some!(a)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_some.html)
66+
* [`assert_some_eq!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_some_eq.html)
67+
* [`assert_some_eq_expr!(a, expr)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_some_eq_expr.html)
68+
* [`assert_some_ne!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_some_ne.html)
69+
* [`assert_some_ne_expr!(a, expr)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_some_ne_expr.html)
70+
* [`assert_none!(a)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_none.html)
7171

7272
For Poll Ready/Pending:
7373

74-
* [`assert_ready!(a)`](https://docs.rs/assertables/latest/assertables/macro.assert_ready.html)
75-
* [`assert_ready_eq!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_ready_eq.html)
76-
* [`assert_ready_eq_expr!(a, expr)`](https://docs.rs/assertables/latest/assertables/macro.assert_ready_eq_expr.html)
77-
* [`assert_ready_ne!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_ready_ne.html)
78-
* [`assert_ready_ne_expr!(a, expr)`](https://docs.rs/assertables/latest/assertables/macro.assert_ready_ne_expr.html)
79-
* [`assert_pending!(a)`](https://docs.rs/assertables/latest/assertables/macro.assert_pending.html)
74+
* [`assert_ready!(a)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_ready.html)
75+
* [`assert_ready_eq!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_ready_eq.html)
76+
* [`assert_ready_eq_expr!(a, expr)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_ready_eq_expr.html)
77+
* [`assert_ready_ne!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_ready_ne.html)
78+
* [`assert_ready_ne_expr!(a, expr)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_ready_ne_expr.html)
79+
* [`assert_pending!(a)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_pending.html)
8080

8181
For collections such as arrays, vectors, maps, sets:
8282

83-
* [`assert_set_subset!(collection1, collection2)`](https://docs.rs/assertables/latest/assertables/macro.assert_set_subset.html)
84-
* [`assert_set_disjoint!(collection1, collection2)`](https://docs.rs/assertables/latest/assertables/macro.assert_set_disjoint.html)
83+
* [`assert_set_subset!(collection1, collection2)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_set_subset.html)
84+
* [`assert_set_disjoint!(collection1, collection2)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_set_disjoint.html)
8585

8686
For file system paths and input/output readers:
8787

88-
* [`assert_fs_read_to_string_eq!(path1, path2)`](https://docs.rs/assertables/latest/assertables/macro.assert_fs_read_to_string_eq.html)
89-
* [`assert_io_read_to_string_eq!(reader1, reader2)`](https://docs.rs/assertables/latest/assertables/macro.assert_io_read_to_string_eq.html)
88+
* [`assert_fs_read_to_string_eq!(path1, path2)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_fs_read_to_string_eq.html)
89+
* [`assert_io_read_to_string_eq!(reader1, reader2)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_io_read_to_string_eq.html)
9090

9191
For command capture of standard output and standard error:
9292

93-
* [`assert_command_stdout_eq!(command1, command2)`](https://docs.rs/assertables/latest/assertables/macro.assert_command_stdout_eq.html)
94-
* [`assert_program_args_stdout_eq!(program1, args1, program2, args2)`](https://docs.rs/assertables/latest/assertables/macro.assert_program_args_stdout_eq.html)
93+
* [`assert_command_stdout_eq!(command1, command2)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_command_stdout_eq.html)
94+
* [`assert_program_args_stdout_eq!(program1, args1, program2, args2)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_program_args_stdout_eq.html)
9595

9696
There are many more macros that are grouped into modules.
9797

9898
Modules for collections, such as arrays, vectors, lists, maps:
9999

100-
* [`assert_set`](https://docs.rs/assertables/latest/assertables/assert_set) for set collections
101-
* [`assert_bag`](https://docs.rs/assertables/latest/assertables/assert_bag) for bag collections
100+
* [`assert_set`](https://docs.rs/assertables/8.9.0/assertables/assert_set) for set collections
101+
* [`assert_bag`](https://docs.rs/assertables/8.9.0/assertables/assert_bag) for bag collections
102102

103103
Modules for functions:
104104

105-
* [`assert_fn`](https://docs.rs/assertables/latest/assertables/assert_fn) for functions in general.
106-
* [`assert_fn_ok`](https://docs.rs/assertables/latest/assertables/assert_fn_ok) for functions that return `Result::Ok`.
107-
* [`assert_fn_err`](https://docs.rs/assertables/latest/assertables/assert_fn_err) for functions that return `Result::Err`.
105+
* [`assert_fn`](https://docs.rs/assertables/8.9.0/assertables/assert_fn) for functions in general.
106+
* [`assert_fn_ok`](https://docs.rs/assertables/8.9.0/assertables/assert_fn_ok) for functions that return `Result::Ok`.
107+
* [`assert_fn_err`](https://docs.rs/assertables/8.9.0/assertables/assert_fn_err) for functions that return `Result::Err`.
108108

109109
Modules for readers:
110110

111-
* [`assert_fs_read_to_string`](https://docs.rs/assertables/latest/assertables/assert_fs_read_to_string) for file system path contents.
112-
* [`assert_io_read_to_string`](https://docs.rs/assertables/latest/assertables/assert_io_read_to_string) for input/output reader streams.
111+
* [`assert_fs_read_to_string`](https://docs.rs/assertables/8.9.0/assertables/assert_fs_read_to_string) for file system path contents.
112+
* [`assert_io_read_to_string`](https://docs.rs/assertables/8.9.0/assertables/assert_io_read_to_string) for input/output reader streams.
113113

114114
Modules for external calls:
115115

116-
* [`assert_command`](https://docs.rs/assertables/latest/assertables/assert_command) for commands with stdout/stderr.
117-
* [`assert_program_args`](https://docs.rs/assertables/latest/assertables/assert_program_args) for programs with args with stdout/stderr.
116+
* [`assert_command`](https://docs.rs/assertables/8.9.0/assertables/assert_command) for commands with stdout/stderr.
117+
* [`assert_program_args`](https://docs.rs/assertables/8.9.0/assertables/assert_program_args) for programs with args with stdout/stderr.
118118

119119

120120
### Top 3 benefits
@@ -148,9 +148,9 @@ All the assert macros have 3 forms for different purposes:
148148

149149
Examples:
150150

151-
* [`assert_starts_with!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_starts_with.html) // panic!
152-
* [`debug_assert_starts_with!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.debug_assert_starts_with.html) // panic! in debug mode
153-
* [`assert_starts_with_as_result!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_starts_with_as_result.html) // return Ok or Err
151+
* [`assert_starts_with!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_starts_with.html) // panic!
152+
* [`debug_assert_starts_with!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.debug_assert_starts_with.html) // panic! in debug mode
153+
* [`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
154154

155155

156156
### Forms for messages
@@ -162,8 +162,8 @@ All the assert macros have 2 forms for messages.
162162

163163
Examples:
164164

165-
* [`assert_starts_with!(a, b)`](https://docs.rs/assertables/latest/assertables/macro.assert_starts_with.html)
166-
* [`assert_starts_with!(a, b, "Your custom message here")`](https://docs.rs/assertables/latest/assertables/macro.assert_starts_with.html)
165+
* [`assert_starts_with!(a, b)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_starts_with.html)
166+
* [`assert_starts_with!(a, b, "Your custom message here")`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_starts_with.html)
167167

168168

169169
### 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
175175

176176
Examples:
177177

178-
* [`assert_io_read_to_string_eq!(reader1, reader2)`](https://docs.rs/assertables/latest/assertables/macro.assert_io_read_to_string_eq.html)
179-
* [`assert_io_read_to_string_eq_expr!(reader, expr)`](https://docs.rs/assertables/latest/assertables/macro.assert_io_read_to_string_eq_expr.html)
178+
* [`assert_io_read_to_string_eq!(reader1, reader2)`](https://docs.rs/assertables/8.9.0/assertables/macro.assert_io_read_to_string_eq.html)
179+
* [`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)
180180

181181

182182
## Tracking
183183

184184
* Package: assertables-rust-crate
185-
* Version: 8.9.0
185+
* Version: 8.10.0
186186
* Created: 2021-03-30T15:47:49Z
187-
* Updated: 2024-09-25T15:18:42Z
187+
* Updated: 2024-09-27T18:25:43Z
188188
* License: MIT or Apache-2.0 or GPL-2.0 or GPL-3.0 or contact us for more
189189
* Contact: Joel Parker Henderson ([email protected])

book.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -612,13 +612,13 @@ Code:
612612
#[macro_export]
613613
macro_rules! assert_gt {
614614
($a:expr, $b:expr $(,)?) => ({
615-
match assert_gt_result!($a, $b) {
615+
match $crate::assert_gt_result!($a, $b) {
616616
Ok(()) => (),
617617
Err(err) => panic!("{}", err),
618618
}
619619
});
620620
($a:expr, $b:expr, $($message:tt)+) => ({
621-
match assert_gt!($a, $b) {
621+
match $crate::assert_gt!($a, $b) {
622622
Ok(()) => (),
623623
Err(_err) => panic!("{}", $($message)+),
624624
}

src/assert_approx_eq.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -233,13 +233,13 @@ mod tests {
233233
#[macro_export]
234234
macro_rules! assert_approx_eq {
235235
($a:expr, $b:expr $(,)?) => {{
236-
match assert_approx_eq_as_result!($a, $b) {
236+
match $crate::assert_approx_eq_as_result!($a, $b) {
237237
Ok(()) => (),
238238
Err(err) => panic!("{}", err),
239239
}
240240
}};
241241
($a:expr, $b:expr, $($message:tt)+) => {{
242-
match assert_approx_eq_as_result!($a, $b) {
242+
match $crate::assert_approx_eq_as_result!($a, $b) {
243243
Ok(()) => (),
244244
Err(_err) => panic!("{}", $($message)+),
245245
}

src/assert_approx_ne.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -233,13 +233,13 @@ mod tests {
233233
#[macro_export]
234234
macro_rules! assert_approx_ne {
235235
($a:expr, $b:expr $(,)?) => {{
236-
match assert_approx_ne_as_result!($a, $b) {
236+
match $crate::assert_approx_ne_as_result!($a, $b) {
237237
Ok(()) => (),
238238
Err(err) => panic!("{}", err),
239239
}
240240
}};
241241
($a:expr, $b:expr, $($message:tt)+) => {{
242-
match assert_approx_ne_as_result!($a, $b) {
242+
match $crate::assert_approx_ne_as_result!($a, $b) {
243243
Ok(()) => (),
244244
Err(_err) => panic!("{}", $($message)+),
245245
}

src/assert_bag/assert_bag_eq.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,13 @@ mod test_as_result {
167167
#[macro_export]
168168
macro_rules! assert_bag_eq {
169169
($a_collection:expr, $b_collection:expr $(,)?) => {{
170-
match assert_bag_eq_as_result!($a_collection, $b_collection) {
170+
match $crate::assert_bag_eq_as_result!($a_collection, $b_collection) {
171171
Ok(()) => (),
172172
Err(err) => panic!("{}", err),
173173
}
174174
}};
175175
($a_collection:expr, $b_collection:expr, $($message:tt)+) => {{
176-
match assert_bag_eq_as_result!($a_collection, $b_collection) {
176+
match $crate::assert_bag_eq_as_result!($a_collection, $b_collection) {
177177
Ok(()) => (),
178178
Err(_err) => panic!("{}", $($message)+),
179179
}

src/assert_bag/assert_bag_ne.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,13 @@ mod test_assert_x_result {
169169
#[macro_export]
170170
macro_rules! assert_bag_ne {
171171
($a_collection:expr, $b_collection:expr $(,)?) => {{
172-
match assert_bag_ne_as_result!($a_collection, $b_collection) {
172+
match $crate::assert_bag_ne_as_result!($a_collection, $b_collection) {
173173
Ok(()) => (),
174174
Err(err) => panic!("{}", err),
175175
}
176176
}};
177177
($a_collection:expr, $b_collection:expr, $($message:tt)+) => {{
178-
match assert_bag_ne_as_result!($a_collection, $b_collection) {
178+
match $crate::assert_bag_ne_as_result!($a_collection, $b_collection) {
179179
Ok(()) => (),
180180
Err(_err) => panic!("{}", $($message)+),
181181
}

src/assert_bag/assert_bag_subbag.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,13 @@ mod tests {
194194
#[macro_export]
195195
macro_rules! assert_bag_subbag {
196196
($a_collection:expr, $b_collection:expr $(,)?) => {{
197-
match assert_bag_subbag_as_result!($a_collection, $b_collection) {
197+
match $crate::assert_bag_subbag_as_result!($a_collection, $b_collection) {
198198
Ok(()) => (),
199199
Err(err) => panic!("{}", err),
200200
}
201201
}};
202202
($a_collection:expr, $b_collection:expr, $($message:tt)+) => {{
203-
match assert_bag_subbag_as_result!($a_collection, $b_collection) {
203+
match $crate::assert_bag_subbag_as_result!($a_collection, $b_collection) {
204204
Ok(()) => (),
205205
Err(_err) => panic!("{}", $($message)+),
206206
}

src/assert_bag/assert_bag_superbag.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,13 @@ mod tests {
194194
#[macro_export]
195195
macro_rules! assert_bag_superbag {
196196
($a_collection:expr, $b_collection:expr $(,)?) => {{
197-
match assert_bag_superbag_as_result!($a_collection, $b_collection) {
197+
match $crate::assert_bag_superbag_as_result!($a_collection, $b_collection) {
198198
Ok(()) => (),
199199
Err(err) => panic!("{}", err),
200200
}
201201
}};
202202
($a_collection:expr, $b_collection:expr, $($message:tt)+) => {{
203-
match assert_bag_superbag_as_result!($a_collection, $b_collection) {
203+
match $crate::assert_bag_superbag_as_result!($a_collection, $b_collection) {
204204
Ok(()) => (),
205205
Err(_err) => panic!("{}", $($message)+),
206206
}

src/assert_command/assert_command_stderr_contains.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,13 @@ mod tests {
193193
#[macro_export]
194194
macro_rules! assert_command_stderr_contains {
195195
($command:expr, $containee:expr $(,)?) => {{
196-
match assert_command_stderr_contains_as_result!($command, $containee) {
196+
match $crate::assert_command_stderr_contains_as_result!($command, $containee) {
197197
Ok(()) => (),
198198
Err(err) => panic!("{}", err),
199199
}
200200
}};
201201
($command:expr, $containee:expr, $($message:tt)+) => {{
202-
match assert_command_stderr_contains_as_result!($command, $containee) {
202+
match $crate::assert_command_stderr_contains_as_result!($command, $containee) {
203203
Ok(()) => (),
204204
Err(_err) => panic!("{}", $($message)+),
205205
}

src/assert_command/assert_command_stderr_eq.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,13 @@ mod tests {
198198
#[macro_export]
199199
macro_rules! assert_command_stderr_eq {
200200
($a_command:expr, $b_command:expr $(,)?) => {{
201-
match assert_command_stderr_eq_as_result!($a_command, $b_command) {
201+
match $crate::assert_command_stderr_eq_as_result!($a_command, $b_command) {
202202
Ok(()) => (),
203203
Err(err) => panic!("{}", err),
204204
}
205205
}};
206206
($a_command:expr, $b_command:expr, $($message:tt)+) => {{
207-
match assert_command_stderr_eq_as_result!($a_command, $b_command) {
207+
match $crate::assert_command_stderr_eq_as_result!($a_command, $b_command) {
208208
Ok(()) => (),
209209
Err(_err) => panic!("{}", $($message)+),
210210
}

0 commit comments

Comments
 (0)