You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`[assert_fs_read_to_string_eq!(path1, path2);](https://docs.rs/assertables/8.16.0/assertables/assert_fs_read_to_string) // eq ne lt le gt ge`
127
-
*`[assert_io_read_to_string_eq!(stream1, stream2);](https://docs.rs/assertables/8.16.0/assertables/assert_io_read_to_string) // eq ne lt le gt ge`
129
+
*`[assert_fs_read_to_string_eq!(path1, path2);](https://docs.rs/assertables/8.17.0/assertables/assert_fs_read_to_string) // eq ne lt le gt ge`
130
+
*`[assert_io_read_to_string_eq!(stream1, stream2);](https://docs.rs/assertables/8.17.0/assertables/assert_io_read_to_string) // eq ne lt le gt ge`
128
131
129
132
Run commands and programs then assert on stdout or stderr:
130
133
131
-
*`[assert_command_stdout_eq!(command1, command2);](https://docs.rs/assertables/8.16.0/assertables/assert_command) // eq ne lt le gt ge etc.`
132
-
*`[assert_program_args_stdout_eq!(program1, args1, program2, args2);](https://docs.rs/assertables/8.16.0/assertables/assert_program_args) // eq ne lt le gt ge etc.`
134
+
*`[assert_command_stdout_eq!(command1, command2);](https://docs.rs/assertables/8.17.0/assertables/assert_command) // eq ne lt le gt ge etc.`
135
+
*`[assert_program_args_stdout_eq!(program1, args1, program2, args2);](https://docs.rs/assertables/8.17.0/assertables/assert_program_args) // eq ne lt le gt ge etc.`
133
136
134
137
Function comparisons, which are especially good for refactoring:
135
138
136
-
*`[assert_fn_eq!(fn1, fn2);](https://docs.rs/assertables/8.16.0/assertables/assert_fn) // functions that return values`
137
-
*`[assert_fn_ok_eq!(fn1, fn2);](https://docs.rs/assertables/8.16.0/assertables/assert_fn_ok) // functions that return Ok`
138
-
*`[assert_fn_err_eq!(fn1, fn2);](https://docs.rs/assertables/8.16.0/assertables/assert_fn_err) // functions that return Err`
139
+
*`[assert_fn_eq!(fn1, fn2);](https://docs.rs/assertables/8.17.0/assertables/assert_fn) // functions that return values`
140
+
*`[assert_fn_ok_eq!(fn1, fn2);](https://docs.rs/assertables/8.17.0/assertables/assert_fn_ok) // functions that return Ok`
141
+
*`[assert_fn_err_eq!(fn1, fn2);](https://docs.rs/assertables/8.17.0/assertables/assert_fn_err) // functions that return Err`
139
142
140
143
141
144
## Forms
142
145
143
146
All assertables macros have forms for different outcomes:
144
147
145
-
*`[assert_gt!(a, b);](https://docs.rs/assertables/8.16.0/assertables/macro.assert_gt.html) // panic during typical test`
146
-
*`[assert_gt_as_result!(a, b);](https://docs.rs/assertables/8.16.0/assertables/macro.assert_gt_as_result.html) // return Ok or Err`
147
-
*`[debug_assert_gt!(a, b);](https://docs.rs/assertables/8.16.0/assertables/macro.debug_assert_gt.html) // panic when in debug mode`
148
+
*`[assert_gt!(a, b);](https://docs.rs/assertables/8.17.0/assertables/macro.assert_gt.html) // panic during typical test`
149
+
*`[assert_gt_as_result!(a, b);](https://docs.rs/assertables/8.17.0/assertables/macro.assert_gt_as_result.html) // return Ok or Err`
150
+
*`[debug_assert_gt!(a, b);](https://docs.rs/assertables/8.17.0/assertables/macro.debug_assert_gt.html) // panic when in debug mode`
148
151
149
152
All assertables macros have forms for an optional message:
0 commit comments