From 7abbb4c20032e178471a9436d1278d846abccc84 Mon Sep 17 00:00:00 2001 From: Joel Parker Henderson Date: Thu, 31 Oct 2024 12:04:00 +0100 Subject: [PATCH] Rename assert_process params akin to assert_command params --- CHANGES.md | 2 +- Cargo.toml | 2 +- LICENSE.md | 2 +- README.md | 186 +++--- bin/exit-with-arg | 2 + doc/lib/all.html | 2 +- .../assert_ends_with/index.html | 4 +- .../assert_not_ends_with/index.html | 4 +- doc/lib/assert_ends_with/index.html | 8 +- doc/lib/assert_err/assert_err/index.html | 2 +- doc/lib/assert_err/assert_err_eq/index.html | 2 +- doc/lib/assert_err/assert_err_eq_x/index.html | 2 +- doc/lib/assert_err/assert_err_ne/index.html | 2 +- doc/lib/assert_err/assert_err_ne_x/index.html | 2 +- doc/lib/assert_ok/assert_ok/index.html | 2 +- doc/lib/assert_ok/assert_ok_eq/index.html | 2 +- doc/lib/assert_ok/assert_ok_eq_x/index.html | 2 +- doc/lib/assert_ok/assert_ok_ne/index.html | 2 +- doc/lib/assert_ok/assert_ok_ne_x/index.html | 2 +- .../index.html | 17 + .../sidebar-items.js | 1 + .../index.html | 17 + .../sidebar-items.js | 1 + .../index.html | 17 + .../sidebar-items.js | 1 + .../index.html | 17 + .../sidebar-items.js | 1 + .../index.html | 17 + .../sidebar-items.js | 1 + .../index.html | 17 + .../sidebar-items.js | 1 + .../index.html | 17 + .../sidebar-items.js | 1 + .../index.html | 17 + .../sidebar-items.js | 1 + .../index.html | 17 + .../sidebar-items.js | 1 + .../index.html | 17 + .../sidebar-items.js | 1 + .../index.html | 17 + .../sidebar-items.js | 1 + .../index.html | 17 + .../sidebar-items.js | 1 + doc/lib/assert_process/index.html | 29 + doc/lib/assert_process/sidebar-items.js | 1 + doc/lib/assert_ready/assert_ready/index.html | 2 +- .../assert_ready/assert_ready_eq/index.html | 2 +- .../assert_ready/assert_ready_eq_x/index.html | 2 +- .../assert_ready/assert_ready_ne/index.html | 2 +- .../assert_ready/assert_ready_ne_x/index.html | 2 +- doc/lib/assert_some/assert_some/index.html | 2 +- doc/lib/assert_some/assert_some_eq/index.html | 2 +- .../assert_some/assert_some_eq_x/index.html | 2 +- doc/lib/assert_some/assert_some_ne/index.html | 2 +- .../assert_some/assert_some_ne_x/index.html | 2 +- .../assert_not_starts_with/index.html | 4 +- .../assert_starts_with/index.html | 4 +- doc/lib/assert_starts_with/index.html | 8 +- doc/lib/index.html | 185 +++--- doc/lib/macro.assert_abs_diff_eq.html | 2 +- doc/lib/macro.assert_abs_diff_ge.html | 2 +- doc/lib/macro.assert_abs_diff_gt.html | 2 +- doc/lib/macro.assert_abs_diff_le.html | 2 +- doc/lib/macro.assert_abs_diff_lt.html | 2 +- doc/lib/macro.assert_abs_diff_ne.html | 2 +- doc/lib/macro.assert_all.html | 2 +- doc/lib/macro.assert_any.html | 2 +- doc/lib/macro.assert_approx_eq.html | 2 +- doc/lib/macro.assert_approx_ne.html | 2 +- doc/lib/macro.assert_bag_eq.html | 2 +- doc/lib/macro.assert_bag_ne.html | 2 +- doc/lib/macro.assert_bag_subbag.html | 2 +- doc/lib/macro.assert_bag_superbag.html | 2 +- doc/lib/macro.assert_command_stderr_eq.html | 2 +- doc/lib/macro.assert_command_stderr_eq_x.html | 2 +- doc/lib/macro.assert_command_stderr_ge.html | 2 +- doc/lib/macro.assert_command_stderr_ge_x.html | 2 +- doc/lib/macro.assert_command_stderr_gt.html | 2 +- doc/lib/macro.assert_command_stderr_gt_x.html | 2 +- doc/lib/macro.assert_command_stderr_le.html | 2 +- doc/lib/macro.assert_command_stderr_le_x.html | 2 +- doc/lib/macro.assert_command_stderr_lt.html | 2 +- doc/lib/macro.assert_command_stderr_lt_x.html | 2 +- doc/lib/macro.assert_command_stderr_ne.html | 2 +- doc/lib/macro.assert_command_stderr_ne_x.html | 2 +- ...assert_command_stderr_string_contains.html | 2 +- ...assert_command_stderr_string_is_match.html | 2 +- doc/lib/macro.assert_command_stdout_eq.html | 2 +- doc/lib/macro.assert_command_stdout_eq_x.html | 2 +- doc/lib/macro.assert_command_stdout_ge.html | 2 +- doc/lib/macro.assert_command_stdout_ge_x.html | 2 +- doc/lib/macro.assert_command_stdout_gt.html | 2 +- doc/lib/macro.assert_command_stdout_gt_x.html | 2 +- doc/lib/macro.assert_command_stdout_le.html | 2 +- doc/lib/macro.assert_command_stdout_le_x.html | 2 +- doc/lib/macro.assert_command_stdout_lt.html | 2 +- doc/lib/macro.assert_command_stdout_lt_x.html | 2 +- doc/lib/macro.assert_command_stdout_ne.html | 2 +- doc/lib/macro.assert_command_stdout_ne_x.html | 2 +- ...assert_command_stdout_string_contains.html | 2 +- ...assert_command_stdout_string_is_match.html | 2 +- doc/lib/macro.assert_contains.html | 2 +- doc/lib/macro.assert_count_eq.html | 2 +- doc/lib/macro.assert_count_eq_x.html | 2 +- doc/lib/macro.assert_count_ge.html | 2 +- doc/lib/macro.assert_count_ge_x.html | 2 +- doc/lib/macro.assert_count_gt.html | 2 +- doc/lib/macro.assert_count_gt_x.html | 2 +- doc/lib/macro.assert_count_le.html | 2 +- doc/lib/macro.assert_count_le_x.html | 2 +- doc/lib/macro.assert_count_lt.html | 2 +- doc/lib/macro.assert_count_lt_x.html | 2 +- doc/lib/macro.assert_count_ne.html | 2 +- doc/lib/macro.assert_count_ne_x.html | 2 +- doc/lib/macro.assert_ends_with.html | 10 +- doc/lib/macro.assert_err.html | 4 +- doc/lib/macro.assert_err_as_result.html | 2 +- doc/lib/macro.assert_err_eq.html | 4 +- doc/lib/macro.assert_err_eq_as_result.html | 2 +- doc/lib/macro.assert_err_eq_x.html | 4 +- doc/lib/macro.assert_err_eq_x_as_result.html | 2 +- doc/lib/macro.assert_err_ne.html | 4 +- doc/lib/macro.assert_err_ne_as_result.html | 2 +- doc/lib/macro.assert_err_ne_x.html | 4 +- doc/lib/macro.assert_err_ne_x_as_result.html | 2 +- doc/lib/macro.assert_fn_eq.html | 2 +- doc/lib/macro.assert_fn_eq_x.html | 2 +- doc/lib/macro.assert_fn_err_eq.html | 2 +- doc/lib/macro.assert_fn_err_eq_x.html | 2 +- doc/lib/macro.assert_fn_err_ge.html | 2 +- doc/lib/macro.assert_fn_err_ge_x.html | 2 +- doc/lib/macro.assert_fn_err_gt.html | 2 +- doc/lib/macro.assert_fn_err_gt_x.html | 2 +- doc/lib/macro.assert_fn_err_le.html | 2 +- doc/lib/macro.assert_fn_err_le_x.html | 2 +- doc/lib/macro.assert_fn_err_lt.html | 2 +- doc/lib/macro.assert_fn_err_lt_x.html | 2 +- doc/lib/macro.assert_fn_err_ne.html | 2 +- doc/lib/macro.assert_fn_err_ne_x.html | 2 +- doc/lib/macro.assert_fn_ge.html | 2 +- doc/lib/macro.assert_fn_ge_x.html | 2 +- doc/lib/macro.assert_fn_gt.html | 2 +- doc/lib/macro.assert_fn_gt_x.html | 2 +- doc/lib/macro.assert_fn_le.html | 2 +- doc/lib/macro.assert_fn_le_x.html | 2 +- doc/lib/macro.assert_fn_lt.html | 2 +- doc/lib/macro.assert_fn_lt_x.html | 2 +- doc/lib/macro.assert_fn_ne.html | 2 +- doc/lib/macro.assert_fn_ok_eq.html | 2 +- doc/lib/macro.assert_fn_ok_eq_x.html | 2 +- doc/lib/macro.assert_fn_ok_ge.html | 2 +- doc/lib/macro.assert_fn_ok_ge_x.html | 2 +- doc/lib/macro.assert_fn_ok_gt.html | 2 +- doc/lib/macro.assert_fn_ok_gt_x.html | 2 +- doc/lib/macro.assert_fn_ok_le.html | 2 +- doc/lib/macro.assert_fn_ok_le_x.html | 2 +- doc/lib/macro.assert_fn_ok_lt_x.html | 2 +- doc/lib/macro.assert_fn_ok_ne.html | 2 +- doc/lib/macro.assert_fn_ok_ne_x.html | 2 +- ...cro.assert_fs_read_to_string_contains.html | 2 +- .../macro.assert_fs_read_to_string_eq.html | 2 +- .../macro.assert_fs_read_to_string_eq_x.html | 2 +- .../macro.assert_fs_read_to_string_ge.html | 2 +- .../macro.assert_fs_read_to_string_ge_x.html | 2 +- .../macro.assert_fs_read_to_string_gt.html | 2 +- .../macro.assert_fs_read_to_string_gt_x.html | 2 +- ...cro.assert_fs_read_to_string_is_match.html | 2 +- .../macro.assert_fs_read_to_string_le.html | 2 +- .../macro.assert_fs_read_to_string_le_x.html | 2 +- .../macro.assert_fs_read_to_string_lt.html | 2 +- .../macro.assert_fs_read_to_string_lt_x.html | 2 +- .../macro.assert_fs_read_to_string_ne.html | 2 +- .../macro.assert_fs_read_to_string_ne_x.html | 2 +- doc/lib/macro.assert_ge.html | 2 +- doc/lib/macro.assert_gt.html | 2 +- doc/lib/macro.assert_in_delta.html | 2 +- doc/lib/macro.assert_in_epsilon.html | 2 +- doc/lib/macro.assert_infix.html | 2 +- ...cro.assert_io_read_to_string_contains.html | 2 +- .../macro.assert_io_read_to_string_eq.html | 2 +- .../macro.assert_io_read_to_string_eq_x.html | 2 +- .../macro.assert_io_read_to_string_ge.html | 2 +- .../macro.assert_io_read_to_string_ge_x.html | 2 +- .../macro.assert_io_read_to_string_gt.html | 2 +- .../macro.assert_io_read_to_string_gt_x.html | 2 +- ...cro.assert_io_read_to_string_is_match.html | 2 +- .../macro.assert_io_read_to_string_le.html | 2 +- .../macro.assert_io_read_to_string_le_x.html | 2 +- .../macro.assert_io_read_to_string_lt.html | 2 +- .../macro.assert_io_read_to_string_lt_x.html | 2 +- .../macro.assert_io_read_to_string_ne.html | 2 +- .../macro.assert_io_read_to_string_ne_x.html | 2 +- doc/lib/macro.assert_is_empty.html | 2 +- doc/lib/macro.assert_is_match.html | 2 +- doc/lib/macro.assert_iter_eq.html | 2 +- doc/lib/macro.assert_iter_ge.html | 2 +- doc/lib/macro.assert_iter_gt.html | 2 +- doc/lib/macro.assert_iter_le.html | 2 +- doc/lib/macro.assert_iter_lt.html | 2 +- doc/lib/macro.assert_iter_ne.html | 2 +- doc/lib/macro.assert_le.html | 2 +- doc/lib/macro.assert_len_eq.html | 2 +- doc/lib/macro.assert_len_eq_x.html | 2 +- doc/lib/macro.assert_len_ge.html | 2 +- doc/lib/macro.assert_len_ge_x.html | 2 +- doc/lib/macro.assert_len_gt.html | 2 +- doc/lib/macro.assert_len_gt_x.html | 2 +- doc/lib/macro.assert_len_le.html | 2 +- doc/lib/macro.assert_len_le_x.html | 2 +- doc/lib/macro.assert_len_lt.html | 2 +- doc/lib/macro.assert_len_lt_x.html | 2 +- doc/lib/macro.assert_len_ne.html | 2 +- doc/lib/macro.assert_len_ne_x.html | 2 +- doc/lib/macro.assert_lt.html | 2 +- doc/lib/macro.assert_matches.html | 2 +- doc/lib/macro.assert_none.html | 2 +- doc/lib/macro.assert_not_contains.html | 2 +- doc/lib/macro.assert_not_empty.html | 2 +- doc/lib/macro.assert_not_ends_with.html | 10 +- doc/lib/macro.assert_not_match.html | 2 +- doc/lib/macro.assert_not_matches.html | 2 +- doc/lib/macro.assert_not_starts_with.html | 10 +- doc/lib/macro.assert_ok.html | 4 +- doc/lib/macro.assert_ok_as_result.html | 2 +- doc/lib/macro.assert_ok_eq.html | 4 +- doc/lib/macro.assert_ok_eq_as_result.html | 2 +- doc/lib/macro.assert_ok_eq_x.html | 4 +- doc/lib/macro.assert_ok_eq_x_as_result.html | 2 +- doc/lib/macro.assert_ok_ne.html | 4 +- doc/lib/macro.assert_ok_ne_as_result.html | 2 +- doc/lib/macro.assert_ok_ne_x.html | 4 +- doc/lib/macro.assert_ok_ne_x_as_result.html | 2 +- doc/lib/macro.assert_pending.html | 2 +- ....assert_process_status_code_value_eq!.html | 11 + ...o.assert_process_status_code_value_eq.html | 42 ++ ...ocess_status_code_value_eq_as_result!.html | 11 + ...rocess_status_code_value_eq_as_result.html | 24 + ...ssert_process_status_code_value_eq_x!.html | 11 + ...assert_process_status_code_value_eq_x.html | 41 ++ ...ess_status_code_value_eq_x_as_result!.html | 11 + ...cess_status_code_value_eq_x_as_result.html | 24 + ....assert_process_status_code_value_ge!.html | 11 + ...o.assert_process_status_code_value_ge.html | 42 ++ ...ocess_status_code_value_ge_as_result!.html | 11 + ...rocess_status_code_value_ge_as_result.html | 24 + ...ssert_process_status_code_value_ge_x!.html | 11 + ...assert_process_status_code_value_ge_x.html | 41 ++ ...ess_status_code_value_ge_x_as_result!.html | 11 + ...cess_status_code_value_ge_x_as_result.html | 24 + ....assert_process_status_code_value_gt!.html | 11 + ...o.assert_process_status_code_value_gt.html | 42 ++ ...ocess_status_code_value_gt_as_result!.html | 11 + ...rocess_status_code_value_gt_as_result.html | 24 + ...ssert_process_status_code_value_gt_x!.html | 11 + ...assert_process_status_code_value_gt_x.html | 41 ++ ...ess_status_code_value_gt_x_as_result!.html | 11 + ...cess_status_code_value_gt_x_as_result.html | 24 + ....assert_process_status_code_value_le!.html | 11 + ...o.assert_process_status_code_value_le.html | 42 ++ ...ocess_status_code_value_le_as_result!.html | 11 + ...rocess_status_code_value_le_as_result.html | 24 + ...ssert_process_status_code_value_le_x!.html | 11 + ...assert_process_status_code_value_le_x.html | 41 ++ ...ess_status_code_value_le_x_as_result!.html | 11 + ...cess_status_code_value_le_x_as_result.html | 24 + ....assert_process_status_code_value_lt!.html | 11 + ...o.assert_process_status_code_value_lt.html | 42 ++ ...ocess_status_code_value_lt_as_result!.html | 11 + ...rocess_status_code_value_lt_as_result.html | 24 + ...ssert_process_status_code_value_lt_x!.html | 11 + ...assert_process_status_code_value_lt_x.html | 41 ++ ...ess_status_code_value_lt_x_as_result!.html | 11 + ...cess_status_code_value_lt_x_as_result.html | 24 + ....assert_process_status_code_value_ne!.html | 11 + ...o.assert_process_status_code_value_ne.html | 42 ++ ...ocess_status_code_value_ne_as_result!.html | 11 + ...rocess_status_code_value_ne_as_result.html | 24 + ...ssert_process_status_code_value_ne_x!.html | 11 + ...assert_process_status_code_value_ne_x.html | 41 ++ ...ess_status_code_value_ne_x_as_result!.html | 11 + ...cess_status_code_value_ne_x_as_result.html | 24 + .../macro.assert_program_args_stderr_eq.html | 2 +- ...macro.assert_program_args_stderr_eq_x.html | 2 +- .../macro.assert_program_args_stderr_ge.html | 2 +- ...macro.assert_program_args_stderr_ge_x.html | 2 +- .../macro.assert_program_args_stderr_gt.html | 2 +- ...macro.assert_program_args_stderr_gt_x.html | 2 +- .../macro.assert_program_args_stderr_le.html | 2 +- ...macro.assert_program_args_stderr_le_x.html | 2 +- .../macro.assert_program_args_stderr_lt.html | 2 +- ...macro.assert_program_args_stderr_lt_x.html | 2 +- .../macro.assert_program_args_stderr_ne.html | 2 +- ...macro.assert_program_args_stderr_ne_x.html | 2 +- ...t_program_args_stderr_string_contains.html | 2 +- ...t_program_args_stderr_string_is_match.html | 2 +- .../macro.assert_program_args_stdout_eq.html | 2 +- ...macro.assert_program_args_stdout_eq_x.html | 2 +- .../macro.assert_program_args_stdout_ge.html | 2 +- ...macro.assert_program_args_stdout_ge_x.html | 2 +- .../macro.assert_program_args_stdout_gt.html | 2 +- ...macro.assert_program_args_stdout_gt_x.html | 2 +- .../macro.assert_program_args_stdout_le.html | 2 +- ...macro.assert_program_args_stdout_le_x.html | 2 +- .../macro.assert_program_args_stdout_lt.html | 2 +- ...macro.assert_program_args_stdout_lt_x.html | 2 +- .../macro.assert_program_args_stdout_ne.html | 2 +- ...macro.assert_program_args_stdout_ne_x.html | 2 +- ...t_program_args_stdout_string_contains.html | 2 +- ...t_program_args_stdout_string_is_match.html | 2 +- doc/lib/macro.assert_ready.html | 4 +- doc/lib/macro.assert_ready_as_result.html | 2 +- doc/lib/macro.assert_ready_eq.html | 4 +- doc/lib/macro.assert_ready_eq_as_result.html | 2 +- doc/lib/macro.assert_ready_eq_x.html | 4 +- .../macro.assert_ready_eq_x_as_result.html | 2 +- doc/lib/macro.assert_ready_ne.html | 4 +- doc/lib/macro.assert_ready_ne_as_result.html | 2 +- doc/lib/macro.assert_ready_ne_x.html | 4 +- .../macro.assert_ready_ne_x_as_result.html | 2 +- doc/lib/macro.assert_set_disjoint.html | 2 +- doc/lib/macro.assert_set_eq.html | 2 +- doc/lib/macro.assert_set_joint.html | 2 +- doc/lib/macro.assert_set_ne.html | 2 +- doc/lib/macro.assert_set_subset.html | 2 +- doc/lib/macro.assert_set_superset.html | 2 +- doc/lib/macro.assert_some.html | 4 +- doc/lib/macro.assert_some_as_result.html | 2 +- doc/lib/macro.assert_some_eq.html | 4 +- doc/lib/macro.assert_some_eq_as_result.html | 2 +- doc/lib/macro.assert_some_eq_x.html | 4 +- doc/lib/macro.assert_some_eq_x_as_result.html | 2 +- doc/lib/macro.assert_some_ne.html | 4 +- doc/lib/macro.assert_some_ne_as_result.html | 2 +- doc/lib/macro.assert_some_ne_x.html | 4 +- doc/lib/macro.assert_some_ne_x_as_result.html | 2 +- doc/lib/macro.assert_starts_with.html | 10 +- doc/lib/macro.debug_assert_err.html | 2 +- doc/lib/macro.debug_assert_err_eq.html | 2 +- doc/lib/macro.debug_assert_err_eq_x.html | 2 +- doc/lib/macro.debug_assert_err_ne.html | 2 +- doc/lib/macro.debug_assert_err_ne_x.html | 2 +- doc/lib/macro.debug_assert_ok.html | 2 +- doc/lib/macro.debug_assert_ok_eq.html | 2 +- doc/lib/macro.debug_assert_ok_eq_x.html | 2 +- doc/lib/macro.debug_assert_ok_ne.html | 2 +- doc/lib/macro.debug_assert_ok_ne_x.html | 2 +- ..._assert_process_status_code_value_eq!.html | 11 + ...g_assert_process_status_code_value_eq.html | 27 + ...ssert_process_status_code_value_eq_x!.html | 11 + ...assert_process_status_code_value_eq_x.html | 27 + ..._assert_process_status_code_value_ge!.html | 11 + ...g_assert_process_status_code_value_ge.html | 27 + ...ssert_process_status_code_value_ge_x!.html | 11 + ...assert_process_status_code_value_ge_x.html | 27 + ..._assert_process_status_code_value_gt!.html | 11 + ...g_assert_process_status_code_value_gt.html | 27 + ...ssert_process_status_code_value_gt_x!.html | 11 + ...assert_process_status_code_value_gt_x.html | 27 + ..._assert_process_status_code_value_le!.html | 11 + ...g_assert_process_status_code_value_le.html | 27 + ...ssert_process_status_code_value_le_x!.html | 11 + ...assert_process_status_code_value_le_x.html | 27 + ..._assert_process_status_code_value_lt!.html | 11 + ...g_assert_process_status_code_value_lt.html | 27 + ...ssert_process_status_code_value_lt_x!.html | 11 + ...assert_process_status_code_value_lt_x.html | 27 + ..._assert_process_status_code_value_ne!.html | 11 + ...g_assert_process_status_code_value_ne.html | 27 + ...ssert_process_status_code_value_ne_x!.html | 11 + ...assert_process_status_code_value_ne_x.html | 27 + doc/lib/macro.debug_assert_ready.html | 2 +- doc/lib/macro.debug_assert_ready_eq.html | 2 +- doc/lib/macro.debug_assert_ready_eq_x.html | 2 +- doc/lib/macro.debug_assert_ready_ne.html | 2 +- doc/lib/macro.debug_assert_ready_ne_x.html | 2 +- doc/lib/macro.debug_assert_some.html | 2 +- doc/lib/macro.debug_assert_some_eq.html | 2 +- doc/lib/macro.debug_assert_some_eq_x.html | 2 +- doc/lib/macro.debug_assert_some_ne.html | 2 +- doc/lib/macro.debug_assert_some_ne_x.html | 2 +- doc/lib/sidebar-items.js | 2 +- doc/search-index.js | 4 +- doc/search.desc/lib/lib-desc-0-.js | 2 +- doc/src-files.js | 4 +- doc/src/lib/assert.rs.html | 4 +- .../assert_abs_diff_eq.rs.html | 10 +- .../assert_abs_diff_ge.rs.html | 8 +- .../assert_abs_diff_gt.rs.html | 10 +- .../assert_abs_diff_le.rs.html | 8 +- .../assert_abs_diff_lt.rs.html | 10 +- .../assert_abs_diff_ne.rs.html | 8 +- doc/src/lib/assert_all.rs.html | 8 +- doc/src/lib/assert_any.rs.html | 8 +- .../assert_approx/assert_approx_eq.rs.html | 8 +- .../assert_approx/assert_approx_ne.rs.html | 8 +- doc/src/lib/assert_bag/assert_bag_eq.rs.html | 8 +- doc/src/lib/assert_bag/assert_bag_ne.rs.html | 8 +- .../lib/assert_bag/assert_bag_subbag.rs.html | 10 +- .../assert_bag/assert_bag_superbag.rs.html | 10 +- .../assert_command_stderr_eq.rs.html | 12 +- .../assert_command_stderr_eq_x.rs.html | 12 +- .../assert_command_stderr_ge.rs.html | 10 +- .../assert_command_stderr_ge_x.rs.html | 10 +- .../assert_command_stderr_gt.rs.html | 12 +- .../assert_command_stderr_gt_x.rs.html | 12 +- .../assert_command_stderr_le.rs.html | 10 +- .../assert_command_stderr_le_x.rs.html | 10 +- .../assert_command_stderr_lt.rs.html | 12 +- .../assert_command_stderr_lt_x.rs.html | 12 +- .../assert_command_stderr_ne.rs.html | 10 +- .../assert_command_stderr_ne_x.rs.html | 10 +- ...ert_command_stderr_string_contains.rs.html | 10 +- ...ert_command_stderr_string_is_match.rs.html | 10 +- .../assert_command_stdout_eq.rs.html | 10 +- .../assert_command_stdout_eq_x.rs.html | 12 +- .../assert_command_stdout_ge.rs.html | 10 +- .../assert_command_stdout_ge_x.rs.html | 10 +- .../assert_command_stdout_gt.rs.html | 12 +- .../assert_command_stdout_gt_x.rs.html | 12 +- .../assert_command_stdout_le.rs.html | 10 +- .../assert_command_stdout_le_x.rs.html | 10 +- .../assert_command_stdout_lt.rs.html | 12 +- .../assert_command_stdout_lt_x.rs.html | 12 +- .../assert_command_stdout_ne.rs.html | 10 +- .../assert_command_stdout_ne_x.rs.html | 10 +- ...ert_command_stdout_string_contains.rs.html | 10 +- ...ert_command_stdout_string_is_match.rs.html | 10 +- .../assert_contains/assert_contains.rs.html | 12 +- .../assert_not_contains.rs.html | 12 +- .../lib/assert_count/assert_count_eq.rs.html | 10 +- .../assert_count/assert_count_eq_x.rs.html | 10 +- .../lib/assert_count/assert_count_ge.rs.html | 8 +- .../assert_count/assert_count_ge_x.rs.html | 8 +- .../lib/assert_count/assert_count_gt.rs.html | 10 +- .../assert_count/assert_count_gt_x.rs.html | 10 +- .../lib/assert_count/assert_count_le.rs.html | 8 +- .../assert_count/assert_count_le_x.rs.html | 8 +- .../lib/assert_count/assert_count_lt.rs.html | 10 +- .../assert_count/assert_count_lt_x.rs.html | 10 +- .../lib/assert_count/assert_count_ne.rs.html | 8 +- .../assert_count/assert_count_ne_x.rs.html | 8 +- .../assert_ends_with/assert_ends_with.rs.html | 34 +- .../assert_not_ends_with.rs.html | 34 +- doc/src/lib/assert_ends_with/mod.rs.html | 8 +- doc/src/lib/assert_eq.rs.html | 4 +- doc/src/lib/assert_err/assert_err.rs.html | 56 +- doc/src/lib/assert_err/assert_err_eq.rs.html | 106 ++-- .../lib/assert_err/assert_err_eq_x.rs.html | 104 ++- doc/src/lib/assert_err/assert_err_ne.rs.html | 106 ++-- .../lib/assert_err/assert_err_ne_x.rs.html | 104 ++- doc/src/lib/assert_fn/assert_fn_eq.rs.html | 12 +- doc/src/lib/assert_fn/assert_fn_eq_x.rs.html | 12 +- doc/src/lib/assert_fn/assert_fn_ge.rs.html | 12 +- doc/src/lib/assert_fn/assert_fn_ge_x.rs.html | 12 +- doc/src/lib/assert_fn/assert_fn_gt.rs.html | 16 +- doc/src/lib/assert_fn/assert_fn_gt_x.rs.html | 16 +- doc/src/lib/assert_fn/assert_fn_le.rs.html | 12 +- doc/src/lib/assert_fn/assert_fn_le_x.rs.html | 12 +- doc/src/lib/assert_fn/assert_fn_lt.rs.html | 16 +- doc/src/lib/assert_fn/assert_fn_lt_x.rs.html | 16 +- doc/src/lib/assert_fn/assert_fn_ne.rs.html | 12 +- doc/src/lib/assert_fn/assert_fn_ne_x.rs.html | 10 +- .../assert_fn_err/assert_fn_err_eq.rs.html | 16 +- .../assert_fn_err/assert_fn_err_eq_x.rs.html | 16 +- .../assert_fn_err/assert_fn_err_ge.rs.html | 16 +- .../assert_fn_err/assert_fn_err_ge_x.rs.html | 16 +- .../assert_fn_err/assert_fn_err_gt.rs.html | 20 +- .../assert_fn_err/assert_fn_err_gt_x.rs.html | 20 +- .../assert_fn_err/assert_fn_err_le.rs.html | 16 +- .../assert_fn_err/assert_fn_err_le_x.rs.html | 16 +- .../assert_fn_err/assert_fn_err_lt.rs.html | 20 +- .../assert_fn_err/assert_fn_err_lt_x.rs.html | 20 +- .../assert_fn_err/assert_fn_err_ne.rs.html | 16 +- .../assert_fn_err/assert_fn_err_ne_x.rs.html | 16 +- .../lib/assert_fn_ok/assert_fn_ok_eq.rs.html | 16 +- .../assert_fn_ok/assert_fn_ok_eq_x.rs.html | 16 +- .../lib/assert_fn_ok/assert_fn_ok_ge.rs.html | 16 +- .../assert_fn_ok/assert_fn_ok_ge_x.rs.html | 16 +- .../lib/assert_fn_ok/assert_fn_ok_gt.rs.html | 20 +- .../assert_fn_ok/assert_fn_ok_gt_x.rs.html | 20 +- .../lib/assert_fn_ok/assert_fn_ok_le.rs.html | 16 +- .../assert_fn_ok/assert_fn_ok_le_x.rs.html | 16 +- .../lib/assert_fn_ok/assert_fn_ok_lt.rs.html | 18 +- .../assert_fn_ok/assert_fn_ok_lt_x.rs.html | 16 +- .../lib/assert_fn_ok/assert_fn_ok_ne.rs.html | 16 +- .../assert_fn_ok/assert_fn_ok_ne_x.rs.html | 16 +- .../assert_fs_read_to_string_contains.rs.html | 10 +- .../assert_fs_read_to_string_eq.rs.html | 12 +- .../assert_fs_read_to_string_eq_x.rs.html | 12 +- .../assert_fs_read_to_string_ge.rs.html | 10 +- .../assert_fs_read_to_string_ge_x.rs.html | 10 +- .../assert_fs_read_to_string_gt.rs.html | 12 +- .../assert_fs_read_to_string_gt_x.rs.html | 12 +- .../assert_fs_read_to_string_is_match.rs.html | 10 +- .../assert_fs_read_to_string_le.rs.html | 10 +- .../assert_fs_read_to_string_le_x.rs.html | 10 +- .../assert_fs_read_to_string_lt.rs.html | 12 +- .../assert_fs_read_to_string_lt_x.rs.html | 12 +- .../assert_fs_read_to_string_ne.rs.html | 10 +- .../assert_fs_read_to_string_ne_x.rs.html | 10 +- doc/src/lib/assert_ge.rs.html | 8 +- doc/src/lib/assert_gt.rs.html | 8 +- doc/src/lib/assert_in/assert_in_delta.rs.html | 8 +- .../lib/assert_in/assert_in_epsilon.rs.html | 8 +- doc/src/lib/assert_infix.rs.html | 10 +- .../assert_io_read_to_string_contains.rs.html | 10 +- .../assert_io_read_to_string_eq.rs.html | 12 +- .../assert_io_read_to_string_eq_x.rs.html | 12 +- .../assert_io_read_to_string_ge.rs.html | 10 +- .../assert_io_read_to_string_ge_x.rs.html | 10 +- .../assert_io_read_to_string_gt.rs.html | 12 +- .../assert_io_read_to_string_gt_x.rs.html | 12 +- .../assert_io_read_to_string_is_match.rs.html | 10 +- .../assert_io_read_to_string_le.rs.html | 10 +- .../assert_io_read_to_string_le_x.rs.html | 10 +- .../assert_io_read_to_string_lt.rs.html | 10 +- .../assert_io_read_to_string_lt_x.rs.html | 10 +- .../assert_io_read_to_string_ne.rs.html | 10 +- .../assert_io_read_to_string_ne_x.rs.html | 10 +- .../assert_is_empty/assert_is_empty.rs.html | 8 +- .../assert_is_empty/assert_not_empty.rs.html | 8 +- .../assert_is_match/assert_is_match.rs.html | 8 +- .../assert_is_match/assert_not_match.rs.html | 8 +- .../lib/assert_iter/assert_iter_eq.rs.html | 8 +- .../lib/assert_iter/assert_iter_ge.rs.html | 8 +- .../lib/assert_iter/assert_iter_gt.rs.html | 10 +- .../lib/assert_iter/assert_iter_le.rs.html | 8 +- .../lib/assert_iter/assert_iter_lt.rs.html | 10 +- .../lib/assert_iter/assert_iter_ne.rs.html | 8 +- doc/src/lib/assert_le.rs.html | 8 +- doc/src/lib/assert_len/assert_len_eq.rs.html | 10 +- .../lib/assert_len/assert_len_eq_x.rs.html | 10 +- doc/src/lib/assert_len/assert_len_ge.rs.html | 8 +- .../lib/assert_len/assert_len_ge_x.rs.html | 8 +- doc/src/lib/assert_len/assert_len_gt.rs.html | 10 +- .../lib/assert_len/assert_len_gt_x.rs.html | 10 +- doc/src/lib/assert_len/assert_len_le.rs.html | 8 +- .../lib/assert_len/assert_len_le_x.rs.html | 8 +- doc/src/lib/assert_len/assert_len_lt.rs.html | 10 +- .../lib/assert_len/assert_len_lt_x.rs.html | 10 +- doc/src/lib/assert_len/assert_len_ne.rs.html | 8 +- .../lib/assert_len/assert_len_ne_x.rs.html | 8 +- doc/src/lib/assert_lt.rs.html | 8 +- .../lib/assert_matches/assert_matches.rs.html | 10 +- .../assert_matches/assert_not_matches.rs.html | 10 +- doc/src/lib/assert_ne.rs.html | 4 +- doc/src/lib/assert_none/assert_none.rs.html | 8 +- doc/src/lib/assert_ok/assert_ok.rs.html | 52 +- doc/src/lib/assert_ok/assert_ok_eq.rs.html | 82 ++- doc/src/lib/assert_ok/assert_ok_eq_x.rs.html | 104 ++- doc/src/lib/assert_ok/assert_ok_ne.rs.html | 82 ++- doc/src/lib/assert_ok/assert_ok_ne_x.rs.html | 104 ++- .../lib/assert_pending/assert_pending.rs.html | 8 +- ...ssert_process_status_code_value_eq.rs.html | 597 ++++++++++++++++++ ...ert_process_status_code_value_eq_x.rs.html | 571 +++++++++++++++++ ...ssert_process_status_code_value_ge.rs.html | 573 +++++++++++++++++ ...ert_process_status_code_value_ge_x.rs.html | 549 ++++++++++++++++ ...ssert_process_status_code_value_gt.rs.html | 597 ++++++++++++++++++ ...ert_process_status_code_value_gt_x.rs.html | 571 +++++++++++++++++ ...ssert_process_status_code_value_le.rs.html | 573 +++++++++++++++++ ...ert_process_status_code_value_le_x.rs.html | 549 ++++++++++++++++ ...ssert_process_status_code_value_lt.rs.html | 597 ++++++++++++++++++ ...ert_process_status_code_value_lt_x.rs.html | 571 +++++++++++++++++ ...ssert_process_status_code_value_ne.rs.html | 573 +++++++++++++++++ ...ert_process_status_code_value_ne_x.rs.html | 549 ++++++++++++++++ doc/src/lib/assert_process/mod.rs.html | 105 +++ .../assert_program_args_stderr_eq.rs.html | 10 +- .../assert_program_args_stderr_eq_x.rs.html | 12 +- .../assert_program_args_stderr_ge.rs.html | 10 +- .../assert_program_args_stderr_ge_x.rs.html | 10 +- .../assert_program_args_stderr_gt.rs.html | 12 +- .../assert_program_args_stderr_gt_x.rs.html | 10 +- .../assert_program_args_stderr_le.rs.html | 10 +- .../assert_program_args_stderr_le_x.rs.html | 10 +- .../assert_program_args_stderr_lt.rs.html | 12 +- .../assert_program_args_stderr_lt_x.rs.html | 10 +- .../assert_program_args_stderr_ne.rs.html | 10 +- .../assert_program_args_stderr_ne_x.rs.html | 10 +- ...rogram_args_stderr_string_contains.rs.html | 10 +- ...rogram_args_stderr_string_is_match.rs.html | 10 +- .../assert_program_args_stdout_eq.rs.html | 10 +- .../assert_program_args_stdout_eq_x.rs.html | 10 +- .../assert_program_args_stdout_ge.rs.html | 10 +- .../assert_program_args_stdout_ge_x.rs.html | 10 +- .../assert_program_args_stdout_gt.rs.html | 10 +- .../assert_program_args_stdout_gt_x.rs.html | 10 +- .../assert_program_args_stdout_le.rs.html | 10 +- .../assert_program_args_stdout_le_x.rs.html | 10 +- .../assert_program_args_stdout_lt.rs.html | 10 +- .../assert_program_args_stdout_lt_x.rs.html | 10 +- .../assert_program_args_stdout_ne.rs.html | 10 +- .../assert_program_args_stdout_ne_x.rs.html | 10 +- ...rogram_args_stdout_string_contains.rs.html | 10 +- ...rogram_args_stdout_string_is_match.rs.html | 10 +- doc/src/lib/assert_ready/assert_ready.rs.html | 56 +- .../lib/assert_ready/assert_ready_eq.rs.html | 106 ++-- .../assert_ready/assert_ready_eq_x.rs.html | 104 ++- .../lib/assert_ready/assert_ready_ne.rs.html | 106 ++-- .../assert_ready/assert_ready_ne_x.rs.html | 104 ++- .../assert_set/assert_set_disjoint.rs.html | 8 +- doc/src/lib/assert_set/assert_set_eq.rs.html | 8 +- .../lib/assert_set/assert_set_joint.rs.html | 8 +- doc/src/lib/assert_set/assert_set_ne.rs.html | 8 +- .../lib/assert_set/assert_set_subset.rs.html | 8 +- .../assert_set/assert_set_superset.rs.html | 8 +- doc/src/lib/assert_some/assert_some.rs.html | 56 +- .../lib/assert_some/assert_some_eq.rs.html | 106 ++-- .../lib/assert_some/assert_some_eq_x.rs.html | 104 ++- .../lib/assert_some/assert_some_ne.rs.html | 106 ++-- .../lib/assert_some/assert_some_ne_x.rs.html | 104 ++- .../assert_not_starts_with.rs.html | 34 +- .../assert_starts_with.rs.html | 34 +- doc/src/lib/assert_starts_with/mod.rs.html | 8 +- doc/src/lib/lib.rs.html | 182 +++--- help/comparisons/index.md | 2 +- src/assert.rs | 4 +- src/assert_abs_diff/assert_abs_diff_eq.rs | 10 +- src/assert_abs_diff/assert_abs_diff_ge.rs | 8 +- src/assert_abs_diff/assert_abs_diff_gt.rs | 10 +- src/assert_abs_diff/assert_abs_diff_le.rs | 8 +- src/assert_abs_diff/assert_abs_diff_lt.rs | 10 +- src/assert_abs_diff/assert_abs_diff_ne.rs | 8 +- src/assert_all.rs | 8 +- src/assert_any.rs | 8 +- src/assert_approx/assert_approx_eq.rs | 8 +- src/assert_approx/assert_approx_ne.rs | 8 +- src/assert_bag/assert_bag_eq.rs | 8 +- src/assert_bag/assert_bag_ne.rs | 8 +- src/assert_bag/assert_bag_subbag.rs | 10 +- src/assert_bag/assert_bag_superbag.rs | 10 +- .../assert_command_stderr_eq.rs | 12 +- .../assert_command_stderr_eq_x.rs | 12 +- .../assert_command_stderr_ge.rs | 10 +- .../assert_command_stderr_ge_x.rs | 10 +- .../assert_command_stderr_gt.rs | 12 +- .../assert_command_stderr_gt_x.rs | 12 +- .../assert_command_stderr_le.rs | 10 +- .../assert_command_stderr_le_x.rs | 10 +- .../assert_command_stderr_lt.rs | 12 +- .../assert_command_stderr_lt_x.rs | 12 +- .../assert_command_stderr_ne.rs | 10 +- .../assert_command_stderr_ne_x.rs | 10 +- .../assert_command_stderr_string_contains.rs | 10 +- .../assert_command_stderr_string_is_match.rs | 10 +- .../assert_command_stdout_eq.rs | 10 +- .../assert_command_stdout_eq_x.rs | 12 +- .../assert_command_stdout_ge.rs | 10 +- .../assert_command_stdout_ge_x.rs | 10 +- .../assert_command_stdout_gt.rs | 12 +- .../assert_command_stdout_gt_x.rs | 12 +- .../assert_command_stdout_le.rs | 10 +- .../assert_command_stdout_le_x.rs | 10 +- .../assert_command_stdout_lt.rs | 12 +- .../assert_command_stdout_lt_x.rs | 12 +- .../assert_command_stdout_ne.rs | 10 +- .../assert_command_stdout_ne_x.rs | 10 +- .../assert_command_stdout_string_contains.rs | 10 +- .../assert_command_stdout_string_is_match.rs | 10 +- src/assert_contains/assert_contains.rs | 12 +- src/assert_contains/assert_not_contains.rs | 12 +- src/assert_count/assert_count_eq.rs | 10 +- src/assert_count/assert_count_eq_x.rs | 10 +- src/assert_count/assert_count_ge.rs | 8 +- src/assert_count/assert_count_ge_x.rs | 8 +- src/assert_count/assert_count_gt.rs | 10 +- src/assert_count/assert_count_gt_x.rs | 10 +- src/assert_count/assert_count_le.rs | 8 +- src/assert_count/assert_count_le_x.rs | 8 +- src/assert_count/assert_count_lt.rs | 10 +- src/assert_count/assert_count_lt_x.rs | 10 +- src/assert_count/assert_count_ne.rs | 8 +- src/assert_count/assert_count_ne_x.rs | 8 +- src/assert_ends_with/assert_ends_with.rs | 34 +- src/assert_ends_with/assert_not_ends_with.rs | 34 +- src/assert_ends_with/mod.rs | 8 +- src/assert_eq.rs | 4 +- src/assert_fn/assert_fn_eq.rs | 12 +- src/assert_fn/assert_fn_eq_x.rs | 12 +- src/assert_fn/assert_fn_ge.rs | 12 +- src/assert_fn/assert_fn_ge_x.rs | 12 +- src/assert_fn/assert_fn_gt.rs | 16 +- src/assert_fn/assert_fn_gt_x.rs | 16 +- src/assert_fn/assert_fn_le.rs | 12 +- src/assert_fn/assert_fn_le_x.rs | 12 +- src/assert_fn/assert_fn_lt.rs | 16 +- src/assert_fn/assert_fn_lt_x.rs | 16 +- src/assert_fn/assert_fn_ne.rs | 12 +- src/assert_fn/assert_fn_ne_x.rs | 10 +- src/assert_fn_err/assert_fn_err_eq.rs | 16 +- src/assert_fn_err/assert_fn_err_eq_x.rs | 16 +- src/assert_fn_err/assert_fn_err_ge.rs | 16 +- src/assert_fn_err/assert_fn_err_ge_x.rs | 16 +- src/assert_fn_err/assert_fn_err_gt.rs | 20 +- src/assert_fn_err/assert_fn_err_gt_x.rs | 20 +- src/assert_fn_err/assert_fn_err_le.rs | 16 +- src/assert_fn_err/assert_fn_err_le_x.rs | 16 +- src/assert_fn_err/assert_fn_err_lt.rs | 20 +- src/assert_fn_err/assert_fn_err_lt_x.rs | 20 +- src/assert_fn_err/assert_fn_err_ne.rs | 16 +- src/assert_fn_err/assert_fn_err_ne_x.rs | 16 +- src/assert_fn_ok/assert_fn_ok_eq.rs | 16 +- src/assert_fn_ok/assert_fn_ok_eq_x.rs | 16 +- src/assert_fn_ok/assert_fn_ok_ge.rs | 16 +- src/assert_fn_ok/assert_fn_ok_ge_x.rs | 16 +- src/assert_fn_ok/assert_fn_ok_gt.rs | 20 +- src/assert_fn_ok/assert_fn_ok_gt_x.rs | 20 +- src/assert_fn_ok/assert_fn_ok_le.rs | 16 +- src/assert_fn_ok/assert_fn_ok_le_x.rs | 16 +- src/assert_fn_ok/assert_fn_ok_lt.rs | 18 +- src/assert_fn_ok/assert_fn_ok_lt_x.rs | 16 +- src/assert_fn_ok/assert_fn_ok_ne.rs | 16 +- src/assert_fn_ok/assert_fn_ok_ne_x.rs | 16 +- .../assert_fs_read_to_string_contains.rs | 10 +- .../assert_fs_read_to_string_eq.rs | 12 +- .../assert_fs_read_to_string_eq_x.rs | 12 +- .../assert_fs_read_to_string_ge.rs | 10 +- .../assert_fs_read_to_string_ge_x.rs | 10 +- .../assert_fs_read_to_string_gt.rs | 12 +- .../assert_fs_read_to_string_gt_x.rs | 12 +- .../assert_fs_read_to_string_is_match.rs | 10 +- .../assert_fs_read_to_string_le.rs | 10 +- .../assert_fs_read_to_string_le_x.rs | 10 +- .../assert_fs_read_to_string_lt.rs | 12 +- .../assert_fs_read_to_string_lt_x.rs | 12 +- .../assert_fs_read_to_string_ne.rs | 10 +- .../assert_fs_read_to_string_ne_x.rs | 10 +- src/assert_ge.rs | 8 +- src/assert_gt.rs | 8 +- src/assert_in/assert_in_delta.rs | 8 +- src/assert_in/assert_in_epsilon.rs | 8 +- src/assert_infix.rs | 10 +- .../assert_io_read_to_string_contains.rs | 10 +- .../assert_io_read_to_string_eq.rs | 12 +- .../assert_io_read_to_string_eq_x.rs | 12 +- .../assert_io_read_to_string_ge.rs | 10 +- .../assert_io_read_to_string_ge_x.rs | 10 +- .../assert_io_read_to_string_gt.rs | 12 +- .../assert_io_read_to_string_gt_x.rs | 12 +- .../assert_io_read_to_string_is_match.rs | 10 +- .../assert_io_read_to_string_le.rs | 10 +- .../assert_io_read_to_string_le_x.rs | 10 +- .../assert_io_read_to_string_lt.rs | 10 +- .../assert_io_read_to_string_lt_x.rs | 10 +- .../assert_io_read_to_string_ne.rs | 10 +- .../assert_io_read_to_string_ne_x.rs | 10 +- src/assert_is_empty/assert_is_empty.rs | 8 +- src/assert_is_empty/assert_not_empty.rs | 8 +- src/assert_is_match/assert_is_match.rs | 8 +- src/assert_is_match/assert_not_match.rs | 8 +- src/assert_iter/assert_iter_eq.rs | 8 +- src/assert_iter/assert_iter_ge.rs | 8 +- src/assert_iter/assert_iter_gt.rs | 10 +- src/assert_iter/assert_iter_le.rs | 8 +- src/assert_iter/assert_iter_lt.rs | 10 +- src/assert_iter/assert_iter_ne.rs | 8 +- src/assert_le.rs | 8 +- src/assert_len/assert_len_eq.rs | 10 +- src/assert_len/assert_len_eq_x.rs | 10 +- src/assert_len/assert_len_ge.rs | 8 +- src/assert_len/assert_len_ge_x.rs | 8 +- src/assert_len/assert_len_gt.rs | 10 +- src/assert_len/assert_len_gt_x.rs | 10 +- src/assert_len/assert_len_le.rs | 8 +- src/assert_len/assert_len_le_x.rs | 8 +- src/assert_len/assert_len_lt.rs | 10 +- src/assert_len/assert_len_lt_x.rs | 10 +- src/assert_len/assert_len_ne.rs | 8 +- src/assert_len/assert_len_ne_x.rs | 8 +- src/assert_lt.rs | 8 +- src/assert_matches/assert_matches.rs | 10 +- src/assert_matches/assert_not_matches.rs | 10 +- src/assert_ne.rs | 4 +- src/assert_none/assert_none.rs | 8 +- src/assert_pending/assert_pending.rs | 8 +- .../assert_process_status_code_value_eq.rs | 32 +- .../assert_process_status_code_value_eq_x.rs | 24 +- .../assert_process_status_code_value_ge.rs | 32 +- .../assert_process_status_code_value_ge_x.rs | 24 +- .../assert_process_status_code_value_gt.rs | 32 +- .../assert_process_status_code_value_gt_x.rs | 24 +- .../assert_process_status_code_value_le.rs | 32 +- .../assert_process_status_code_value_le_x.rs | 24 +- .../assert_process_status_code_value_lt.rs | 32 +- .../assert_process_status_code_value_lt_x.rs | 24 +- .../assert_process_status_code_value_ne.rs | 32 +- .../assert_process_status_code_value_ne_x.rs | 24 +- .../assert_program_args_stderr_eq.rs | 10 +- .../assert_program_args_stderr_eq_x.rs | 12 +- .../assert_program_args_stderr_ge.rs | 10 +- .../assert_program_args_stderr_ge_x.rs | 10 +- .../assert_program_args_stderr_gt.rs | 12 +- .../assert_program_args_stderr_gt_x.rs | 10 +- .../assert_program_args_stderr_le.rs | 10 +- .../assert_program_args_stderr_le_x.rs | 10 +- .../assert_program_args_stderr_lt.rs | 12 +- .../assert_program_args_stderr_lt_x.rs | 10 +- .../assert_program_args_stderr_ne.rs | 10 +- .../assert_program_args_stderr_ne_x.rs | 10 +- ...ert_program_args_stderr_string_contains.rs | 10 +- ...ert_program_args_stderr_string_is_match.rs | 10 +- .../assert_program_args_stdout_eq.rs | 10 +- .../assert_program_args_stdout_eq_x.rs | 10 +- .../assert_program_args_stdout_ge.rs | 10 +- .../assert_program_args_stdout_ge_x.rs | 10 +- .../assert_program_args_stdout_gt.rs | 10 +- .../assert_program_args_stdout_gt_x.rs | 10 +- .../assert_program_args_stdout_le.rs | 10 +- .../assert_program_args_stdout_le_x.rs | 10 +- .../assert_program_args_stdout_lt.rs | 10 +- .../assert_program_args_stdout_lt_x.rs | 10 +- .../assert_program_args_stdout_ne.rs | 10 +- .../assert_program_args_stdout_ne_x.rs | 10 +- ...ert_program_args_stdout_string_contains.rs | 10 +- ...ert_program_args_stdout_string_is_match.rs | 10 +- src/assert_set/assert_set_disjoint.rs | 8 +- src/assert_set/assert_set_eq.rs | 8 +- src/assert_set/assert_set_joint.rs | 8 +- src/assert_set/assert_set_ne.rs | 8 +- src/assert_set/assert_set_subset.rs | 8 +- src/assert_set/assert_set_superset.rs | 8 +- .../assert_not_starts_with.rs | 34 +- src/assert_starts_with/assert_starts_with.rs | 34 +- src/assert_starts_with/mod.rs | 8 +- src/lib.rs | 171 +++-- tests/examples/starters.rs | 33 +- todo/README.md | 1 - todo/index.md | 24 - 827 files changed, 12627 insertions(+), 4152 deletions(-) create mode 100755 bin/exit-with-arg create mode 100644 doc/lib/assert_process/assert_process_status_code_value_eq/index.html create mode 100644 doc/lib/assert_process/assert_process_status_code_value_eq/sidebar-items.js create mode 100644 doc/lib/assert_process/assert_process_status_code_value_eq_x/index.html create mode 100644 doc/lib/assert_process/assert_process_status_code_value_eq_x/sidebar-items.js create mode 100644 doc/lib/assert_process/assert_process_status_code_value_ge/index.html create mode 100644 doc/lib/assert_process/assert_process_status_code_value_ge/sidebar-items.js create mode 100644 doc/lib/assert_process/assert_process_status_code_value_ge_x/index.html create mode 100644 doc/lib/assert_process/assert_process_status_code_value_ge_x/sidebar-items.js create mode 100644 doc/lib/assert_process/assert_process_status_code_value_gt/index.html create mode 100644 doc/lib/assert_process/assert_process_status_code_value_gt/sidebar-items.js create mode 100644 doc/lib/assert_process/assert_process_status_code_value_gt_x/index.html create mode 100644 doc/lib/assert_process/assert_process_status_code_value_gt_x/sidebar-items.js create mode 100644 doc/lib/assert_process/assert_process_status_code_value_le/index.html create mode 100644 doc/lib/assert_process/assert_process_status_code_value_le/sidebar-items.js create mode 100644 doc/lib/assert_process/assert_process_status_code_value_le_x/index.html create mode 100644 doc/lib/assert_process/assert_process_status_code_value_le_x/sidebar-items.js create mode 100644 doc/lib/assert_process/assert_process_status_code_value_lt/index.html create mode 100644 doc/lib/assert_process/assert_process_status_code_value_lt/sidebar-items.js create mode 100644 doc/lib/assert_process/assert_process_status_code_value_lt_x/index.html create mode 100644 doc/lib/assert_process/assert_process_status_code_value_lt_x/sidebar-items.js create mode 100644 doc/lib/assert_process/assert_process_status_code_value_ne/index.html create mode 100644 doc/lib/assert_process/assert_process_status_code_value_ne/sidebar-items.js create mode 100644 doc/lib/assert_process/assert_process_status_code_value_ne_x/index.html create mode 100644 doc/lib/assert_process/assert_process_status_code_value_ne_x/sidebar-items.js create mode 100644 doc/lib/assert_process/index.html create mode 100644 doc/lib/assert_process/sidebar-items.js create mode 100644 doc/lib/macro.assert_process_status_code_value_eq!.html create mode 100644 doc/lib/macro.assert_process_status_code_value_eq.html create mode 100644 doc/lib/macro.assert_process_status_code_value_eq_as_result!.html create mode 100644 doc/lib/macro.assert_process_status_code_value_eq_as_result.html create mode 100644 doc/lib/macro.assert_process_status_code_value_eq_x!.html create mode 100644 doc/lib/macro.assert_process_status_code_value_eq_x.html create mode 100644 doc/lib/macro.assert_process_status_code_value_eq_x_as_result!.html create mode 100644 doc/lib/macro.assert_process_status_code_value_eq_x_as_result.html create mode 100644 doc/lib/macro.assert_process_status_code_value_ge!.html create mode 100644 doc/lib/macro.assert_process_status_code_value_ge.html create mode 100644 doc/lib/macro.assert_process_status_code_value_ge_as_result!.html create mode 100644 doc/lib/macro.assert_process_status_code_value_ge_as_result.html create mode 100644 doc/lib/macro.assert_process_status_code_value_ge_x!.html create mode 100644 doc/lib/macro.assert_process_status_code_value_ge_x.html create mode 100644 doc/lib/macro.assert_process_status_code_value_ge_x_as_result!.html create mode 100644 doc/lib/macro.assert_process_status_code_value_ge_x_as_result.html create mode 100644 doc/lib/macro.assert_process_status_code_value_gt!.html create mode 100644 doc/lib/macro.assert_process_status_code_value_gt.html create mode 100644 doc/lib/macro.assert_process_status_code_value_gt_as_result!.html create mode 100644 doc/lib/macro.assert_process_status_code_value_gt_as_result.html create mode 100644 doc/lib/macro.assert_process_status_code_value_gt_x!.html create mode 100644 doc/lib/macro.assert_process_status_code_value_gt_x.html create mode 100644 doc/lib/macro.assert_process_status_code_value_gt_x_as_result!.html create mode 100644 doc/lib/macro.assert_process_status_code_value_gt_x_as_result.html create mode 100644 doc/lib/macro.assert_process_status_code_value_le!.html create mode 100644 doc/lib/macro.assert_process_status_code_value_le.html create mode 100644 doc/lib/macro.assert_process_status_code_value_le_as_result!.html create mode 100644 doc/lib/macro.assert_process_status_code_value_le_as_result.html create mode 100644 doc/lib/macro.assert_process_status_code_value_le_x!.html create mode 100644 doc/lib/macro.assert_process_status_code_value_le_x.html create mode 100644 doc/lib/macro.assert_process_status_code_value_le_x_as_result!.html create mode 100644 doc/lib/macro.assert_process_status_code_value_le_x_as_result.html create mode 100644 doc/lib/macro.assert_process_status_code_value_lt!.html create mode 100644 doc/lib/macro.assert_process_status_code_value_lt.html create mode 100644 doc/lib/macro.assert_process_status_code_value_lt_as_result!.html create mode 100644 doc/lib/macro.assert_process_status_code_value_lt_as_result.html create mode 100644 doc/lib/macro.assert_process_status_code_value_lt_x!.html create mode 100644 doc/lib/macro.assert_process_status_code_value_lt_x.html create mode 100644 doc/lib/macro.assert_process_status_code_value_lt_x_as_result!.html create mode 100644 doc/lib/macro.assert_process_status_code_value_lt_x_as_result.html create mode 100644 doc/lib/macro.assert_process_status_code_value_ne!.html create mode 100644 doc/lib/macro.assert_process_status_code_value_ne.html create mode 100644 doc/lib/macro.assert_process_status_code_value_ne_as_result!.html create mode 100644 doc/lib/macro.assert_process_status_code_value_ne_as_result.html create mode 100644 doc/lib/macro.assert_process_status_code_value_ne_x!.html create mode 100644 doc/lib/macro.assert_process_status_code_value_ne_x.html create mode 100644 doc/lib/macro.assert_process_status_code_value_ne_x_as_result!.html create mode 100644 doc/lib/macro.assert_process_status_code_value_ne_x_as_result.html create mode 100644 doc/lib/macro.debug_assert_process_status_code_value_eq!.html create mode 100644 doc/lib/macro.debug_assert_process_status_code_value_eq.html create mode 100644 doc/lib/macro.debug_assert_process_status_code_value_eq_x!.html create mode 100644 doc/lib/macro.debug_assert_process_status_code_value_eq_x.html create mode 100644 doc/lib/macro.debug_assert_process_status_code_value_ge!.html create mode 100644 doc/lib/macro.debug_assert_process_status_code_value_ge.html create mode 100644 doc/lib/macro.debug_assert_process_status_code_value_ge_x!.html create mode 100644 doc/lib/macro.debug_assert_process_status_code_value_ge_x.html create mode 100644 doc/lib/macro.debug_assert_process_status_code_value_gt!.html create mode 100644 doc/lib/macro.debug_assert_process_status_code_value_gt.html create mode 100644 doc/lib/macro.debug_assert_process_status_code_value_gt_x!.html create mode 100644 doc/lib/macro.debug_assert_process_status_code_value_gt_x.html create mode 100644 doc/lib/macro.debug_assert_process_status_code_value_le!.html create mode 100644 doc/lib/macro.debug_assert_process_status_code_value_le.html create mode 100644 doc/lib/macro.debug_assert_process_status_code_value_le_x!.html create mode 100644 doc/lib/macro.debug_assert_process_status_code_value_le_x.html create mode 100644 doc/lib/macro.debug_assert_process_status_code_value_lt!.html create mode 100644 doc/lib/macro.debug_assert_process_status_code_value_lt.html create mode 100644 doc/lib/macro.debug_assert_process_status_code_value_lt_x!.html create mode 100644 doc/lib/macro.debug_assert_process_status_code_value_lt_x.html create mode 100644 doc/lib/macro.debug_assert_process_status_code_value_ne!.html create mode 100644 doc/lib/macro.debug_assert_process_status_code_value_ne.html create mode 100644 doc/lib/macro.debug_assert_process_status_code_value_ne_x!.html create mode 100644 doc/lib/macro.debug_assert_process_status_code_value_ne_x.html create mode 100644 doc/src/lib/assert_process/assert_process_status_code_value_eq.rs.html create mode 100644 doc/src/lib/assert_process/assert_process_status_code_value_eq_x.rs.html create mode 100644 doc/src/lib/assert_process/assert_process_status_code_value_ge.rs.html create mode 100644 doc/src/lib/assert_process/assert_process_status_code_value_ge_x.rs.html create mode 100644 doc/src/lib/assert_process/assert_process_status_code_value_gt.rs.html create mode 100644 doc/src/lib/assert_process/assert_process_status_code_value_gt_x.rs.html create mode 100644 doc/src/lib/assert_process/assert_process_status_code_value_le.rs.html create mode 100644 doc/src/lib/assert_process/assert_process_status_code_value_le_x.rs.html create mode 100644 doc/src/lib/assert_process/assert_process_status_code_value_lt.rs.html create mode 100644 doc/src/lib/assert_process/assert_process_status_code_value_lt_x.rs.html create mode 100644 doc/src/lib/assert_process/assert_process_status_code_value_ne.rs.html create mode 100644 doc/src/lib/assert_process/assert_process_status_code_value_ne_x.rs.html create mode 100644 doc/src/lib/assert_process/mod.rs.html delete mode 120000 todo/README.md delete mode 100644 todo/index.md diff --git a/CHANGES.md b/CHANGES.md index 8436a4146..0b28539cb 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,7 +5,7 @@ Changes highlights for recent major versions. ## Version 9.0 -* 9.1.0: Add absolute difference macros: `assert_abs_diff*`. +* 9.2.0: Add absolute difference macros: `assert_abs_diff*`. * 9.0.0: Breaking change: many macros now return data upon success. diff --git a/Cargo.toml b/Cargo.toml index 85a3f8dda..490a6cd77 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "assertables" -version = "9.1.0" +version = "9.2.0" authors = ["Joel Parker Henderson "] edition = "2021" description = "Assertables: assert macros for better testing, debugging, quality assurance, and runtime reliability." diff --git a/LICENSE.md b/LICENSE.md index 03d907682..afbc6c2bc 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ # License -MIT or Apache or GPL or or BSD or contact us for custom license choices. +License is any of these or contact us for custom license options. * [MIT](https://opensource.org/license/mit) ([SPDX: MIT](https://spdx.org/licenses/MIT.html)) diff --git a/README.md b/README.md index a65197703..27bd09778 100644 --- a/README.md +++ b/README.md @@ -14,165 +14,153 @@ The Assertables Rust crate provides many assert macros that can help you develop, test, and debug. * Test values with - [assert_lt](https://docs.rs/assertables/9.1.0/assertables/assert_lt), - [assert_gt](https://docs.rs/assertables/9.1.0/assertables/assert_gt), - [etc.](https://docs.rs/assertables/) -* Test strings with - [assert_starts_with](https://docs.rs/assertables/9.1.0/assertables/assert_starts_with), - [assert_ends_with](https://docs.rs/assertables/9.1.0/assertables/assert_ends_with), - [etc.](https://docs.rs/assertables/) + [assert_lt](https://docs.rs/assertables/9.2.0/assertables/assert_lt), + [assert_gt](https://docs.rs/assertables/9.2.0/assertables/assert_gt), + [more…](https://docs.rs/assertables/9.2.0/assertables/assert_approx) +* Test results with + [assert_ok](https://docs.rs/assertables/9.2.0/assertables/assert_ok), + [assert_err](https://docs.rs/assertables/9.2.0/assertables/assert_err), + [more…](https://docs.rs/assertables/9.2.0/assertables/assert_ok_eq_x) * Test groups with - [assert_all](https://docs.rs/assertables/9.1.0/assertables/assert_all), - [assert_any](https://docs.rs/assertables/9.1.0/assertables/assert_any), - [etc.](https://docs.rs/assertables/) - -There are many more for - [results](https://docs.rs/assertables/9.1.0/assertables/assert_result), - [options](https://docs.rs/assertables/9.1.0/assertables/assert_option), - [polls](https://docs.rs/assertables/9.1.0/assertables/assert_poll), - [matches](https://docs.rs/assertables/9.1.0/assertables/assert_matches), - [iterators](https://docs.rs/assertables/9.1.0/assertables/assert_iter), - [sets](https://docs.rs/assertables/9.1.0/assertables/assert_set), - [files](https://docs.rs/assertables/9.1.0/assertables/assert_fs_read_to_string), - [bytes](https://docs.rs/assertables/9.1.0/assertables/assert_io_read_to_string), - [commands](https://docs.rs/assertables/9.1.0/assertables/assert_command), - [etc.](https://docs.rs/assertables/) + [assert_all](https://docs.rs/assertables/9.2.0/assertables/assert_all), + [assert_any](https://docs.rs/assertables/9.2.0/assertables/assert_any), + [more…](https://docs.rs/assertables/9.2.0/assertables/assert_iter) +* Many more below. To use this crate, add it to your file `Cargo.toml`: ```toml -assertables = "9.1.0" +assertables = "9.2.0" ``` -Top benefits: +Benefits: -1. You can write better tests to improve reliability and maintainability. -2. You can handle more corner cases without needing to write custom code. -3. You can troubleshoot faster because error messages show specifics. +* You can write better tests to improve reliability and maintainability. +* You can handle more corner cases without needing to write custom code. +* You can troubleshoot faster because error messages show more detail. -Top features: +Features: -1. Easy to use: everything is well-documented with runnable examples. -2. Zero overhead: if you don't use a macro, then it's not compiled. -3. Multiple forms: for debugging, for results, and for success returns. +* Easy to use: everything is well-documented with runnable examples. +* Zero overhead: if you don't use a macro, then it's not compiled. +* Multiple forms: for panic, debug, result return, success return. -Help: +Learning: +[FAQ](https://github.com/SixArm/assertables-rust-crate/tree/main/help/faq), +[examples](https://github.com/SixArm/assertables-rust-crate/blob/main/tests/examples/), +[changes](https://github.com/SixArm/assertables-rust-crate/tree/main/CHANGES.md), +[upgrades](https://github.com/SixArm/assertables-rust-crate/tree/main/help/upgrades/upgrade-from-version-8-to-9), +[docs](https://docs.rs/assertables/). -* [Documentation](https://docs.rs/assertables/) -* [Frequently asked questions](https://github.com/SixArm/assertables-rust-crate/tree/main/help/faq) -* [Examples](https://github.com/SixArm/assertables-rust-crate/blob/main/tests/examples/) -* [Upgrade from version 8 to 9](https://github.com/SixArm/assertables-rust-crate/tree/main/help/upgrades/upgrade-from-version-8-to-9) -* [Comparisons to more_asserts, cool_asserts, assert2, claims, etc.](https://github.com/SixArm/assertables-rust-crate/tree/main/help/comparisons) +Comparisons: +[more_asserts](https://github.com/SixArm/assertables-rust-crate/tree/main/help/comparisons/more_asserts), [cool_asserts](https://github.com/SixArm/assertables-rust-crate/tree/main/help/comparisons/cool_asserts), +[assert2](https://github.com/SixArm/assertables-rust-crate/tree/main/help/comparisons/assert2), +[claims](https://github.com/SixArm/assertables-rust-crate/tree/main/help/comparisons/more_asserts), +[etc.](https://github.com/SixArm/assertables-rust-crate/tree/main/help/comparisons) ## Highlights Values: -* [`assert_eq!(a, b)`](https://docs.rs/assertables/9.1.0/assertables/assert_eq) `// a == b` -* [`assert_ne!(a, b)`](https://docs.rs/assertables/9.1.0/assertables/assert_ne) `// a != b` -* [`assert_lt!(a, b)`](https://docs.rs/assertables/9.1.0/assertables/assert_lt) `// a < b` -* [`assert_le!(a, b)`](https://docs.rs/assertables/9.1.0/assertables/assert_le) `// a <= b` -* [`assert_gt!(a, b)`](https://docs.rs/assertables/9.1.0/assertables/assert_gt) `// a > b` -* [`assert_ge!(a, b)`](https://docs.rs/assertables/9.1.0/assertables/assert_ge) `// a >= b` +* [`assert_eq!(a, b)`](https://docs.rs/assertables/9.2.0/assertables/assert_eq) ≈ a = b +* [`assert_ne!(a, b)`](https://docs.rs/assertables/9.2.0/assertables/assert_ne) ≈ a ≠ b +* [`assert_lt!(a, b)`](https://docs.rs/assertables/9.2.0/assertables/assert_lt) ≈ a < b +* [`assert_le!(a, b)`](https://docs.rs/assertables/9.2.0/assertables/assert_le) ≈ a ≤ b +* [`assert_gt!(a, b)`](https://docs.rs/assertables/9.2.0/assertables/assert_gt) ≈ a > b +* [`assert_ge!(a, b)`](https://docs.rs/assertables/9.2.0/assertables/assert_ge) ≈ a ≥ b -Differences: +Approximations: -* [`assert_approx_eq!(a, b)`](https://docs.rs/assertables/9.1.0/assertables/assert_approx/assert_approx_eq) `// |a-b| <= 1e-6` -* [`assert_abs_diff_eq!(a, b, delta)`](https://docs.rs/assertables/9.1.0/assertables/assert_abs_diff/assert_abs_diff_eq) `// |a-b| == Δ` -* [`assert_in_delta!(a, b, delta)`](https://docs.rs/assertables/9.1.0/assertables/assert_in/assert_in_delta) `// |a-b| <= Δ` -* [`assert_in_epsilon!(a, b, epsilon)`](https://docs.rs/assertables/9.1.0/assertables/assert_in/assert_in_epsilon) `// |a-b| <= ε min(a,b)` +* [`assert_approx_eq!(a, b)`](https://docs.rs/assertables/9.2.0/assertables/assert_approx/assert_approx_eq) ≈ |a-b| ≤ 1e-6 +* [`assert_abs_diff_eq!(a, b, delta)`](https://docs.rs/assertables/9.2.0/assertables/assert_abs_diff/assert_abs_diff_eq) ≈ |a-b| = Δ +* [`assert_in_delta!(a, b, delta)`](https://docs.rs/assertables/9.2.0/assertables/assert_in/assert_in_delta) ≈ |a-b| ≤ Δ +* [`assert_in_epsilon!(a, b, epsilon)`](https://docs.rs/assertables/9.2.0/assertables/assert_in/assert_in_epsilon) ≈ |a-b| ≤ ε min(a,b) -Groups for iterators, chars, etc.: +Groups: -* [`assert_all!(group, predicate)`](https://docs.rs/assertables/9.1.0/assertables/assert_all) `// group.all(predicate)` -* [`assert_any!(group, predicate)`](https://docs.rs/assertables/9.1.0/assertables/assert_any) `// group.any(predicate)` - -Infix for order operators, logic operators, etc.: - -* [`assert_infix!(a == b)`](https://docs.rs/assertables/9.1.0/assertables/assert_infix) `// order: == != < <= > >=` -* [`assert_infix!(a && b)`](https://docs.rs/assertables/9.1.0/assertables/assert_infix) `// logic: && || ^ & |` - -Lengths and counts for strings, vectors, iterators, etc.: - -* [`assert_len_eq!(a, b)`](https://docs.rs/assertables/9.1.0/assertables/assert_len/assert_len_eq) `// a.len() == b.len()` -* [`assert_count_eq!(a, b)`](https://docs.rs/assertables/9.1.0/assertables/assert_count/assert_count_eq) `// a.count() == b.count()` -* [`assert_is_empty!(a)`](https://docs.rs/assertables/9.1.0/assertables/assert_is_empty/assert_is_empty) `// a.is_empty()` +* [`assert_all!(group, predicate)`](https://docs.rs/assertables/9.2.0/assertables/assert_all) ≈ group.all(predicate) +* [`assert_any!(group, predicate)`](https://docs.rs/assertables/9.2.0/assertables/assert_any) ≈ group.any(predicate) +* [`assert_is_empty!(group)`](https://docs.rs/assertables/9.2.0/assertables/assert_is_empty/assert_is_empty) ≈ a.is_empty() +* [`assert_len_eq!(a, b)`](https://docs.rs/assertables/9.2.0/assertables/assert_len/assert_len_eq) ≈ a.len() = b.len() +* [`assert_count_eq!(a, b)`](https://docs.rs/assertables/9.2.0/assertables/assert_count/assert_count_eq) ≈ a.count() = b.count() Matching: -* [`assert_starts_with!(whole, part)`](https://docs.rs/assertables/9.1.0/assertables/assert_starts_with) `// whole.starts_with(part)` -* [`assert_ends_with!(whole, part)`](https://docs.rs/assertables/9.1.0/assertables/assert_ends_with) `// whole.ends_with(part)` -* [`assert_contains!(container, x)`](https://docs.rs/assertables/9.1.0/assertables/assert_contains) `// container.contains(x)` -* [`assert_matches!(expr, pattern)`](https://docs.rs/assertables/9.1.0/assertables/assert_matches) `// matches!(expr, pattern)` -* [`assert_is_match!(matcher, x)`](https://docs.rs/assertables/9.1.0/assertables/assert_is_match) `// matcher.is_match(x)` +* [`assert_starts_with!(sequence, x)`](https://docs.rs/assertables/9.2.0/assertables/assert_starts_with) ≈ sequence.starts_with(x) +* [`assert_ends_with!(sequence, x)`](https://docs.rs/assertables/9.2.0/assertables/assert_ends_with) ≈ sequence.ends_with(x) +* [`assert_contains!(container, x)`](https://docs.rs/assertables/9.2.0/assertables/assert_contains) ≈ container.contains(x) +* [`assert_is_match!(matcher, x)`](https://docs.rs/assertables/9.2.0/assertables/assert_is_match) ≈ matcher.is_match(x) +* [`assert_matches!(expr, pattern)`](https://docs.rs/assertables/9.2.0/assertables/assert_matches) ≈ matches!(expr, pattern) Results: -* [`assert_ok!(a)`](https://docs.rs/assertables/9.1.0/assertables/assert_ok) `// a is Ok` -* [`assert_ok_eq_x!(a, x)`](https://docs.rs/assertables/9.1.0/assertables/assert_ok/assert_ok_eq_x) `// a is Ok(x)` -* [`assert_err!(a)`](https://docs.rs/assertables/9.1.0/assertables/assert_err) `// a is Err` +* [`assert_ok!(a)`](https://docs.rs/assertables/9.2.0/assertables/assert_ok) ≈ a is Ok +* [`assert_err!(a)`](https://docs.rs/assertables/9.2.0/assertables/assert_err) ≈ a is Err +* [`assert_ok_eq_x!(a, x)`](https://docs.rs/assertables/9.2.0/assertables/assert_ok/assert_ok_eq_x) ≈ (a is Ok ⇒ unwrap) = x Options: -* [`assert_some!(a)`](https://docs.rs/assertables/9.1.0/assertables/assert_some) `// a is Some` -* [`assert_some_eq_x!(a, x)`](https://docs.rs/assertables/9.1.0/assertables/assert_some/assert_some_eq_x) `// a is Some(x)` -* [`assert_none!(a)`](https://docs.rs/assertables/9.1.0/assertables/assert_none) `// a is None` +* [`assert_some!(a)`](https://docs.rs/assertables/9.2.0/assertables/assert_some) ≈ a is Some +* [`assert_none!(a)`](https://docs.rs/assertables/9.2.0/assertables/assert_none) ≈ a is None +* [`assert_some_eq_x!(a, x)`](https://docs.rs/assertables/9.2.0/assertables/assert_some/assert_some_eq_x) ≈ (a is Some ⇒ unwrap) = x Polls: -* [`assert_ready!(a)`](https://docs.rs/assertables/9.1.0/assertables/assert_ready) `// a is Ready` -* [`assert_ready_eq_x!(a, x)`](https://docs.rs/assertables/9.1.0/assertables/assert_ready/assert_ready__eq_x) `// a is Ready(x)` -* [`assert_pending!(a)`](https://docs.rs/assertables/9.1.0/assertables/assert_pending) `// a is Pending` +* [`assert_ready!(a)`](https://docs.rs/assertables/9.2.0/assertables/assert_ready) ≈ a is Ready +* [`assert_pending!(a)`](https://docs.rs/assertables/9.2.0/assertables/assert_pending) ≈ a is Pending +* [`assert_ready_eq_x!(a, x)`](https://docs.rs/assertables/9.2.0/assertables/assert_ready/assert_ready_eq_x) ≈ (a is Ready ⇒ unwrap) = x Readers: -* [`assert_fs_read_to_string_eq!(a_path, b_path)`](https://docs.rs/assertables/9.1.0/assertables/assert_fs_read_to_string_eq) `// read a_path == read b_path` -* [`assert_io_read_to_string_eq!(a_bytes, b_bytes)`](https://docs.rs/assertables/9.1.0/assertables/assert_io_read_to_string) `// read a_bytes == read b_bytes` +* [`assert_fs_read_to_string_eq!(a_path, b_path)`](https://docs.rs/assertables/9.2.0/assertables/assert_fs_read_to_string_eq) ≈ (a_path ⇒ string) = (b_path ⇒ string) +* [`assert_io_read_to_string_eq!(a_bytes, b_bytes)`](https://docs.rs/assertables/9.2.0/assertables/assert_io_read_to_string) ≈ (a_bytes ⇒ string) = (b_bytes ⇒ string) -Commands: +Collections: -* [`assert_command_stdout_eq!(a_command, b_command)`](https://docs.rs/assertables/9.1.0/assertables/assert_command) `// a_command stdout == b_command stdout` -* [`assert_program_args_stderr_eq!(a_program, a_args, b_program, b_args)`](https://docs.rs/assertables/9.1.0/assertables/assert_program_args) `// a_program a_args stderr == b_program b_args stderr` +* [`assert_iter_eq!(arr1, arr2)`](https://docs.rs/assertables/9.2.0/assertables/assert_iter) ≈ a into iter = b into iter +* [`assert_set_eq!(vec1, vec2)`](https://docs.rs/assertables/9.2.0/assertables/assert_set) ≈ a into set = b into set +* [`assert_bag_eq!(map1, map2)`](https://docs.rs/assertables/9.2.0/assertables/assert_bag) ≈ a into bag = b into bag -Collections: +Infix notation: -* [`assert_iter_eq!(arr1, arr2)`](https://docs.rs/assertables/9.1.0/assertables/assert_iter) `// a into iter == b into iter` -* [`assert_set_eq!(vec1, vec2)`](https://docs.rs/assertables/9.1.0/assertables/assert_set) `// a into set == b into set` -* [`assert_bag_eq!(map1, map2)`](https://docs.rs/assertables/9.1.0/assertables/assert_bag) `// a into bag == b into bag` +* [`assert_infix!(a == b)`](https://docs.rs/assertables/9.2.0/assertables/assert_infix) ≈ order operators == != < <= > >= +* [`assert_infix!(a && b)`](https://docs.rs/assertables/9.2.0/assertables/assert_infix) ≈ logic operators && || ^ & | -For a complete list of modules and macros, see the [docs](https://docs.rs/assertables/) +For a complete list of modules and macros, see the [docs](https://docs.rs/assertables/). ## Forms All the macros have forms for an optional message: -* [`assert_gt!(a, b)`](https://docs.rs/assertables/9.1.0/assertables/macro.assert_gt.html) `// default message` -* [`assert_gt!(a, b, "your text")`](https://docs.rs/assertables/9.1.0/assertables/macro.assert_gt.html) `// custom message` +* [`assert_gt!(a, b)`](https://docs.rs/assertables/9.2.0/assertables/macro.assert_gt.html) ≈ default message +* [`assert_gt!(a, b, "your text")`](https://docs.rs/assertables/9.2.0/assertables/macro.assert_gt.html) ≈ custom message All the macros have forms for different outcomes: -* [`assert_gt!(a, b)`](https://docs.rs/assertables/9.1.0/assertables/macro.assert_gt.html) `// panic` -* [`assert_gt_as_result!(a, b)`](https://docs.rs/assertables/9.1.0/assertables/macro.assert_gt_as_result.html) `// return Result, no panic` -* [`debug_assert_gt!(a, b)`](https://docs.rs/assertables/9.1.0/assertables/macro.debug_assert_gt.html) `// special use in debug mode` +* [`assert_gt!(1, 2)`](https://docs.rs/assertables/9.2.0/assertables/macro.assert_gt.html) ≈ panic +* [`assert_gt_as_result!(1, 2)`](https://docs.rs/assertables/9.2.0/assertables/macro.assert_gt_as_result.html) ≈ Result Err +* [`debug_assert_gt!(a, b)`](https://docs.rs/assertables/9.2.0/assertables/macro.debug_assert_gt.html) ≈ panic in debug mode -Many of the macros have a "solo" form for comparing one item to an expression, and a "pair" form for comparing two items to each other: +Many of the macros have a form "compare left item to right item" that compares +items of the same kind, and a form "compare left item to right expression" that +compares one item to any arbitrary expression: -* [`assert_ok_eq!(a, x)`](https://docs.rs/assertables/9.1.0/assertables/macro.assert_ok_eq.html) `// a.unwrap() == x` -* [`assert_ok_eq!(a, b)`](https://docs.rs/assertables/9.1.0/assertables/macro.assert_ok_eq.html) `// a.unwrap() == b.unwrap()` +* [`assert_len_eq!(a, b)`](https://docs.rs/assertables/9.2.0/assertables/macro.assert_ok_eq.html) ≈ a.len() = b.len() +* [`assert_len_eq_x!(a, x)`](https://docs.rs/assertables/9.2.0/assertables/macro.assert_ok_eq_x.html) ≈ a.len() = x Many of the macros has a "success return", which means the macro returns data that you can optionally use for more testing. -* [`let inner = assert_ok!(result)`](https://docs.rs/assertables/9.1.0/assertables/macro.assert_ok.html) -* [`let string = assert_fs_read_to_string_ne!("alfa.txt", "")`](https://docs.rs/assertables/9.1.0/assertables/macro.assert_fs_read_to_string_ne.html) -* [`let stdout = assert_command_stdout_gt!("ls", vec![b' '])`](https://docs.rs/assertables/9.1.0/assertables/macro.assert_command_stdout_gt.html) +* [`let inner = assert_ok!(result)`](https://docs.rs/assertables/9.2.0/assertables/macro.assert_ok.html) +* [`let string = assert_fs_read_to_string_ne!("alfa.txt", "")`](https://docs.rs/assertables/9.2.0/assertables/macro.assert_fs_read_to_string_ne.html) +* [`let stdout = assert_command_stdout_gt!("ls", vec![b' '])`](https://docs.rs/assertables/9.2.0/assertables/macro.assert_command_stdout_gt.html) ## Tracking * Package: assertables-rust-crate -* Version: 9.1.0 +* Version: 9.2.0 * Created: 2021-03-30T15:47:49Z -* Updated: 2024-10-29T20:21:37Z +* Updated: 2024-10-31T11:04:30Z * License: MIT or Apache-2.0 or GPL-2.0 or GPL-3.0 or contact us for more * Contact: Joel Parker Henderson (joel@joelparkerhenderson.com) diff --git a/bin/exit-with-arg b/bin/exit-with-arg new file mode 100755 index 000000000..33fbb86ee --- /dev/null +++ b/bin/exit-with-arg @@ -0,0 +1,2 @@ +#!/bin/sh +exit "$1" diff --git a/doc/lib/all.html b/doc/lib/all.html index 767a9e207..d466d15bd 100644 --- a/doc/lib/all.html +++ b/doc/lib/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Macros

\ No newline at end of file +List of all items in this crate

List of all items

Macros

\ No newline at end of file diff --git a/doc/lib/assert_ends_with/assert_ends_with/index.html b/doc/lib/assert_ends_with/assert_ends_with/index.html index 6bdaacd15..1dc737a53 100644 --- a/doc/lib/assert_ends_with/assert_ends_with/index.html +++ b/doc/lib/assert_ends_with/assert_ends_with/index.html @@ -7,12 +7,12 @@

§Example

// String ends with substring? let whole: &str = "alfa"; let part: &str = "fa"; -assert_ends_with!(whole, part); +assert_ends_with!(sequence, x); // Vector ends with element? let whole = vec![1, 2, 3]; let part = [3]; -assert_ends_with!(whole, part); +assert_ends_with!(sequence, x);

§Module macros