@@ -21,100 +21,100 @@ The assertables crate provides many more, so you can write smarter tests.
21
21
22
22
For values:
23
23
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 `
28
28
29
29
For approximation:
30
30
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 )
33
33
34
34
For strings:
35
35
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 )
38
38
39
39
For matching:
40
40
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 )
43
43
44
44
For infix operators:
45
45
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 )
48
48
49
49
For nearness:
50
50
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 )
53
53
54
54
For Result Ok/Err:
55
55
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 )
62
62
63
63
For Option Some/None:
64
64
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 )
71
71
72
72
For Poll Ready/Pending:
73
73
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 )
80
80
81
81
For collections such as arrays, vectors, maps, sets:
82
82
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 )
85
85
86
86
For file system paths and input/output readers:
87
87
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 )
90
90
91
91
For command capture of standard output and standard error:
92
92
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 )
95
95
96
96
There are many more macros that are grouped into modules.
97
97
98
98
Modules for collections, such as arrays, vectors, lists, maps:
99
99
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
102
102
103
103
Modules for functions:
104
104
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 ` .
108
108
109
109
Modules for readers:
110
110
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.
113
113
114
114
Modules for external calls:
115
115
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.
118
118
119
119
120
120
### Top 3 benefits
@@ -148,9 +148,9 @@ All the assert macros have 3 forms for different purposes:
148
148
149
149
Examples:
150
150
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
154
154
155
155
156
156
### Forms for messages
@@ -162,8 +162,8 @@ All the assert macros have 2 forms for messages.
162
162
163
163
Examples:
164
164
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 )
167
167
168
168
169
169
### 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
175
175
176
176
Examples:
177
177
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 )
180
180
181
181
182
182
## Tracking
183
183
184
184
* Package: assertables-rust-crate
185
- * Version: 8.9 .0
185
+ * Version: 8.10 .0
186
186
* Created: 2021-03-30T15:47:49Z
187
- * Updated: 2024-09-25T15:18:42Z
187
+ * Updated: 2024-09-27T18:25:43Z
188
188
* License: MIT or Apache-2.0 or GPL-2.0 or GPL-3.0 or contact us for more
189
189
* Contact: Joel Parker Henderson (
[email protected] )
0 commit comments