diff --git a/Cargo.toml b/Cargo.toml index 70990c61d..5c57a884c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "assertables" -version = "8.1.0" +version = "8.2.0" authors = ["Joel Parker Henderson "] edition = "2021" description = "Assertables: Rust crate of macros `assert…!` for better tests, quality assurance, debug testing, and runtime reliability." diff --git a/README.md b/README.md index 2191a36a3..f13fca30c 100644 --- a/README.md +++ b/README.md @@ -3,428 +3,249 @@ The `assertables` Rust crate provides many assert macros to improve your compile-time tests and run-time reliability. -Crate: -[https://crates.io/crates/assertables](https://crates.io/crates/assertables) +* Crate: [https://crates.io/crates/assertables](https://crates.io/crates/assertables) +* Docs: [https://docs.rs/assertables/](https://docs.rs/assertables/) +* Repo: [https://github.com/sixarm/assertables-rust-crate/](https://github.com/sixarm/assertables-rust-crate/) +* Contact: [joel@joelparkerhenderson.com](mailto:joel@joelparkerhenderson.com) -Docs: [https://docs.rs/assertables/](https://docs.rs/assertables/) -Repo: -[https://github.com/sixarm/assertables-rust-crate/](https://github.com/sixarm/assertables-rust-crate/) +## Introduction - -## Why use this? - -When you write Rust tests, then you can use Rust assert macros, such as: +The Rust programming language provides a few built-in assert macros to test code: ```rust -assert_eq!(value1, value2) +assert!() +assert_eq!(a, b) +assert_ne!(a, b) ``` -The assertables Rust crate provides many more assert macros for values, -strings, vectors, paths, readers, commands, and more, such as: - -```rust -// value1 greater than value2 -assert_gt!(value1, value2); - -// string1 starts with string2 -assert_starts_with!(string1, string2); - -// regex is match of string -assert_is_match!(regex, string); +The assertables crate provides many more, so you can write smarter tests. -// vector1 as set ⊆ vector2 as set -assert_set_subset!(vector1, vector2); +For values: -// function1 ok = function2 ok -assert_fn_ok_eq!(function1, function2); - -// path1 to string = path2 to string -assert_fs_read_to_string_eq!(path1, path2); - -// reader1 to string = reader2 to string -assert_io_read_to_string_eq!(reader1, reader2); - -// command1 standard output = command2 standard output -assert_command_stdout_eq!(command1, command2); +```rust +assert_gt!(a, b) +assert_lt!(a, b) ``` -See below for the complete list of all the assert macros. - - -### Benefits - -* Your tests are more purposeful and powerful, which helps your code be more reliable. - -* Your assert failures provide more information, which helps you troubleshoot faster. - -* You gain runtime asserts, which helps you with validations and verifications. - -### Features - -* Easy to use: each macro is well-documented with runnable examples and tests. - -* Zero overhead: if you don't use a macro, then it's never compiled into your code. - -* Three forms: `assert_*` for development, `debug_assert_*` for debugging, and `assert_*_as_result` for production. - - -## Complete list of assert macros - - -### assert_* for values - -Compare values: - -* `assert_eq!(a, b)` ≈ a = b - -* `assert_ne!(a, b)` ≈ a ≠ b - -* `assert_ge!(a, b)` ≈ a ≥ b - -* `assert_gt!(a, b)` ≈ a > b - -* `assert_le!(a, b)` ≈ a ≤ b - -* `assert_lt!(a, b)` ≈ a < b - -Compare values by using nearness: - -* `assert_in_delta!(a, b, delta)` ≈ | a - b | ≤ delta - -* `assert_in_epsilon(a, b, epsilon)` ≈ | a - b | ≤ epsilon * min(a, b) - - -### assert_* for strings and matchers - -These macros help with strings and also other structures that provide -matchers such as `starts_with`, `ends_width`, `contains`, and `is_match`. - -* `assert_starts_with(a, b)` ≈ a.starts_with(b) - -* `assert_not_starts_with(a, b)` ≈ !a.starts_with(b) - -* `assert_ends_with(a, b)` ≈ a.ends_with(b) - -* `assert_not_ends_with(a, b)` ≈ !a.ends_with(b) - -* `assert_contains(container, containee)` ≈ container.contains(containee) - -* `assert_not_contains(container, containee)` ≈ !container.contains(containee) - -* `assert_is_match(matcher, matchee)` ≈ matcher.is_match(matchee) - -* `assert_not_match(matcher, matchee)` ≈ !matcher.is_match(matchee) - - -### assert_ok & assert_err for Result - -* `assert_ok(a)` ≈ a.is_ok() - -* `assert_ok_eq(a, b)` ≈ a.ok() = b.ok() (TODO) - -* `assert_ok_eq_expr(a, b)` ≈ a.ok() = b (TODO) - -* `assert_err(a)` ≈ a.is_err() - - -### assert_some & assert_none for Option - -* `assert_some(a)` ≈ a.is_some() - -* `assert_some_eq(a, b)` ≈ a.some() = b.some() (TODO) - -* `assert_some_eq_expr(a, b)` ≈ a.some() = b (TODO) - -* `assert_none(a)` ≈ a.is_none() - - -### assert_set_* for set collection comparisons - -These macros help with comparison of set parameters, such as two arrays or -two vectors. where the item order does not matter, and the item count does -not matter. These macros convert their inputs into HashSet iterators. - -* `assert_set_eq!(a, b)` ≈ set a = set b - -* `assert_set_ne!(a, b)` ≈ set a ≠ set b - -* `assert_set_subset!(a, b)` ≈ set a ⊆ set b - -* `assert_set_superset!(a, b)` ≈ set a ⊇ set b - -* `assert_set_joint!(a, b)` ≈ set a ∩ set b ≠ ∅ - -* `assert_set_disjoint!(a, b)` ≈ set a ∩ set b = ∅ - - -### assert_bag_* for bag collection comparisons - -These macros help with comparison of bag parameters, such as comparison of -two arrays or two vectors, where the item order does not matter, and the -item count does matter. These macros convert their inputs into HashMap iterators. - -* `assert_bag_eq(a, b)` ≈ bag a = bag b - -* `assert_bag_ne(a, b)` ≈ bag a ≠ bag b - -* `assert_bag_subbag(a, b)` ≈ bag a ⊆ bag b - -* `assert_bag_superbag(a, b)` ≈ bag a ⊇ bag b - - -### assert_fn_* for function return-value comparisons - -Compare a function with another function: - -* `assert_fn_eq!(function1, function2)` ≈ function1() = function2() +For numbers: -* `assert_fn_ne!(function1, function2)` ≈ function1() ≠ function2() - -* `assert_fn_ge!(function1, function2)` ≈ function1() ≥ function2() - -* `assert_fn_gt!(function1, function2)` ≈ function1() > function2() - -* `assert_fn_le!(function1, function2)` ≈ function1() ≤ function2() - -* `assert_fn_lt!(function1, function2)` ≈ function1() < function2() - -Compare a function with an expression: - -* `assert_fn_eq_expr!(function, expr)` ≈ function() = expr - -* `assert_fn_ne_expr!(function, expr)` ≈ function() ≠ expr - -* `assert_fn_ge_expr!(function, expr)` ≈ function() ≥ expr - -* `assert_fn_gt_expr!(function, expr)` ≈ function() > expr - -* `assert_fn_le_expr!(function, expr)` ≈ function() ≤ expr - -* `assert_fn_lt_expr!(function, expr)` ≈ function() < expr - - -### assert_fn_ok_* for Result Ok() comparisons - -Compare a function Ok() with another function Ok(): - -* `assert_fn_ok_eq!(function1, function2)` ≈ function1().ok().unwrap() = function2().ok().unwrap() - -* `assert_fn_ok_ne!(function1, function2)` ≈ function1().ok().unwrap() ≠ function2().ok().unwrap() - -* `assert_fn_ok_ge!(function1, function2)` ≈ function1().ok().unwrap() ≥ function2().ok().unwrap() - -* `assert_fn_ok_gt!(function1, function2)` ≈ function1().ok().unwrap() > function2().ok().unwrap() - -* `assert_fn_ok_le!(function1, function2)` ≈ function1().ok().unwrap() ≤ function2().ok().unwrap() - -* `assert_fn_ok_lt!(function1, function2)` ≈ function1().ok().unwrap() < function2().ok().unwrap() - -Compare a function Ok() with an expression: - -* `assert_fn_ok_eq_expr!(function, expr)` ≈ function().ok().unwrap() = expr - -* `assert_fn_ok_ne_expr!(function, expr)` ≈ function().ok().unwrap() ≠ expr - -* `assert_fn_ok_ge_expr!(function, expr)` ≈ function().ok().unwrap() ≥ expr +```rust +assert_in_delta!(a, b, delta) +assert_in_epsilon!(a, b, epsilon) +``` -* `assert_fn_ok_gt_expr!(function, expr)` ≈ function().ok().unwrap() > expr +For strings: -* `assert_fn_ok_le_expr!(function, expr)` ≈ function().ok().unwrap() ≤ expr +```rust +assert_starts_with!(a, b) +assert_ends_with!(a, b) +``` -* `assert_fn_ok_lt_expr!(function, expr)` ≈ function().ok().unwrap() < expr +For matching: +```rust +assert_contains!(a, b) +assert_is_match!(a, b) +``` -### assert_fn_err_* for function Err() comparisons +For collections such as arrays, vectors, maps, sets: -Compare a function Err() with another function Err(): +```rust +assert_set_subset!(a, b) +assert_set_disjoint!(a, b) +``` -* `assert_fn_err_eq!(function1, function2)` ≈ function1().unwrap_err() = function2().unwrap_err() +For file system paths and input/output readers: -* `assert_fn_err_ne!(function1, function2)` ≈ function1().unwrap_err() ≠ function2().unwrap_err() +```rust +assert_fs_read_to_string_eq!(path1, path2) +assert_io_read_to_string_eq!(reader1, reader2) +``` -* `assert_fn_err_ge!(function1, function2)` ≈ function1().unwrap_err() ≥ function2().unwrap_err() +For command capture of standard output and standard error: -* `assert_fn_err_gt!(function1, function2)` ≈ function1().unwrap_err() > function2().unwrap_err() +```rust +assert_command_stdout_eq!(command1 stdout = command2 stdout); +assert_command_stderr_eq!(command1, command2); +``` -* `assert_fn_err_le!(function1, function2)` ≈ function1().unwrap_err() ≤ function2().unwrap_err() +### Benefits -* `assert_fn_err_lt!(function1, function2)` ≈ function1().unwrap_err() < function2().unwrap_err() +* Your tests are more purposeful and powerful. This helps your code be more +reliable. -Compare a function Err() with an expression: +* Your assert failures provide more information. This helps you +troubleshoot faster. -* `assert_fn_err_eq!(function, expr)` ≈ function().unwrap_err() = expr +* You gain runtime asserts. This helps you with validations and +verifications. -* `assert_fn_err_ne!(function, expr)` ≈ function().unwrap_err() ≠ expr -* `assert_fn_err_ge!(function, expr)` ≈ function().unwrap_err() ≥ expr +### Features -* `assert_fn_err_gt!(function, expr)` ≈ function().unwrap_err() > expr +* Easy to use: each macro is well-documented with runnable examples and +tests. -* `assert_fn_err_le!(function, expr)` ≈ function().unwrap_err() ≤ expr +* Zero overhead: if you don't use a macro, then it's never compiled into +your code. -* `assert_fn_err_lt!(function, expr)` ≈ function().unwrap_err() < expr +* Zero dependencies: the crate has no release dependencies, and just a short list of development dependencies. -### assert_fs_read_to_string_* for std::fs path comparisons +### Forms -These macros help with file system paths, such as disk files, `Path`, `PathBuf`, -the trait `AsRef`, and anything that is readable via -`std::fs::read_to_string(…)`. +Assertables macros come in three forms: -Compare a path with another path: +* Panic macro: `assert_*` is for typical test uses with `cargo test`. -* `assert_fs_read_to_string_eq!(path1, path2)` ≈ std::fs::read_to_string(path1) = std::fs::read_to_string(path2) +* Debug macro: `debug_assert_*` is for runtime diagnostic configuration. -* `assert_fs_read_to_string_ne!(path1, path2)` ≈ std::fs::read_to_string(path1) ≠ std::fs::read_to_string(path2) +* Result macro: `assert_*_as_result` is for runtime production configuration, such as for site reliability engineering, chaos engineering, validations, verifications, sanitizations, and more. -* `assert_fs_read_to_string_ge!(path1, path2)` ≈ std::fs::read_to_string(path1) ≥ std::fs::read_to_string(path2) -* `assert_fs_read_to_string_gt!(path1, path2)` ≈ std::fs::read_to_string(path1) > std::fs::read_to_string(path2) +### Naming conventions -* `assert_fs_read_to_string_le!(path1, path2)` ≈ std::fs::read_to_string(path1) ≤ std::fs::read_to_string(path2) +Abbreviations: -* `assert_fs_read_to_string_lt!(path1, path2)` ≈ std::fs::read_to_string(path1) < std::fs::read_to_string(path2) +* `eq` ≈ equal -Compare a path with an expression: +* `ne` ≈ not equal. -* `assert_fs_read_to_string_eq_expr(path, expr)` ≈ std::fs::read_to_string(path) = expr +* `lt` ≈ less than -* `assert_fs_read_to_string_ne_expr(path, expr)` ≈ std::fs::read_to_string(path) ≠ expr +* `le` ≈ less than or equal. -* `assert_fs_read_to_string_ge_expr(path, expr)` ≈ std::fs::read_to_string(path) ≥ expr +* `gt` ≈ greater than -* `assert_fs_read_to_string_gt_expr(path, expr)` ≈ std::fs::read_to_string(path) > expr +* `ge` ≈ greater than or equal. -* `assert_fs_read_to_string_le_expr(path, expr)` ≈ std::fs::read_to_string(path) ≤ expr -* `assert_fs_read_to_string_lt_expr(path, expr)` ≈ std::fs::read_to_string(path) < expr +Shorthands: -Compare a path with its contents: +* `path` ≈ implements `AsRef` such as `std::path::PathBuf`. -* `assert_fs_read_to_string_contains(path, containee)` ≈ std::fs::read_to_string(path).contains(containee) +* `reader` ≈ implements method `.read_to_string()` such as `std::io::Read`. -* `assert_fs_read_to_string_matches(path, matcher)` ≈ matcher.is_match(std::fs::read_to_string(path)) +* `matcher` ≈ implements `.is_match(…)` such as `regex::Regex`. +* `containee` ≈ usable inside `.contains(…)` such as a + `std::string::String` substring. -### assert_io_read_to_string_* for std::io reader comparisons +* `set` ≈ a collection such as `::std::collections::BTreeSet`. -These macros help with input/output readers, such as file handles, byte arrays, -input streams, the trait `std::io::Read`, and anything that implements the -method `read_to_string()`. +* `bag` ≈ a collection such as `::std::collections::BTreeMap` which has + key counts. -Compare a reader with another reader: -* `assert_io_read_to_string_eq!(reader1, reader2)` ≈ reader1.read_to_string() = reader2.read_to_string() +## Complete list of assert macros -* `assert_io_read_to_string_ne!(reader1, reader2)` ≈ reader1.read_to_string() ≠ reader2.read_to_string() -* `assert_io_read_to_string_ge!(reader1, reader2)` ≈ reader1.read_to_string() ≥ reader2.read_to_string() +### assert_* for values -* `assert_io_read_to_string_gt!(reader1, reader2)` ≈ reader1.read_to_string() > reader2.read_to_string() +Compare values: -* `assert_io_read_to_string_le!(reader1, reader2)` ≈ reader1.read_to_string() ≤ reader2.read_to_string() +* `assert_eq!(a, b)` ≈ a = b -* `assert_io_read_to_string_lt!(reader1, reader2)` ≈ reader1.read_to_string() < reader2.read_to_string() +* `assert_ne!(a, b)` ≈ a ≠ b -Compare a reader with an expression: +* `assert_ge!(a, b)` ≈ a ≥ b -* `assert_io_read_to_string_eq_expr(reader, expr)` ≈ reader.read_to_string() = expr +* `assert_gt!(a, b)` ≈ a > b -* `assert_io_read_to_string_ne_expr(reader, expr)` ≈ reader.read_to_string() ≠ expr +* `assert_le!(a, b)` ≈ a ≤ b -* `assert_io_read_to_string_ge_expr(reader, expr)` ≈ reader.read_to_string() ≥ expr +* `assert_lt!(a, b)` ≈ a < b -* `assert_io_read_to_string_gt_expr(reader, expr)` ≈ reader.read_to_string() > expr -* `assert_io_read_to_string_le_expr(reader, expr)` ≈ reader.read_to_string() ≤ expr +## For infix operators -* `assert_io_read_to_string_lt_expr(reader, expr)` ≈ reader.read_to_string() < expr +Compare values by using an infix value operator: -Compare a reader with its contents: +* `assert_infix!(a == b)` ≈ a == b -* `assert_io_read_to_string_contains(reader, containee)` ≈ reader.read_to_string().contains(containee) +* `assert_infix!(a != b)` ≈ a ≠ b -* `assert_io_read_to_string_matches(reader, matcher)` ≈ matcher.is_match(reader.read_to_string()) +* `assert_infix!(a < b)` ≈ a < b +* `assert_infix!(a <= b)` ≈ a ≤ b -### assert_command_* for process command comparisons +* `assert_infix!(a > b)` ≈ a > b -Compare command standard output string: +* `assert_infix!(a >= b)` ≈ a ≥ b -* `assert_command_stdout_eq!(command1, command2)` ≈ command1 stdout = command2 stdout +Relate values by using an infix logical operator: -* `assert_command_stdout_eq_expr!(command, expr)` ≈ command stdout = expr +* `assert_infix!(a & b)` ≈ a ∧ b ≈ a AND b -* `assert_command_stdout_contains!(command, containee)` ≈ command stdout contains containee +* `assert_infix!(a | b)` ≈ a ∨ b ≈ a OR b -* `assert_command_stdout_is_match!(command, matcher)` ≈ command stdout is a matcher match +* `assert_infix!(a ^ b)` ≈ a ⊻ b ≈ a XOR b -Compare command standard error string: +* `assert_infix!(a && b)` ≈ a …∧ b ≈ a lazy AND b -* `assert_command_stderr_eq!(command1, command2)` ≈ command1 stderr = command2 stderr +* `assert_infix!(a || b)` ≈ a …∨ b ≈ a lazy OR b -* `assert_command_stderr_eq_expr!(command, expr)` ≈ command stderr = expr -* `assert_command_stderr_contains!(command, containee)` ≈ command stderr contains containee +### For nearness -* `assert_command_stderr_is_match!(command, matcher)` ≈ command stderr is a matcher match +Compare values by using nearness math conventions: +* `assert_in_delta!(a, b, delta)` ≈ | a - b | ≤ delta -### assert_program_args_* for process command comparisons created via program name and args interator +* `assert_in_epsilon(a, b, epsilon)` ≈ | a - b | ≤ epsilon * min(a, b) -Compare command using program and arguments to standard output: -* `assert_program_args_stdout_eq!(program1, args1, program2, args2)` ≈ command using program1 and args1 to stdout = command2 with program2 and args2 to stdout +### For strings -* `assert_program_args_stdout_eq_expr!(program, args, expr)` ≈ command using program and args to stdout = expr +These macros help with strings and also other structures that provide +matchers such as `starts_with`, `ends_width`, `contains`, and `is_match`. +Each macro also has a corresponding `not` version. -* `assert_program_args_stdout_contains!(program, args, containee)` ≈ command using program and args to stdout contains containee +* `assert_starts_with(a, b)` ≈ a.starts_with(b) -* `assert_program_args_stdout_is_match!(program, args, matcher)` ≈ matcher is match with command using program and args +* `assert_ends_with(a, b)` ≈ a.ends_with(b) -Compare command using program and arguments to standard output: +* `assert_contains(container, containee)` ≈ container.contains(containee) -* `assert_program_args_stderr_eq!(program1, args1, program2, args2)` ≈ command using program1 and args1 to stderr = command2 with program2 and args2 to stderr +* `assert_is_match(matcher, matchee)` ≈ matcher.is_match(matchee) -* `assert_program_args_stderr_eq_expr!(program, args, expr)` ≈ command using program and args to stderr = expr -* `assert_program_args_stderr_contains!(program, args, containee)` ≈ command using program and args to stderr contains containee +### For much more -* `assert_program_args_stderr_is_match!(program, args, matcher)` ≈ matcher is match with command using program and args +There are many more macros that are conveniently grouped into modules. +For enums: -## Naming conventions +* [`assert_option`] for `Option` (`Some`, `None`) -Abbreviations: +* [`assert_result`] for `Result` (`Ok`, `Err`) -* `eq` ≈ equal +For collections, such as arrays, vectors, lists, maps: -* `ne` ≈ not equal. +* [`assert_set`] for set collections -* `ge` ≈ greater than or equal. +* [`assert_bag`] for bag collections -* `gt` ≈ greater than +For functions: -* `le` ≈ less than or equal. +* [`assert_fn`] for functions in general. -* `lt` ≈ less than +* [`assert_fn_ok`] for functions that return Result::Ok. -Shorthands: +* [`assert_fn_err`] for functions that return Result::Err. -* `path` ≈ implements `AsRef` such as `std::path::PathBuf`. +For readers: -* `reader` ≈ implements method `.read_to_string()` such as `std::io::Read`. +* [`assert_fs_read_to_string`] for file system path contents. -* `matcher` ≈ implements `.is_match(…)` such as `regex::Regex`. +* [`assert_io_read_to_string`] for input/output reader streams. -* `containee` ≈ usable inside `.contains(…)` such as a - `std::string::String` substring. +For external calls: -* `set` ≈ a collection such as `::std::collections::BTreeSet`. +* [`assert_command`] for commands and their stdout & stderr. -* `bag` ≈ a collection such as `::std::collections::BTreeMap` which has - key counts. +* [`assert_program_args`] for programs with args and their stdout & stderr. ## Forms @@ -466,19 +287,31 @@ assert_io_read_to_string_eq_expr!(reader, expr); // reader1.read_to_string() = e ``` -## Changes summary +## Change highlights -### Version 8.x top changes +### Version 8 -* Add `assert_fs_read_to_string_*` macros for comparing files. +8.2: + +* Add `assert_infix` + +* Add submodules with smoke tests for better documentability. -* Rename `assert_read_to_string_*` macros to `assert_io_read_to_string_*`. If you use these macros, then please update your code to use the new naming convention. +8.1: + +* Add Result macros `assert_result_ok` and `assert_result_err` + +* Add Option macros `assert_option_some` and `assert_option_none` + +8.0: + +* Add `assert_fs_read_to_string_*` macros for comparing files. -* Add `rustdoc` documentation for all modules. +* Breaking change: rename `assert_read_to_string_*` macros to `assert_io_read_to_string_*`. If you use these macros, then please update your code to use the new naming convention. -### Version 7.x top changes +### Version 7 * Add `assert_in_delta`, `assert_in_epsilon`. @@ -487,7 +320,7 @@ assert_io_read_to_string_eq_expr!(reader, expr); // reader1.read_to_string() = e * Add `cargo release` for optimized tagged releases. -### Version 6.x top changes +### Version 6 * Add `assert_starts_with`, `assert_ends_with`, `assert_contains`, `assert_is_match`. @@ -499,8 +332,8 @@ assert_io_read_to_string_eq_expr!(reader, expr); // reader1.read_to_string() = e ## Tracking * Package: assertables-rust-crate -* Version: 8.1.0 +* Version: 8.2.0 * Created: 2021-03-30T15:47:49Z -* Updated: 2024-09-03T21:12:07Z +* Updated: 2024-09-04T20:21:53Z * License: MIT or Apache-2.0 or GPL-2.0 or GPL-3.0 or contact us for more * Contact: Joel Parker Henderson (joel@sixarm.com) diff --git a/book.md b/book.md index 39a9f3804..ef14f58c2 100644 --- a/book.md +++ b/book.md @@ -90,7 +90,7 @@ Rust `assertables` provides these macros for functions: ### Macros for functions that return a Result -A **Result** is a Rust standard that can be either `Ok` or `Err`. +A **Result** is a Rust standard that can be either `Ok`, `Err`. TODO @@ -543,7 +543,7 @@ Rust `assertables` provides these macros for program args and standard error: We write each our test macros in three flavors: -* `assert_gt_as_result` returns a `Result` as `Ok` or `Err`. This macro contains all the logic, all the error formatting, etc. This macro is called by the other flavors below. This macros is also useful for runtime checks, such as when you want to know success or failure, yet you don't want to panic. +* `assert_gt_as_result` returns a `Result` as `Ok`, `Err`. This macro contains all the logic, all the error formatting, etc. This macro is called by the other flavors below. This macros is also useful for runtime checks, such as when you want to know success or failure, yet you don't want to panic. * `assert_gt` returns `()` or panics. This is the typical macro that most developers will use for testing. This macro wraps `assert_gt_as_result`. This macro provides two arms: one arm is for returning the error messsage as is, and one arm is for returning a developer's custom error message. @@ -554,7 +554,7 @@ The sections below show each of the three flavors, using our simplest macro grou ### assert_gt_as_result -The macro `assert_gt_as_result` returns a `Result` as `Ok` or `Err`. +The macro `assert_gt_as_result` returns a `Result` as `Ok`, `Err`. The macro contains all the logic and all the error formatting. diff --git a/doc/developers.md b/doc/developers.md deleted file mode 100644 index 10a34ffa3..000000000 --- a/doc/developers.md +++ /dev/null @@ -1,110 +0,0 @@ -# Developers: how we write our test macros - -We write each our test macros in three flavors: - -* `assert_gt_as_result` returns a `Result` as `Ok` or `Err`. This macro contains all the logic, all the error formatting, etc. This macro is called by the other flavors below. This macros is also useful for runtime checks, such as when you want to know success or failure, yet you don't want to panic. - -* `assert_gt` returns `()` or panics. This is the typical macro that most developers will use for testing. This macro wraps `assert_gt_as_result`. This macro provides two arms: one arm is for returning the error messsage as is, and one arm is for returning a developer's custom error message. - -* `debug_assert_gt` return `()` or panics. This macro's statements are only enabled in non-optimized builds by default. An optimized build will not execute this macro's statements unless `-C debug-assertions` is passed to the compiler. - -The sections below show each of the three flavors, using our simplest macro group: `assert_gt_as_result`, `assert_gt`, `debug_assert_gt`. - - -## assert_gt_as_result - -The macro `assert_gt_as_result` returns a `Result` as `Ok` or `Err`. - -The macro contains all the logic and all the error formatting. - -The macro is called by the other flavors: directly by `assert_gt` and indirectly by `debug_assert_gt`. - -The macros is useful for runtime checks, such as when you want to know success or failure, yet you don't want to panic. - -Code: - -```rust -#[macro_export] -macro_rules! assert_gt_as_result { - ($a:expr, $b:expr $(,)?) => ({ - match (&$a, &$b) { - (a_val, b_val) => { - if a_val > b_val { - Ok(()) - } else { - Err(format!( - concat!( - "assertion failed: `assert_gt!(left, right)`\n", - " left label: `{}`,\n", - " left debug: `{:?}`,\n", - " right label: `{}`,\n", - " right debug: `{:?}`,\n", - " left: `{:?}`,\n", - " right: `{:?}`" - ), - stringify!($a), $a, - stringify!($b), $b, - a_val, - b_val - )) - } - } - } - }); -} -``` - - -## assert_gt - -The macro `assert_gt` returns `()` or panics. - -The macro is the typical macro that most developers will use for testing. - -The macro wraps `assert_gt_as_result`. - -The macro provides two arms: one arm is for returning the error messsage as is, and one arm is for returning a developer's custom error message. - -Code: - -```rust -#[macro_export] -macro_rules! assert_gt { - ($a:expr, $b:expr $(,)?) => ({ - match assert_gt_result!($a, $b) { - Ok(()) => (), - Err(err) => panic!("{}", err), - } - }); - ($a:expr, $b:expr, $($message:tt)+) => ({ - match assert_gt!($a, $b) { - Ok(()) => (), - Err(_err) => panic!("{}", $($message)+), - } - }); -} -``` - - -## debug_assert_gt - -The macro `debug_assert_gt` return `()` or panics. - -The macro is the typical macro that most developers will use for runtime debugging during development, and possibly also for runtime debugging during production. - -The macro's statements are only enabled in non-optimized builds by default. An optimized build will not execute this macro's statements unless `-C debug-assertions` is passed to the compiler. - -The macro wraps `assert_gt`. - -Code: - -```rust -#[macro_export] -macro_rules! debug_assert_gt { - ($($arg:tt)*) => { - if $crate::cfg!(debug_assertions) { - $crate::assert_gt!($($arg)*); - } - }; -} -``` \ No newline at end of file diff --git a/doc/forms.md b/doc/forms.md deleted file mode 100644 index 050070e38..000000000 --- a/doc/forms.md +++ /dev/null @@ -1,37 +0,0 @@ -# Forms - - -## Forms for panic! versus Err() - -The assert macros have three forms that you can use depending on your goals: - - -```rust -assert_gt!(a, b); // return () or panic!(…), for typical compile-time testing - -debug_assert_gt!(a, b); // return () or panic!(…), for a non-optimized runtime - -assert_gt_as_result!(a, b); // return Result Ok(()) or Err(…), for any runtime -``` - - -## Forms for messages - -The assert macros have forms for default messages versus custom messages. - -```rust -assert_gt!(1, 2); // panic!("assertion failed: assert_gt(1, 2)…") - -assert_gt!(1, 2, "message"); // panic!("message") -``` - - -## Forms for comparing an other versus an expression - -Some assert macros have forms for comparing an other versus an expression: - -```rust -assert_io_read_to_string_eq!(reader1, reader2); // reader1.read_to_string() = reader2.read_to_string() - -assert_io_read_to_string_eq_expr!(reader, expr); // reader1.read_to_string() = expr -``` diff --git a/doc/lib/all.html b/doc/lib/all.html index 71d11b98f..9126562ca 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_bag_eq/index.html b/doc/lib/assert_bag/assert_bag_eq/index.html similarity index 51% rename from doc/lib/assert_bag_eq/index.html rename to doc/lib/assert_bag/assert_bag_eq/index.html index 94049ac46..a6e38b5f1 100644 --- a/doc/lib/assert_bag_eq/index.html +++ b/doc/lib/assert_bag/assert_bag_eq/index.html @@ -1,4 +1,4 @@ -lib::assert_bag_eq - Rust

Module lib::assert_bag_eq

source ·
Expand description

Assert a bag is equal to another.

+lib::assert_bag::assert_bag_eq - Rust

Module lib::assert_bag::assert_bag_eq

source ·
Expand description

Assert a bag is equal to another.

  • If true, return ().

    @@ -48,8 +48,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_bag_eq/sidebar-items.js b/doc/lib/assert_bag/assert_bag_eq/sidebar-items.js similarity index 100% rename from doc/lib/assert_bag_eq/sidebar-items.js rename to doc/lib/assert_bag/assert_bag_eq/sidebar-items.js diff --git a/doc/lib/assert_bag_ne/index.html b/doc/lib/assert_bag/assert_bag_ne/index.html similarity index 52% rename from doc/lib/assert_bag_ne/index.html rename to doc/lib/assert_bag/assert_bag_ne/index.html index be6bf791e..92a711a0b 100644 --- a/doc/lib/assert_bag_ne/index.html +++ b/doc/lib/assert_bag/assert_bag_ne/index.html @@ -1,4 +1,4 @@ -lib::assert_bag_ne - Rust

Module lib::assert_bag_ne

source ·
Expand description

Assert a bag is not equal to another.

+lib::assert_bag::assert_bag_ne - Rust

Module lib::assert_bag::assert_bag_ne

source ·
Expand description

Assert a bag is not equal to another.

\ No newline at end of file diff --git a/doc/lib/assert_bag_ne/sidebar-items.js b/doc/lib/assert_bag/assert_bag_ne/sidebar-items.js similarity index 100% rename from doc/lib/assert_bag_ne/sidebar-items.js rename to doc/lib/assert_bag/assert_bag_ne/sidebar-items.js diff --git a/doc/lib/assert_bag_subbag/index.html b/doc/lib/assert_bag/assert_bag_subbag/index.html similarity index 63% rename from doc/lib/assert_bag_subbag/index.html rename to doc/lib/assert_bag/assert_bag_subbag/index.html index 49f2f9c80..0baf11276 100644 --- a/doc/lib/assert_bag_subbag/index.html +++ b/doc/lib/assert_bag/assert_bag_subbag/index.html @@ -1,4 +1,4 @@ -lib::assert_bag_subbag - Rust

Module lib::assert_bag_subbag

source ·
Expand description

Assert a bag is a subbag of another.

+lib::assert_bag::assert_bag_subbag - Rust

Module lib::assert_bag::assert_bag_subbag

source ·
Expand description

Assert a bag is a subbag of another.

\ No newline at end of file diff --git a/doc/lib/assert_bag_subbag/sidebar-items.js b/doc/lib/assert_bag/assert_bag_subbag/sidebar-items.js similarity index 100% rename from doc/lib/assert_bag_subbag/sidebar-items.js rename to doc/lib/assert_bag/assert_bag_subbag/sidebar-items.js diff --git a/doc/lib/assert_bag_superbag/index.html b/doc/lib/assert_bag/assert_bag_superbag/index.html similarity index 63% rename from doc/lib/assert_bag_superbag/index.html rename to doc/lib/assert_bag/assert_bag_superbag/index.html index 0514e00d5..216f46aad 100644 --- a/doc/lib/assert_bag_superbag/index.html +++ b/doc/lib/assert_bag/assert_bag_superbag/index.html @@ -1,4 +1,4 @@ -lib::assert_bag_superbag - Rust

Module lib::assert_bag_superbag

source ·
Expand description

Assert a bag is a superbag of another.

+lib::assert_bag::assert_bag_superbag - Rust

Module lib::assert_bag::assert_bag_superbag

source ·
Expand description

Assert a bag is a superbag of another.

\ No newline at end of file diff --git a/doc/lib/assert_bag_superbag/sidebar-items.js b/doc/lib/assert_bag/assert_bag_superbag/sidebar-items.js similarity index 100% rename from doc/lib/assert_bag_superbag/sidebar-items.js rename to doc/lib/assert_bag/assert_bag_superbag/sidebar-items.js diff --git a/doc/lib/assert_bag/index.html b/doc/lib/assert_bag/index.html new file mode 100644 index 000000000..b5aa2a6a6 --- /dev/null +++ b/doc/lib/assert_bag/index.html @@ -0,0 +1,28 @@ +lib::assert_bag - Rust

Module lib::assert_bag

source ·
Expand description

Assert macros for comparing bags.

+

These macros help with comparison of bag parameters, such as comparison of +two arrays or two vectors, where the item order does not matter, and the +item count does matter. These macros convert their inputs into HashMap +iterators.

+

For eq & ne:

+ +

For subbag & superbag:

+ +

§Example

+
let a = [1, 1];
+let b = [1, 1];
+assert_bag_eq!(&a, &b);
+

Modules§

\ No newline at end of file diff --git a/doc/lib/assert_bag/sidebar-items.js b/doc/lib/assert_bag/sidebar-items.js new file mode 100644 index 000000000..96ccaa05c --- /dev/null +++ b/doc/lib/assert_bag/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"mod":["assert_bag_eq","assert_bag_ne","assert_bag_subbag","assert_bag_superbag"]}; \ No newline at end of file diff --git a/doc/lib/assert_command_stderr_contains/index.html b/doc/lib/assert_command/assert_command_stderr_contains/index.html similarity index 53% rename from doc/lib/assert_command_stderr_contains/index.html rename to doc/lib/assert_command/assert_command_stderr_contains/index.html index db9dc1ea1..6904e5cbb 100644 --- a/doc/lib/assert_command_stderr_contains/index.html +++ b/doc/lib/assert_command/assert_command_stderr_contains/index.html @@ -1,4 +1,4 @@ -lib::assert_command_stderr_contains - Rust

Module lib::assert_command_stderr_contains

source ·
Expand description

Assert a command stderr string contains a given containee.

+lib::assert_command::assert_command_stderr_contains - Rust
Expand description

Assert a command stderr string contains a given containee.

  • If true, return ().

    @@ -58,8 +58,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_command_stderr_contains/sidebar-items.js b/doc/lib/assert_command/assert_command_stderr_contains/sidebar-items.js similarity index 100% rename from doc/lib/assert_command_stderr_contains/sidebar-items.js rename to doc/lib/assert_command/assert_command_stderr_contains/sidebar-items.js diff --git a/doc/lib/assert_command_stderr_eq/index.html b/doc/lib/assert_command/assert_command_stderr_eq/index.html similarity index 53% rename from doc/lib/assert_command_stderr_eq/index.html rename to doc/lib/assert_command/assert_command_stderr_eq/index.html index 8f73defc2..9a78a712f 100644 --- a/doc/lib/assert_command_stderr_eq/index.html +++ b/doc/lib/assert_command/assert_command_stderr_eq/index.html @@ -1,4 +1,4 @@ -lib::assert_command_stderr_eq - Rust

Module lib::assert_command_stderr_eq

source ·
Expand description

Assert a command stderr string is equal to another.

+lib::assert_command::assert_command_stderr_eq - Rust

Module lib::assert_command::assert_command_stderr_eq

source ·
Expand description

Assert a command stderr string is equal to another.

  • If true, return ().

    @@ -54,8 +54,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_command_stderr_eq/sidebar-items.js b/doc/lib/assert_command/assert_command_stderr_eq/sidebar-items.js similarity index 100% rename from doc/lib/assert_command_stderr_eq/sidebar-items.js rename to doc/lib/assert_command/assert_command_stderr_eq/sidebar-items.js diff --git a/doc/lib/assert_command_stderr_eq_expr/index.html b/doc/lib/assert_command/assert_command_stderr_eq_expr/index.html similarity index 51% rename from doc/lib/assert_command_stderr_eq_expr/index.html rename to doc/lib/assert_command/assert_command_stderr_eq_expr/index.html index a62bb58a4..2b451f35e 100644 --- a/doc/lib/assert_command_stderr_eq_expr/index.html +++ b/doc/lib/assert_command/assert_command_stderr_eq_expr/index.html @@ -1,4 +1,4 @@ -lib::assert_command_stderr_eq_expr - Rust

Module lib::assert_command_stderr_eq_expr

source ·
Expand description

Assert a command stderr string is equal to an expression.

+lib::assert_command::assert_command_stderr_eq_expr - Rust
Expand description

Assert a command stderr string is equal to an expression.

  • If true, return ().

    @@ -53,8 +53,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_command_stderr_eq_expr/sidebar-items.js b/doc/lib/assert_command/assert_command_stderr_eq_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_command_stderr_eq_expr/sidebar-items.js rename to doc/lib/assert_command/assert_command_stderr_eq_expr/sidebar-items.js diff --git a/doc/lib/assert_command_stderr_is_match/index.html b/doc/lib/assert_command/assert_command_stderr_is_match/index.html similarity index 51% rename from doc/lib/assert_command_stderr_is_match/index.html rename to doc/lib/assert_command/assert_command_stderr_is_match/index.html index cf9a10825..ff150af6b 100644 --- a/doc/lib/assert_command_stderr_is_match/index.html +++ b/doc/lib/assert_command/assert_command_stderr_is_match/index.html @@ -1,4 +1,4 @@ -lib::assert_command_stderr_is_match - Rust

Module lib::assert_command_stderr_is_match

source ·
Expand description

Assert a command stderr string is a match to a regex.

+lib::assert_command::assert_command_stderr_is_match - Rust
Expand description

Assert a command stderr string is a match to a regex.

  • If true, return ().

    @@ -53,8 +53,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_command_stderr_is_match/sidebar-items.js b/doc/lib/assert_command/assert_command_stderr_is_match/sidebar-items.js similarity index 100% rename from doc/lib/assert_command_stderr_is_match/sidebar-items.js rename to doc/lib/assert_command/assert_command_stderr_is_match/sidebar-items.js diff --git a/doc/lib/assert_command_stdout_contains/index.html b/doc/lib/assert_command/assert_command_stdout_contains/index.html similarity index 53% rename from doc/lib/assert_command_stdout_contains/index.html rename to doc/lib/assert_command/assert_command_stdout_contains/index.html index aa7d6b3c9..f0743609c 100644 --- a/doc/lib/assert_command_stdout_contains/index.html +++ b/doc/lib/assert_command/assert_command_stdout_contains/index.html @@ -1,4 +1,4 @@ -lib::assert_command_stdout_contains - Rust

Module lib::assert_command_stdout_contains

source ·
Expand description

Assert a command stdout string contains a given containee.

+lib::assert_command::assert_command_stdout_contains - Rust
Expand description

Assert a command stdout string contains a given containee.

  • If true, return ().

    @@ -58,8 +58,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_command_stdout_contains/sidebar-items.js b/doc/lib/assert_command/assert_command_stdout_contains/sidebar-items.js similarity index 100% rename from doc/lib/assert_command_stdout_contains/sidebar-items.js rename to doc/lib/assert_command/assert_command_stdout_contains/sidebar-items.js diff --git a/doc/lib/assert_command_stdout_eq/index.html b/doc/lib/assert_command/assert_command_stdout_eq/index.html similarity index 55% rename from doc/lib/assert_command_stdout_eq/index.html rename to doc/lib/assert_command/assert_command_stdout_eq/index.html index 40989e5ea..ce24cabfd 100644 --- a/doc/lib/assert_command_stdout_eq/index.html +++ b/doc/lib/assert_command/assert_command_stdout_eq/index.html @@ -1,4 +1,4 @@ -lib::assert_command_stdout_eq - Rust

Module lib::assert_command_stdout_eq

source ·
Expand description

Assert a command stdout string is equal to another.

+lib::assert_command::assert_command_stdout_eq - Rust

Module lib::assert_command::assert_command_stdout_eq

source ·
Expand description

Assert a command stdout string is equal to another.

  • If true, return ().

    @@ -56,8 +56,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_command_stdout_eq/sidebar-items.js b/doc/lib/assert_command/assert_command_stdout_eq/sidebar-items.js similarity index 100% rename from doc/lib/assert_command_stdout_eq/sidebar-items.js rename to doc/lib/assert_command/assert_command_stdout_eq/sidebar-items.js diff --git a/doc/lib/assert_command_stdout_eq_expr/index.html b/doc/lib/assert_command/assert_command_stdout_eq_expr/index.html similarity index 50% rename from doc/lib/assert_command_stdout_eq_expr/index.html rename to doc/lib/assert_command/assert_command_stdout_eq_expr/index.html index c5bff746b..5d8facf72 100644 --- a/doc/lib/assert_command_stdout_eq_expr/index.html +++ b/doc/lib/assert_command/assert_command_stdout_eq_expr/index.html @@ -1,4 +1,4 @@ -lib::assert_command_stdout_eq_expr - Rust

Module lib::assert_command_stdout_eq_expr

source ·
Expand description

Assert a command stdout string is equal to an expression.

+lib::assert_command::assert_command_stdout_eq_expr - Rust
Expand description

Assert a command stdout string is equal to an expression.

  • If true, return ().

    @@ -53,8 +53,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_command_stdout_eq_expr/sidebar-items.js b/doc/lib/assert_command/assert_command_stdout_eq_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_command_stdout_eq_expr/sidebar-items.js rename to doc/lib/assert_command/assert_command_stdout_eq_expr/sidebar-items.js diff --git a/doc/lib/assert_command_stdout_is_match/index.html b/doc/lib/assert_command/assert_command_stdout_is_match/index.html similarity index 51% rename from doc/lib/assert_command_stdout_is_match/index.html rename to doc/lib/assert_command/assert_command_stdout_is_match/index.html index 8ad1fbe50..65147e34b 100644 --- a/doc/lib/assert_command_stdout_is_match/index.html +++ b/doc/lib/assert_command/assert_command_stdout_is_match/index.html @@ -1,4 +1,4 @@ -lib::assert_command_stdout_is_match - Rust

Module lib::assert_command_stdout_is_match

source ·
Expand description

Assert a command stdout string is a match to a regex.

+lib::assert_command::assert_command_stdout_is_match - Rust
Expand description

Assert a command stdout string is a match to a regex.

  • If true, return ().

    @@ -54,8 +54,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_command_stdout_is_match/sidebar-items.js b/doc/lib/assert_command/assert_command_stdout_is_match/sidebar-items.js similarity index 100% rename from doc/lib/assert_command_stdout_is_match/sidebar-items.js rename to doc/lib/assert_command/assert_command_stdout_is_match/sidebar-items.js diff --git a/doc/lib/assert_command/index.html b/doc/lib/assert_command/index.html new file mode 100644 index 000000000..62c67c0f1 --- /dev/null +++ b/doc/lib/assert_command/index.html @@ -0,0 +1,43 @@ +lib::assert_command - Rust

Module lib::assert_command

source ·
Expand description

Assert macros for comparing commands and their stdout & stderr.

+

These macros help with calling external commands, then capturing the +standard output stream and standard error stream.

+

These macros have corresponding the macros in the module assert_program_args.

+

Compare command standard output string:

+ +

Compare command standard error string:

+ +

§Example

+
use std::process::Command;
+
+let mut a = Command::new("bin/printf-stdout");
+a.args(["%s", "hello"]);
+let mut b = Command::new("bin/printf-stdout");
+b.args(["%s%s%s%s%s", "h", "e", "l", "l", "o"]);
+assert_command_stdout_eq!(a, b);
+

Modules§

\ No newline at end of file diff --git a/doc/lib/assert_command/sidebar-items.js b/doc/lib/assert_command/sidebar-items.js new file mode 100644 index 000000000..04a982df7 --- /dev/null +++ b/doc/lib/assert_command/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"mod":["assert_command_stderr_contains","assert_command_stderr_eq","assert_command_stderr_eq_expr","assert_command_stderr_is_match","assert_command_stdout_contains","assert_command_stdout_eq","assert_command_stdout_eq_expr","assert_command_stdout_is_match"]}; \ No newline at end of file diff --git a/doc/lib/assert_fn/assert_fn_eq/index.html b/doc/lib/assert_fn/assert_fn_eq/index.html new file mode 100644 index 000000000..63908bfdb --- /dev/null +++ b/doc/lib/assert_fn/assert_fn_eq/index.html @@ -0,0 +1,57 @@ +lib::assert_fn::assert_fn_eq - Rust

Module lib::assert_fn::assert_fn_eq

source ·
Expand description

Assert a function output is equal to another function output.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
// Return Ok
+let a: i8 = -1;
+let b: i8 = 1;
+assert_fn_eq!(i8::abs, a, i8::abs, b);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let a: i8 = -1;
+let b: i8 = 2;
+assert_fn_eq!(i8::abs, a, i8::abs, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fn_eq!(left_function, left_param, right_function, right_param)`\n",
+    "  left_function label: `i8::abs`,\n",
+    "     left_param label: `a`,\n",
+    "     left_param debug: `-1`,\n",
+    " right_function label: `i8::abs`,\n",
+    "    right_param label: `b`,\n",
+    "    right_param debug: `2`,\n",
+    "                 left: `1`,\n",
+    "                right: `2`"
+);
+assert_eq!(actual, expect);
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let a: i8 = -1;
+let b: i8 = 2;
+assert_fn_eq!(i8::abs, a, i8::abs, b, "message");
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = "message";
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fn_eq/sidebar-items.js b/doc/lib/assert_fn/assert_fn_eq/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_eq/sidebar-items.js rename to doc/lib/assert_fn/assert_fn_eq/sidebar-items.js diff --git a/doc/lib/assert_fn/assert_fn_eq_expr/index.html b/doc/lib/assert_fn/assert_fn_eq_expr/index.html new file mode 100644 index 000000000..8119948de --- /dev/null +++ b/doc/lib/assert_fn/assert_fn_eq_expr/index.html @@ -0,0 +1,54 @@ +lib::assert_fn::assert_fn_eq_expr - Rust

Module lib::assert_fn::assert_fn_eq_expr

source ·
Expand description

Assert a function output is equal to an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
// Return Ok
+let a: i8 = -1;
+let b: i8 = 1;
+assert_fn_eq_expr!(i8::abs, a, b);
+//-> ()
+
+let a: i8 = -1;
+let b: i8 = 2;
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_fn_eq_expr!(i8::abs, a, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fn_eq_expr!(left_function, left_param, right_expr)`\n",
+    " left_function label: `i8::abs`,\n",
+    "    left_param label: `a`,\n",
+    "    left_param debug: `-1`,\n",
+    "    right_expr label: `b`,\n",
+    "    right_expr debug: `2`,\n",
+    "                left: `1`,\n",
+    "               right: `2`"
+);
+assert_eq!(actual, expect);
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_fn_eq_expr!(i8::abs, a, b, "message");
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = "message";
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fn_eq_expr/sidebar-items.js b/doc/lib/assert_fn/assert_fn_eq_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_eq_expr/sidebar-items.js rename to doc/lib/assert_fn/assert_fn_eq_expr/sidebar-items.js diff --git a/doc/lib/assert_fn/assert_fn_ge/index.html b/doc/lib/assert_fn/assert_fn_ge/index.html new file mode 100644 index 000000000..57b11acc5 --- /dev/null +++ b/doc/lib/assert_fn/assert_fn_ge/index.html @@ -0,0 +1,45 @@ +lib::assert_fn::assert_fn_ge - Rust

Module lib::assert_fn::assert_fn_ge

source ·
Expand description

Assert a function output is greater than or equal to another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
// Return Ok
+let a: i8 = -2;
+let b: i8 = 1;
+assert_fn_ge!(i8::abs, a, i8::abs, b);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let a: i8 = 1;
+let b: i8 = -2;
+assert_fn_ge!(i8::abs, a, i8::abs, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fn_ge!(left_function, left_param, right_function, right_param)`\n",
+    "  left_function label: `i8::abs`,\n",
+    "     left_param label: `a`,\n",
+    "     left_param debug: `1`,\n",
+    " right_function label: `i8::abs`,\n",
+    "    right_param label: `b`,\n",
+    "    right_param debug: `-2`,\n",
+    "                 left: `1`,\n",
+    "                right: `2`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fn_err_eq/sidebar-items.js b/doc/lib/assert_fn/assert_fn_ge/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_err_eq/sidebar-items.js rename to doc/lib/assert_fn/assert_fn_ge/sidebar-items.js diff --git a/doc/lib/assert_fn/assert_fn_ge_expr/index.html b/doc/lib/assert_fn/assert_fn_ge_expr/index.html new file mode 100644 index 000000000..b7df4a7c5 --- /dev/null +++ b/doc/lib/assert_fn/assert_fn_ge_expr/index.html @@ -0,0 +1,44 @@ +lib::assert_fn::assert_fn_ge_expr - Rust

Module lib::assert_fn::assert_fn_ge_expr

source ·
Expand description

Assert a function output is greater than or equal to an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
// Return Ok
+let a: i8 = -2;
+let b: i8 = 1;
+assert_fn_ge_expr!(i8::abs, a, b);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let a: i8 = -1;
+let b: i8 = 2;
+assert_fn_ge_expr!(i8::abs, a, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fn_ge_expr!(left_function, left_param, right_expr)`\n",
+    " left_function label: `i8::abs`,\n",
+    "    left_param label: `a`,\n",
+    "    left_param debug: `-1`,\n",
+    "    right_expr label: `b`,\n",
+    "    right_expr debug: `2`,\n",
+    "                left: `1`,\n",
+    "               right: `2`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fn_err_eq_expr/sidebar-items.js b/doc/lib/assert_fn/assert_fn_ge_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_err_eq_expr/sidebar-items.js rename to doc/lib/assert_fn/assert_fn_ge_expr/sidebar-items.js diff --git a/doc/lib/assert_fn/assert_fn_gt/index.html b/doc/lib/assert_fn/assert_fn_gt/index.html new file mode 100644 index 000000000..93e8af76f --- /dev/null +++ b/doc/lib/assert_fn/assert_fn_gt/index.html @@ -0,0 +1,45 @@ +lib::assert_fn::assert_fn_gt - Rust

Module lib::assert_fn::assert_fn_gt

source ·
Expand description

Assert a function output is greater than another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
// Return Ok
+let a: i8 = -2;
+let b: i8 = 1;
+assert_fn_gt!(i8::abs, a, i8::abs, b);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let a: i8 = 1;
+let b: i8 = -2;
+assert_fn_gt!(i8::abs, a, i8::abs, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fn_gt!(left_function, left_param, right_function, right_param)`\n",
+    "  left_function label: `i8::abs`,\n",
+    "     left_param label: `a`,\n",
+    "     left_param debug: `1`,\n",
+    " right_function label: `i8::abs`,\n",
+    "    right_param label: `b`,\n",
+    "    right_param debug: `-2`,\n",
+    "                 left: `1`,\n",
+    "                right: `2`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fn_err_ge/sidebar-items.js b/doc/lib/assert_fn/assert_fn_gt/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_err_ge/sidebar-items.js rename to doc/lib/assert_fn/assert_fn_gt/sidebar-items.js diff --git a/doc/lib/assert_fn/assert_fn_gt_expr/index.html b/doc/lib/assert_fn/assert_fn_gt_expr/index.html new file mode 100644 index 000000000..e444cb855 --- /dev/null +++ b/doc/lib/assert_fn/assert_fn_gt_expr/index.html @@ -0,0 +1,44 @@ +lib::assert_fn::assert_fn_gt_expr - Rust

Module lib::assert_fn::assert_fn_gt_expr

source ·
Expand description

Assert a function output is greater than an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
// Return Ok
+let a: i8 = -2;
+let b: i8 = 1;
+assert_fn_gt_expr!(i8::abs, a, b);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let a: i8 = -1;
+let b: i8 = 2;
+assert_fn_gt_expr!(i8::abs, a, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fn_gt_expr!(left_function, left_param, right_expr)`\n",
+    " left_function label: `i8::abs`,\n",
+    "    left_param label: `a`,\n",
+    "    left_param debug: `-1`,\n",
+    "    right_expr label: `b`,\n",
+    "    right_expr debug: `2`,\n",
+    "                left: `1`,\n",
+    "               right: `2`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fn_err_ge_expr/sidebar-items.js b/doc/lib/assert_fn/assert_fn_gt_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_err_ge_expr/sidebar-items.js rename to doc/lib/assert_fn/assert_fn_gt_expr/sidebar-items.js diff --git a/doc/lib/assert_fn/assert_fn_le/index.html b/doc/lib/assert_fn/assert_fn_le/index.html new file mode 100644 index 000000000..f13f3c026 --- /dev/null +++ b/doc/lib/assert_fn/assert_fn_le/index.html @@ -0,0 +1,45 @@ +lib::assert_fn::assert_fn_le - Rust

Module lib::assert_fn::assert_fn_le

source ·
Expand description

Assert a function output is less than or equal to another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
// Return Ok
+let a: i8 = 1;
+let b: i8 = -2;
+assert_fn_le!(i8::abs, a, i8::abs, b);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let a: i8 = -2;
+let b: i8 = 1;
+assert_fn_le!(i8::abs, a, i8::abs, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fn_le!(left_function, left_param, right_function, right_param)`\n",
+    "  left_function label: `i8::abs`,\n",
+    "     left_param label: `a`,\n",
+    "     left_param debug: `-2`,\n",
+    " right_function label: `i8::abs`,\n",
+    "    right_param label: `b`,\n",
+    "    right_param debug: `1`,\n",
+    "                 left: `2`,\n",
+    "                right: `1`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fn_err_gt/sidebar-items.js b/doc/lib/assert_fn/assert_fn_le/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_err_gt/sidebar-items.js rename to doc/lib/assert_fn/assert_fn_le/sidebar-items.js diff --git a/doc/lib/assert_fn/assert_fn_le_expr/index.html b/doc/lib/assert_fn/assert_fn_le_expr/index.html new file mode 100644 index 000000000..38ad806d6 --- /dev/null +++ b/doc/lib/assert_fn/assert_fn_le_expr/index.html @@ -0,0 +1,44 @@ +lib::assert_fn::assert_fn_le_expr - Rust

Module lib::assert_fn::assert_fn_le_expr

source ·
Expand description

Assert a function output is less than or equal to an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
// Return Ok
+let a: i8 = -1;
+let b: i8 = 2;
+assert_fn_le_expr!(i8::abs, a, b);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let a: i8 = -2;
+let b: i8 = 1;
+assert_fn_le_expr!(i8::abs, a, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fn_le_expr!(left_function, left_param, right_expr)`\n",
+    " left_function label: `i8::abs`,\n",
+    "    left_param label: `a`,\n",
+    "    left_param debug: `-2`,\n",
+    "    right_expr label: `b`,\n",
+    "    right_expr debug: `1`,\n",
+    "                left: `2`,\n",
+    "               right: `1`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fn_err_gt_expr/sidebar-items.js b/doc/lib/assert_fn/assert_fn_le_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_err_gt_expr/sidebar-items.js rename to doc/lib/assert_fn/assert_fn_le_expr/sidebar-items.js diff --git a/doc/lib/assert_fn/assert_fn_lt/index.html b/doc/lib/assert_fn/assert_fn_lt/index.html new file mode 100644 index 000000000..ae83abda6 --- /dev/null +++ b/doc/lib/assert_fn/assert_fn_lt/index.html @@ -0,0 +1,45 @@ +lib::assert_fn::assert_fn_lt - Rust

Module lib::assert_fn::assert_fn_lt

source ·
Expand description

Assert a function output is less than another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
// Return Ok
+let a: i8 = 1;
+let b: i8 = -2;
+assert_fn_lt!(i8::abs, a, i8::abs, b);
+//-> ()
+
+let a: i8 = -2;
+let b: i8 = 1;
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_fn_lt!(i8::abs, a, i8::abs, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fn_lt!(left_function, left_param, right_function, right_param)`\n",
+    "  left_function label: `i8::abs`,\n",
+    "     left_param label: `a`,\n",
+    "     left_param debug: `-2`,\n",
+    " right_function label: `i8::abs`,\n",
+    "    right_param label: `b`,\n",
+    "    right_param debug: `1`,\n",
+    "                 left: `2`,\n",
+    "                right: `1`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fn_err_le/sidebar-items.js b/doc/lib/assert_fn/assert_fn_lt/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_err_le/sidebar-items.js rename to doc/lib/assert_fn/assert_fn_lt/sidebar-items.js diff --git a/doc/lib/assert_fn/assert_fn_lt_expr/index.html b/doc/lib/assert_fn/assert_fn_lt_expr/index.html new file mode 100644 index 000000000..7b3b5706e --- /dev/null +++ b/doc/lib/assert_fn/assert_fn_lt_expr/index.html @@ -0,0 +1,44 @@ +lib::assert_fn::assert_fn_lt_expr - Rust

Module lib::assert_fn::assert_fn_lt_expr

source ·
Expand description

Assert a function output is less than an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
// Return Ok
+let a: i8 = -1;
+let b: i8 = 2;
+assert_fn_lt_expr!(i8::abs, a, b);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let a: i8 = -2;
+let b: i8 = 1;
+assert_fn_lt_expr!(i8::abs, a, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fn_lt_expr!(left_function, left_param, right_expr)`\n",
+    " left_function label: `i8::abs`,\n",
+    "    left_param label: `a`,\n",
+    "    left_param debug: `-2`,\n",
+    "    right_expr label: `b`,\n",
+    "    right_expr debug: `1`,\n",
+    "                left: `2`,\n",
+    "               right: `1`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fn_err_le_expr/sidebar-items.js b/doc/lib/assert_fn/assert_fn_lt_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_err_le_expr/sidebar-items.js rename to doc/lib/assert_fn/assert_fn_lt_expr/sidebar-items.js diff --git a/doc/lib/assert_fn/assert_fn_ne/index.html b/doc/lib/assert_fn/assert_fn_ne/index.html new file mode 100644 index 000000000..2986df396 --- /dev/null +++ b/doc/lib/assert_fn/assert_fn_ne/index.html @@ -0,0 +1,45 @@ +lib::assert_fn::assert_fn_ne - Rust

Module lib::assert_fn::assert_fn_ne

source ·
Expand description

Assert a function output is not equal to another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
// Return Ok
+let a: i8 = -1;
+let b: i8 = 2;
+assert_fn_ne!(i8::abs, a, i8::abs, b);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let a: i8 = -1;
+let b: i8 = 1;
+assert_fn_ne!(i8::abs, a, i8::abs, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fn_ne!(left_function, left_param, right_function, right_param)`\n",
+    "  left_function label: `i8::abs`,\n",
+    "     left_param label: `a`,\n",
+    "     left_param debug: `-1`,\n",
+    " right_function label: `i8::abs`,\n",
+    "    right_param label: `b`,\n",
+    "    right_param debug: `1`,\n",
+    "                 left: `1`,\n",
+    "                right: `1`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fn_err_lt/sidebar-items.js b/doc/lib/assert_fn/assert_fn_ne/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_err_lt/sidebar-items.js rename to doc/lib/assert_fn/assert_fn_ne/sidebar-items.js diff --git a/doc/lib/assert_fn/assert_fn_ne_expr/index.html b/doc/lib/assert_fn/assert_fn_ne_expr/index.html new file mode 100644 index 000000000..fc11c546c --- /dev/null +++ b/doc/lib/assert_fn/assert_fn_ne_expr/index.html @@ -0,0 +1,44 @@ +lib::assert_fn::assert_fn_ne_expr - Rust

Module lib::assert_fn::assert_fn_ne_expr

source ·
Expand description

Assert a function output is not equal to an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
// Return Ok
+let a: i8 = 1;
+let b: i8 = -2;
+assert_fn_ne_expr!(i8::abs, a, b);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let a: i8 = -1;
+let b: i8 = 1;
+assert_fn_ne_expr!(i8::abs, a, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fn_ne_expr!(left_function, left_param, right_expr)`\n",
+    " left_function label: `i8::abs`,\n",
+    "    left_param label: `a`,\n",
+    "    left_param debug: `-1`,\n",
+    "    right_expr label: `b`,\n",
+    "    right_expr debug: `1`,\n",
+    "                left: `1`,\n",
+    "               right: `1`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fn_err_lt_expr/sidebar-items.js b/doc/lib/assert_fn/assert_fn_ne_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_err_lt_expr/sidebar-items.js rename to doc/lib/assert_fn/assert_fn_ne_expr/sidebar-items.js diff --git a/doc/lib/assert_fn/index.html b/doc/lib/assert_fn/index.html new file mode 100644 index 000000000..bbb734c5b --- /dev/null +++ b/doc/lib/assert_fn/index.html @@ -0,0 +1,50 @@ +lib::assert_fn - Rust

Module lib::assert_fn

source ·
Expand description

Assert macros for comparing functions.

+

These macros help compare functions that return anything. +The macros call the functions, then compare the return values.

+

Compare a function with another function:

+ +

Compare a function with an expression:

+ +

§Example

+
let a: i8 = -1;
+let b: i8 = 1;
+assert_fn_eq!(i8::abs, a, i8::abs, b);
+

Modules§

\ No newline at end of file diff --git a/doc/lib/assert_fn/sidebar-items.js b/doc/lib/assert_fn/sidebar-items.js new file mode 100644 index 000000000..58d0b7c2d --- /dev/null +++ b/doc/lib/assert_fn/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"mod":["assert_fn_eq","assert_fn_eq_expr","assert_fn_ge","assert_fn_ge_expr","assert_fn_gt","assert_fn_gt_expr","assert_fn_le","assert_fn_le_expr","assert_fn_lt","assert_fn_lt_expr","assert_fn_ne","assert_fn_ne_expr"]}; \ No newline at end of file diff --git a/doc/lib/assert_fn_eq/index.html b/doc/lib/assert_fn_eq/index.html deleted file mode 100644 index 4364e7865..000000000 --- a/doc/lib/assert_fn_eq/index.html +++ /dev/null @@ -1,57 +0,0 @@ -lib::assert_fn_eq - Rust

Module lib::assert_fn_eq

source ·
Expand description

Assert a function output is equal to another function output.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
// Return Ok
-let a: i32 = -1;
-let b: i32 = 1;
-assert_fn_eq!(i32::abs, a, i32::abs, b);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let a: i32 = -1;
-let b: i32 = 2;
-assert_fn_eq!(i32::abs, a, i32::abs, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fn_eq!(left_function, left_param, right_function, right_param)`\n",
-    "  left_function label: `i32::abs`,\n",
-    "     left_param label: `a`,\n",
-    "     left_param debug: `-1`,\n",
-    " right_function label: `i32::abs`,\n",
-    "    right_param label: `b`,\n",
-    "    right_param debug: `2`,\n",
-    "                 left: `1`,\n",
-    "                right: `2`"
-);
-assert_eq!(actual, expect);
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let a: i32 = -1;
-let b: i32 = 2;
-assert_fn_eq!(i32::abs, a, i32::abs, b, "message");
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = "message";
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fn_eq_expr/index.html b/doc/lib/assert_fn_eq_expr/index.html deleted file mode 100644 index f764690d9..000000000 --- a/doc/lib/assert_fn_eq_expr/index.html +++ /dev/null @@ -1,54 +0,0 @@ -lib::assert_fn_eq_expr - Rust

Module lib::assert_fn_eq_expr

source ·
Expand description

Assert a function output is equal to an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
// Return Ok
-let a: i32 = -1;
-let b: i32 = 1;
-assert_fn_eq_expr!(i32::abs, a, b);
-//-> ()
-
-let a: i32 = -1;
-let b: i32 = 2;
-// Panic with error message
-let result = panic::catch_unwind(|| {
-assert_fn_eq_expr!(i32::abs, a, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fn_eq_expr!(left_function, left_param, right_expr)`\n",
-    " left_function label: `i32::abs`,\n",
-    "    left_param label: `a`,\n",
-    "    left_param debug: `-1`,\n",
-    "    right_expr label: `b`,\n",
-    "    right_expr debug: `2`,\n",
-    "                left: `1`,\n",
-    "               right: `2`"
-);
-assert_eq!(actual, expect);
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-assert_fn_eq_expr!(i32::abs, a, b, "message");
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = "message";
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fn_err_eq/index.html b/doc/lib/assert_fn_err/assert_fn_err_eq/index.html similarity index 52% rename from doc/lib/assert_fn_err_eq/index.html rename to doc/lib/assert_fn_err/assert_fn_err_eq/index.html index b015c15f7..52a7c8c9d 100644 --- a/doc/lib/assert_fn_err_eq/index.html +++ b/doc/lib/assert_fn_err/assert_fn_err_eq/index.html @@ -1,4 +1,4 @@ -lib::assert_fn_err_eq - Rust

Module lib::assert_fn_err_eq

source ·
Expand description

Assert a function err() is equal to another.

+lib::assert_fn_err::assert_fn_err_eq - Rust

Module lib::assert_fn_err::assert_fn_err_eq

source ·
Expand description

Assert a function err() is equal to another.

  • If true, return ().

    @@ -55,8 +55,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_fn_err_ne/sidebar-items.js b/doc/lib/assert_fn_err/assert_fn_err_eq/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_err_ne/sidebar-items.js rename to doc/lib/assert_fn_err/assert_fn_err_eq/sidebar-items.js diff --git a/doc/lib/assert_fn_err_eq_expr/index.html b/doc/lib/assert_fn_err/assert_fn_err_eq_expr/index.html similarity index 51% rename from doc/lib/assert_fn_err_eq_expr/index.html rename to doc/lib/assert_fn_err/assert_fn_err_eq_expr/index.html index c0711826e..7211e91d8 100644 --- a/doc/lib/assert_fn_err_eq_expr/index.html +++ b/doc/lib/assert_fn_err/assert_fn_err_eq_expr/index.html @@ -1,4 +1,4 @@ -lib::assert_fn_err_eq_expr - Rust

Module lib::assert_fn_err_eq_expr

source ·
Expand description

Assert a function err() is equal to an expression.

+lib::assert_fn_err::assert_fn_err_eq_expr - Rust

Module lib::assert_fn_err::assert_fn_err_eq_expr

source ·
Expand description

Assert a function err() is equal to an expression.

  • If true, return ().

    @@ -54,8 +54,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_fn_err_ne_expr/sidebar-items.js b/doc/lib/assert_fn_err/assert_fn_err_eq_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_err_ne_expr/sidebar-items.js rename to doc/lib/assert_fn_err/assert_fn_err_eq_expr/sidebar-items.js diff --git a/doc/lib/assert_fn_err_ge/index.html b/doc/lib/assert_fn_err/assert_fn_err_ge/index.html similarity index 51% rename from doc/lib/assert_fn_err_ge/index.html rename to doc/lib/assert_fn_err/assert_fn_err_ge/index.html index 6cc084ac4..b8c96e6e3 100644 --- a/doc/lib/assert_fn_err_ge/index.html +++ b/doc/lib/assert_fn_err/assert_fn_err_ge/index.html @@ -1,4 +1,4 @@ -lib::assert_fn_err_ge - Rust

Module lib::assert_fn_err_ge

source ·
Expand description

Assert a function err() is greater than or equal to another.

+lib::assert_fn_err::assert_fn_err_ge - Rust

Module lib::assert_fn_err::assert_fn_err_ge

source ·
Expand description

Assert a function err() is greater than or equal to another.

  • If true, return ().

    @@ -55,8 +55,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_fn_ge/sidebar-items.js b/doc/lib/assert_fn_err/assert_fn_err_ge/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_ge/sidebar-items.js rename to doc/lib/assert_fn_err/assert_fn_err_ge/sidebar-items.js diff --git a/doc/lib/assert_fn_err_ge_expr/index.html b/doc/lib/assert_fn_err/assert_fn_err_ge_expr/index.html similarity index 51% rename from doc/lib/assert_fn_err_ge_expr/index.html rename to doc/lib/assert_fn_err/assert_fn_err_ge_expr/index.html index 4a399de44..fd77a373a 100644 --- a/doc/lib/assert_fn_err_ge_expr/index.html +++ b/doc/lib/assert_fn_err/assert_fn_err_ge_expr/index.html @@ -1,4 +1,4 @@ -lib::assert_fn_err_ge_expr - Rust

Module lib::assert_fn_err_ge_expr

source ·
Expand description

Assert a function err() is greater than or equal to an expression.

+lib::assert_fn_err::assert_fn_err_ge_expr - Rust

Module lib::assert_fn_err::assert_fn_err_ge_expr

source ·
Expand description

Assert a function err() is greater than or equal to an expression.

  • If true, return ().

    @@ -54,8 +54,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_fn_ge_expr/sidebar-items.js b/doc/lib/assert_fn_err/assert_fn_err_ge_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_ge_expr/sidebar-items.js rename to doc/lib/assert_fn_err/assert_fn_err_ge_expr/sidebar-items.js diff --git a/doc/lib/assert_fn_err_gt/index.html b/doc/lib/assert_fn_err/assert_fn_err_gt/index.html similarity index 52% rename from doc/lib/assert_fn_err_gt/index.html rename to doc/lib/assert_fn_err/assert_fn_err_gt/index.html index e6f2bc291..7fa3179c1 100644 --- a/doc/lib/assert_fn_err_gt/index.html +++ b/doc/lib/assert_fn_err/assert_fn_err_gt/index.html @@ -1,4 +1,4 @@ -lib::assert_fn_err_gt - Rust

Module lib::assert_fn_err_gt

source ·
Expand description

Assert a function err() is greater than another.

+lib::assert_fn_err::assert_fn_err_gt - Rust

Module lib::assert_fn_err::assert_fn_err_gt

source ·
Expand description

Assert a function err() is greater than another.

  • If true, return ().

    @@ -55,8 +55,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_fn_gt/sidebar-items.js b/doc/lib/assert_fn_err/assert_fn_err_gt/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_gt/sidebar-items.js rename to doc/lib/assert_fn_err/assert_fn_err_gt/sidebar-items.js diff --git a/doc/lib/assert_fn_err_gt_expr/index.html b/doc/lib/assert_fn_err/assert_fn_err_gt_expr/index.html similarity index 51% rename from doc/lib/assert_fn_err_gt_expr/index.html rename to doc/lib/assert_fn_err/assert_fn_err_gt_expr/index.html index da215518d..e757530d7 100644 --- a/doc/lib/assert_fn_err_gt_expr/index.html +++ b/doc/lib/assert_fn_err/assert_fn_err_gt_expr/index.html @@ -1,4 +1,4 @@ -lib::assert_fn_err_gt_expr - Rust

Module lib::assert_fn_err_gt_expr

source ·
Expand description

Assert a function err() is greater than an expression.

+lib::assert_fn_err::assert_fn_err_gt_expr - Rust

Module lib::assert_fn_err::assert_fn_err_gt_expr

source ·
Expand description

Assert a function err() is greater than an expression.

  • If true, return ().

    @@ -54,8 +54,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_fn_gt_expr/sidebar-items.js b/doc/lib/assert_fn_err/assert_fn_err_gt_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_gt_expr/sidebar-items.js rename to doc/lib/assert_fn_err/assert_fn_err_gt_expr/sidebar-items.js diff --git a/doc/lib/assert_fn_err_le/index.html b/doc/lib/assert_fn_err/assert_fn_err_le/index.html similarity index 51% rename from doc/lib/assert_fn_err_le/index.html rename to doc/lib/assert_fn_err/assert_fn_err_le/index.html index 4cadf671d..48ca5475f 100644 --- a/doc/lib/assert_fn_err_le/index.html +++ b/doc/lib/assert_fn_err/assert_fn_err_le/index.html @@ -1,4 +1,4 @@ -lib::assert_fn_err_le - Rust

Module lib::assert_fn_err_le

source ·
Expand description

Assert a function err() is less than or equal to another.

+lib::assert_fn_err::assert_fn_err_le - Rust

Module lib::assert_fn_err::assert_fn_err_le

source ·
Expand description

Assert a function err() is less than or equal to another.

  • If true, return ().

    @@ -55,8 +55,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_fn_le/sidebar-items.js b/doc/lib/assert_fn_err/assert_fn_err_le/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_le/sidebar-items.js rename to doc/lib/assert_fn_err/assert_fn_err_le/sidebar-items.js diff --git a/doc/lib/assert_fn_err_le_expr/index.html b/doc/lib/assert_fn_err/assert_fn_err_le_expr/index.html similarity index 51% rename from doc/lib/assert_fn_err_le_expr/index.html rename to doc/lib/assert_fn_err/assert_fn_err_le_expr/index.html index 5ab537978..0de386b90 100644 --- a/doc/lib/assert_fn_err_le_expr/index.html +++ b/doc/lib/assert_fn_err/assert_fn_err_le_expr/index.html @@ -1,4 +1,4 @@ -lib::assert_fn_err_le_expr - Rust

Module lib::assert_fn_err_le_expr

source ·
Expand description

Assert a function err() is less than or equal to an expression.

+lib::assert_fn_err::assert_fn_err_le_expr - Rust

Module lib::assert_fn_err::assert_fn_err_le_expr

source ·
Expand description

Assert a function err() is less than or equal to an expression.

  • If true, return ().

    @@ -54,8 +54,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_fn_le_expr/sidebar-items.js b/doc/lib/assert_fn_err/assert_fn_err_le_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_le_expr/sidebar-items.js rename to doc/lib/assert_fn_err/assert_fn_err_le_expr/sidebar-items.js diff --git a/doc/lib/assert_fn_err_lt/index.html b/doc/lib/assert_fn_err/assert_fn_err_lt/index.html similarity index 52% rename from doc/lib/assert_fn_err_lt/index.html rename to doc/lib/assert_fn_err/assert_fn_err_lt/index.html index 35fcc5c9a..d0c0fc2a3 100644 --- a/doc/lib/assert_fn_err_lt/index.html +++ b/doc/lib/assert_fn_err/assert_fn_err_lt/index.html @@ -1,4 +1,4 @@ -lib::assert_fn_err_lt - Rust

Module lib::assert_fn_err_lt

source ·
Expand description

Assert a function err() is less than another.

+lib::assert_fn_err::assert_fn_err_lt - Rust

Module lib::assert_fn_err::assert_fn_err_lt

source ·
Expand description

Assert a function err() is less than another.

  • If true, return ().

    @@ -55,8 +55,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_fn_lt/sidebar-items.js b/doc/lib/assert_fn_err/assert_fn_err_lt/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_lt/sidebar-items.js rename to doc/lib/assert_fn_err/assert_fn_err_lt/sidebar-items.js diff --git a/doc/lib/assert_fn_err_lt_expr/index.html b/doc/lib/assert_fn_err/assert_fn_err_lt_expr/index.html similarity index 51% rename from doc/lib/assert_fn_err_lt_expr/index.html rename to doc/lib/assert_fn_err/assert_fn_err_lt_expr/index.html index 8c4937c1f..af986268e 100644 --- a/doc/lib/assert_fn_err_lt_expr/index.html +++ b/doc/lib/assert_fn_err/assert_fn_err_lt_expr/index.html @@ -1,4 +1,4 @@ -lib::assert_fn_err_lt_expr - Rust

Module lib::assert_fn_err_lt_expr

source ·
Expand description

Assert a function err() is less than an expression.

+lib::assert_fn_err::assert_fn_err_lt_expr - Rust

Module lib::assert_fn_err::assert_fn_err_lt_expr

source ·
Expand description

Assert a function err() is less than an expression.

  • If true, return ().

    @@ -54,8 +54,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_fn_lt_expr/sidebar-items.js b/doc/lib/assert_fn_err/assert_fn_err_lt_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_lt_expr/sidebar-items.js rename to doc/lib/assert_fn_err/assert_fn_err_lt_expr/sidebar-items.js diff --git a/doc/lib/assert_fn_err_ne/index.html b/doc/lib/assert_fn_err/assert_fn_err_ne/index.html similarity index 52% rename from doc/lib/assert_fn_err_ne/index.html rename to doc/lib/assert_fn_err/assert_fn_err_ne/index.html index 30dc93984..06ac4992e 100644 --- a/doc/lib/assert_fn_err_ne/index.html +++ b/doc/lib/assert_fn_err/assert_fn_err_ne/index.html @@ -1,4 +1,4 @@ -lib::assert_fn_err_ne - Rust

Module lib::assert_fn_err_ne

source ·
Expand description

Assert a function err() is not equal to another.

+lib::assert_fn_err::assert_fn_err_ne - Rust

Module lib::assert_fn_err::assert_fn_err_ne

source ·
Expand description

Assert a function err() is not equal to another.

  • If true, return ().

    @@ -55,8 +55,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_fn_ne/sidebar-items.js b/doc/lib/assert_fn_err/assert_fn_err_ne/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_ne/sidebar-items.js rename to doc/lib/assert_fn_err/assert_fn_err_ne/sidebar-items.js diff --git a/doc/lib/assert_fn_err_ne_expr/index.html b/doc/lib/assert_fn_err/assert_fn_err_ne_expr/index.html similarity index 51% rename from doc/lib/assert_fn_err_ne_expr/index.html rename to doc/lib/assert_fn_err/assert_fn_err_ne_expr/index.html index e16ecb5f8..2e6ed68c0 100644 --- a/doc/lib/assert_fn_err_ne_expr/index.html +++ b/doc/lib/assert_fn_err/assert_fn_err_ne_expr/index.html @@ -1,4 +1,4 @@ -lib::assert_fn_err_ne_expr - Rust

Module lib::assert_fn_err_ne_expr

source ·
Expand description

Assert a function err() is not equal to an expression.

+lib::assert_fn_err::assert_fn_err_ne_expr - Rust

Module lib::assert_fn_err::assert_fn_err_ne_expr

source ·
Expand description

Assert a function err() is not equal to an expression.

  • If true, return ().

    @@ -54,8 +54,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_fn_ne_expr/sidebar-items.js b/doc/lib/assert_fn_err/assert_fn_err_ne_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_ne_expr/sidebar-items.js rename to doc/lib/assert_fn_err/assert_fn_err_ne_expr/sidebar-items.js diff --git a/doc/lib/assert_fn_err/index.html b/doc/lib/assert_fn_err/index.html new file mode 100644 index 000000000..d990fe07d --- /dev/null +++ b/doc/lib/assert_fn_err/index.html @@ -0,0 +1,66 @@ +lib::assert_fn_err - Rust

Module lib::assert_fn_err

source ·
Expand description

Assert macros for comparing functions that return errors.

+

These macros help compare functions that return results that are errors, +such as std::Result::Err or similar.

+

The macros use these capabilities:

+
    +
  • +

    implements .is_err() -> boolean

    +
  • +
  • +

    implements .unwrap_err() -> comparable

    +
  • +
+

Compare a function Err() with another function Err():

+ +

Compare a function Err() with an expression:

+ +

§Example

+
fn f(i: i8) -> Result<String, String> {
+    match i {
+        0..=9 => Ok(format!("{}", i)),
+        _ => Err(format!("{:?} is out of range", i)),
+    }
+}
+
+let a: i8 = 10;
+let b: i8 = 10;
+assert_fn_err_eq!(f, a, f, b);
+

Modules§

\ No newline at end of file diff --git a/doc/lib/assert_fn_err/sidebar-items.js b/doc/lib/assert_fn_err/sidebar-items.js new file mode 100644 index 000000000..e94ded0a3 --- /dev/null +++ b/doc/lib/assert_fn_err/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"mod":["assert_fn_err_eq","assert_fn_err_eq_expr","assert_fn_err_ge","assert_fn_err_ge_expr","assert_fn_err_gt","assert_fn_err_gt_expr","assert_fn_err_le","assert_fn_err_le_expr","assert_fn_err_lt","assert_fn_err_lt_expr","assert_fn_err_ne","assert_fn_err_ne_expr"]}; \ No newline at end of file diff --git a/doc/lib/assert_fn_ge/index.html b/doc/lib/assert_fn_ge/index.html deleted file mode 100644 index 75a8a7781..000000000 --- a/doc/lib/assert_fn_ge/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_fn_ge - Rust

Module lib::assert_fn_ge

source ·
Expand description

Assert a function output is greater than or equal to another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
// Return Ok
-let a: i32 = -2;
-let b: i32 = 1;
-assert_fn_ge!(i32::abs, a, i32::abs, b);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let a: i32 = 1;
-let b: i32 = -2;
-assert_fn_ge!(i32::abs, a, i32::abs, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fn_ge!(left_function, left_param, right_function, right_param)`\n",
-    "  left_function label: `i32::abs`,\n",
-    "     left_param label: `a`,\n",
-    "     left_param debug: `1`,\n",
-    " right_function label: `i32::abs`,\n",
-    "    right_param label: `b`,\n",
-    "    right_param debug: `-2`,\n",
-    "                 left: `1`,\n",
-    "                right: `2`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fn_ge_expr/index.html b/doc/lib/assert_fn_ge_expr/index.html deleted file mode 100644 index 732613108..000000000 --- a/doc/lib/assert_fn_ge_expr/index.html +++ /dev/null @@ -1,44 +0,0 @@ -lib::assert_fn_ge_expr - Rust

Module lib::assert_fn_ge_expr

source ·
Expand description

Assert a function output is greater than or equal to an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
// Return Ok
-let a: i32 = -2;
-let b: i32 = 1;
-assert_fn_ge_expr!(i32::abs, a, b);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let a: i32 = -1;
-let b: i32 = 2;
-assert_fn_ge_expr!(i32::abs, a, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fn_ge_expr!(left_function, left_param, right_expr)`\n",
-    " left_function label: `i32::abs`,\n",
-    "    left_param label: `a`,\n",
-    "    left_param debug: `-1`,\n",
-    "    right_expr label: `b`,\n",
-    "    right_expr debug: `2`,\n",
-    "                left: `1`,\n",
-    "               right: `2`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fn_gt/index.html b/doc/lib/assert_fn_gt/index.html deleted file mode 100644 index 972a3625a..000000000 --- a/doc/lib/assert_fn_gt/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_fn_gt - Rust

Module lib::assert_fn_gt

source ·
Expand description

Assert a function output is greater than another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
// Return Ok
-let a: i8 = -2;
-let b: i8 = 1;
-assert_fn_gt!(i8::abs, a, i8::abs, b);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let a: i8 = 1;
-let b: i8 = -2;
-assert_fn_gt!(i8::abs, a, i8::abs, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fn_gt!(left_function, left_param, right_function, right_param)`\n",
-    "  left_function label: `i8::abs`,\n",
-    "     left_param label: `a`,\n",
-    "     left_param debug: `1`,\n",
-    " right_function label: `i8::abs`,\n",
-    "    right_param label: `b`,\n",
-    "    right_param debug: `-2`,\n",
-    "                 left: `1`,\n",
-    "                right: `2`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fn_gt_expr/index.html b/doc/lib/assert_fn_gt_expr/index.html deleted file mode 100644 index 19180aec3..000000000 --- a/doc/lib/assert_fn_gt_expr/index.html +++ /dev/null @@ -1,44 +0,0 @@ -lib::assert_fn_gt_expr - Rust

Module lib::assert_fn_gt_expr

source ·
Expand description

Assert a function output is greater than an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
// Return Ok
-let a: i32 = -2;
-let b: i32 = 1;
-assert_fn_gt_expr!(i32::abs, a, b);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let a: i32 = -1;
-let b: i32 = 2;
-assert_fn_gt_expr!(i32::abs, a, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fn_gt_expr!(left_function, left_param, right_expr)`\n",
-    " left_function label: `i32::abs`,\n",
-    "    left_param label: `a`,\n",
-    "    left_param debug: `-1`,\n",
-    "    right_expr label: `b`,\n",
-    "    right_expr debug: `2`,\n",
-    "                left: `1`,\n",
-    "               right: `2`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fn_le/index.html b/doc/lib/assert_fn_le/index.html deleted file mode 100644 index d5062cd2d..000000000 --- a/doc/lib/assert_fn_le/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_fn_le - Rust

Module lib::assert_fn_le

source ·
Expand description

Assert a function output is less than or equal to another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
// Return Ok
-let a: i32 = 1;
-let b: i32 = -2;
-assert_fn_le!(i32::abs, a, i32::abs, b);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let a: i32 = -2;
-let b: i32 = 1;
-assert_fn_le!(i32::abs, a, i32::abs, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fn_le!(left_function, left_param, right_function, right_param)`\n",
-    "  left_function label: `i32::abs`,\n",
-    "     left_param label: `a`,\n",
-    "     left_param debug: `-2`,\n",
-    " right_function label: `i32::abs`,\n",
-    "    right_param label: `b`,\n",
-    "    right_param debug: `1`,\n",
-    "                 left: `2`,\n",
-    "                right: `1`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fn_le_expr/index.html b/doc/lib/assert_fn_le_expr/index.html deleted file mode 100644 index e5eaa66e5..000000000 --- a/doc/lib/assert_fn_le_expr/index.html +++ /dev/null @@ -1,44 +0,0 @@ -lib::assert_fn_le_expr - Rust

Module lib::assert_fn_le_expr

source ·
Expand description

Assert a function output is less than or equal to an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
// Return Ok
-let a: i32 = -1;
-let b: i32 = 2;
-assert_fn_le_expr!(i32::abs, a, b);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let a: i32 = -2;
-let b: i32 = 1;
-assert_fn_le_expr!(i32::abs, a, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fn_le_expr!(left_function, left_param, right_expr)`\n",
-    " left_function label: `i32::abs`,\n",
-    "    left_param label: `a`,\n",
-    "    left_param debug: `-2`,\n",
-    "    right_expr label: `b`,\n",
-    "    right_expr debug: `1`,\n",
-    "                left: `2`,\n",
-    "               right: `1`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fn_lt/index.html b/doc/lib/assert_fn_lt/index.html deleted file mode 100644 index 51a21b5ff..000000000 --- a/doc/lib/assert_fn_lt/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_fn_lt - Rust

Module lib::assert_fn_lt

source ·
Expand description

Assert a function output is less than another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
// Return Ok
-let a: i32 = 1;
-let b: i32 = -2;
-assert_fn_lt!(i32::abs, a, i32::abs, b);
-//-> ()
-
-let a: i32 = -2;
-let b: i32 = 1;
-// Panic with error message
-let result = panic::catch_unwind(|| {
-assert_fn_lt!(i32::abs, a, i32::abs, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fn_lt!(left_function, left_param, right_function, right_param)`\n",
-    "  left_function label: `i32::abs`,\n",
-    "     left_param label: `a`,\n",
-    "     left_param debug: `-2`,\n",
-    " right_function label: `i32::abs`,\n",
-    "    right_param label: `b`,\n",
-    "    right_param debug: `1`,\n",
-    "                 left: `2`,\n",
-    "                right: `1`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fn_lt_expr/index.html b/doc/lib/assert_fn_lt_expr/index.html deleted file mode 100644 index 2e6ab597e..000000000 --- a/doc/lib/assert_fn_lt_expr/index.html +++ /dev/null @@ -1,44 +0,0 @@ -lib::assert_fn_lt_expr - Rust

Module lib::assert_fn_lt_expr

source ·
Expand description

Assert a function output is less than an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
// Return Ok
-let a: i32 = -1;
-let b: i32 = 2;
-assert_fn_lt_expr!(i32::abs, a, b);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let a: i32 = -2;
-let b: i32 = 1;
-assert_fn_lt_expr!(i32::abs, a, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fn_lt_expr!(left_function, left_param, right_expr)`\n",
-    " left_function label: `i32::abs`,\n",
-    "    left_param label: `a`,\n",
-    "    left_param debug: `-2`,\n",
-    "    right_expr label: `b`,\n",
-    "    right_expr debug: `1`,\n",
-    "                left: `2`,\n",
-    "               right: `1`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fn_ne/index.html b/doc/lib/assert_fn_ne/index.html deleted file mode 100644 index e02607960..000000000 --- a/doc/lib/assert_fn_ne/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_fn_ne - Rust

Module lib::assert_fn_ne

source ·
Expand description

Assert a function output is not equal to another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
// Return Ok
-let a: i32 = -1;
-let b: i32 = 2;
-assert_fn_ne!(i32::abs, a, i32::abs, b);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let a: i32 = -1;
-let b: i32 = 1;
-assert_fn_ne!(i32::abs, a, i32::abs, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fn_ne!(left_function, left_param, right_function, right_param)`\n",
-    "  left_function label: `i32::abs`,\n",
-    "     left_param label: `a`,\n",
-    "     left_param debug: `-1`,\n",
-    " right_function label: `i32::abs`,\n",
-    "    right_param label: `b`,\n",
-    "    right_param debug: `1`,\n",
-    "                 left: `1`,\n",
-    "                right: `1`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fn_ne_expr/index.html b/doc/lib/assert_fn_ne_expr/index.html deleted file mode 100644 index ad1038697..000000000 --- a/doc/lib/assert_fn_ne_expr/index.html +++ /dev/null @@ -1,44 +0,0 @@ -lib::assert_fn_ne_expr - Rust

Module lib::assert_fn_ne_expr

source ·
Expand description

Assert a function output is not equal to an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
// Return Ok
-let a: i32 = 1;
-let b: i32 = -2;
-assert_fn_ne_expr!(i32::abs, a, b);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let a: i32 = -1;
-let b: i32 = 1;
-assert_fn_ne_expr!(i32::abs, a, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fn_ne_expr!(left_function, left_param, right_expr)`\n",
-    " left_function label: `i32::abs`,\n",
-    "    left_param label: `a`,\n",
-    "    left_param debug: `-1`,\n",
-    "    right_expr label: `b`,\n",
-    "    right_expr debug: `1`,\n",
-    "                left: `1`,\n",
-    "               right: `1`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fn_ok/assert_fn_ok_eq/index.html b/doc/lib/assert_fn_ok/assert_fn_ok_eq/index.html new file mode 100644 index 000000000..eb2fd0153 --- /dev/null +++ b/doc/lib/assert_fn_ok/assert_fn_ok_eq/index.html @@ -0,0 +1,52 @@ +lib::assert_fn_ok::assert_fn_ok_eq - Rust

Module lib::assert_fn_ok::assert_fn_ok_eq

source ·
Expand description

Assert a function ok() is equal to another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
fn f(i: i8) -> Result<String, String> {
+    match i {
+        0..=9 => Ok(format!("{}", i)),
+        _ => Err(format!("{:?} is out of range", i)),
+    }
+}
+
+// Return Ok
+let a: i8 = 1;
+let b: i8 = 1;
+assert_fn_ok_eq!(f, a, f, b);
+//-> ()
+
+let a: i8 = 1;
+let b: i8 = 2;
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_fn_ok_eq!(f, a, f, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fn_ok_eq!(left_function, left_param, right_function, right_param)`\n",
+    "  left_function label: `f`,\n",
+    "     left_param label: `a`,\n",
+    "     left_param debug: `1`,\n",
+    " right_function label: `f`,\n",
+    "    right_param label: `b`,\n",
+    "    right_param debug: `2`,\n",
+    "                 left: `\"1\"`,\n",
+    "                right: `\"2\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fn_ok_eq/sidebar-items.js b/doc/lib/assert_fn_ok/assert_fn_ok_eq/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_ok_eq/sidebar-items.js rename to doc/lib/assert_fn_ok/assert_fn_ok_eq/sidebar-items.js diff --git a/doc/lib/assert_fn_ok/assert_fn_ok_eq_expr/index.html b/doc/lib/assert_fn_ok/assert_fn_ok_eq_expr/index.html new file mode 100644 index 000000000..b90fa3531 --- /dev/null +++ b/doc/lib/assert_fn_ok/assert_fn_ok_eq_expr/index.html @@ -0,0 +1,51 @@ +lib::assert_fn_ok::assert_fn_ok_eq_expr - Rust

Module lib::assert_fn_ok::assert_fn_ok_eq_expr

source ·
Expand description

Assert a function ok() is equal to an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
fn f(i: i8) -> Result<String, String> {
+    match i {
+        0..=9 => Ok(format!("{}", i)),
+        _ => Err(format!("{:?} is out of range", i)),
+    }
+}
+
+// Return Ok
+let a: i8 = 1;
+let b = String::from("1");
+assert_fn_ok_eq_expr!(f, a, b);
+//-> ()
+
+let a: i8 = 1;
+let b = String::from("2");
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_fn_ok_eq_expr!(f, a, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fn_ok_eq_expr!(left_function, left_param, right_expr)`\n",
+    " left_function label: `f`,\n",
+    "    left_param label: `a`,\n",
+    "    left_param debug: `1`,\n",
+    "    right_expr label: `b`,\n",
+    "    right_expr debug: `\"2\"`,\n",
+    "                left: `\"1\"`,\n",
+    "               right: `\"2\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fn_ok_eq_expr/sidebar-items.js b/doc/lib/assert_fn_ok/assert_fn_ok_eq_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_ok_eq_expr/sidebar-items.js rename to doc/lib/assert_fn_ok/assert_fn_ok_eq_expr/sidebar-items.js diff --git a/doc/lib/assert_fn_ok/assert_fn_ok_ge/index.html b/doc/lib/assert_fn_ok/assert_fn_ok_ge/index.html new file mode 100644 index 000000000..3c46a5684 --- /dev/null +++ b/doc/lib/assert_fn_ok/assert_fn_ok_ge/index.html @@ -0,0 +1,52 @@ +lib::assert_fn_ok::assert_fn_ok_ge - Rust

Module lib::assert_fn_ok::assert_fn_ok_ge

source ·
Expand description

Assert a function ok() is greater than or equal to another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
fn f(i: i8) -> Result<String, String> {
+    match i {
+        0..=9 => Ok(format!("{}", i)),
+        _ => Err(format!("{:?} is out of range", i)),
+    }
+}
+
+// Return Ok
+let a: i8 = 2;
+let b: i8 = 1;
+assert_fn_ok_ge!(f, a, f, b);
+//-> ()
+
+let a: i8 = 1;
+let b: i8 = 2;
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_fn_ok_ge!(f, a, f, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fn_ok_ge!(left_function, left_param, right_function, right_param)`\n",
+    "  left_function label: `f`,\n",
+    "     left_param label: `a`,\n",
+    "     left_param debug: `1`,\n",
+    " right_function label: `f`,\n",
+    "    right_param label: `b`,\n",
+    "    right_param debug: `2`,\n",
+    "                 left: `\"1\"`,\n",
+    "                right: `\"2\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fn_ok_ge/sidebar-items.js b/doc/lib/assert_fn_ok/assert_fn_ok_ge/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_ok_ge/sidebar-items.js rename to doc/lib/assert_fn_ok/assert_fn_ok_ge/sidebar-items.js diff --git a/doc/lib/assert_fn_ok/assert_fn_ok_ge_expr/index.html b/doc/lib/assert_fn_ok/assert_fn_ok_ge_expr/index.html new file mode 100644 index 000000000..a665bf77d --- /dev/null +++ b/doc/lib/assert_fn_ok/assert_fn_ok_ge_expr/index.html @@ -0,0 +1,51 @@ +lib::assert_fn_ok::assert_fn_ok_ge_expr - Rust

Module lib::assert_fn_ok::assert_fn_ok_ge_expr

source ·
Expand description

Assert a function ok() is greater than or equal to an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
fn f(i: i8) -> Result<String, String> {
+    match i {
+        0..=9 => Ok(format!("{}", i)),
+        _ => Err(format!("{:?} is out of range", i)),
+    }
+}
+
+// Return Ok
+let a: i8 = 2;
+let b = String::from("1");
+assert_fn_ok_ge_expr!(f, a, b);
+//-> ()
+
+let a: i8 = 1;
+let b = String::from("2");
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_fn_ok_ge_expr!(f, a, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fn_ok_ge_expr!(left_function, left_param, right_expr)`\n",
+    " left_function label: `f`,\n",
+    "    left_param label: `a`,\n",
+    "    left_param debug: `1`,\n",
+    "    right_expr label: `b`,\n",
+    "    right_expr debug: `\"2\"`,\n",
+    "                left: `\"1\"`,\n",
+    "               right: `\"2\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fn_ok_ge_expr/sidebar-items.js b/doc/lib/assert_fn_ok/assert_fn_ok_ge_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_ok_ge_expr/sidebar-items.js rename to doc/lib/assert_fn_ok/assert_fn_ok_ge_expr/sidebar-items.js diff --git a/doc/lib/assert_fn_ok/assert_fn_ok_gt/index.html b/doc/lib/assert_fn_ok/assert_fn_ok_gt/index.html new file mode 100644 index 000000000..168301d77 --- /dev/null +++ b/doc/lib/assert_fn_ok/assert_fn_ok_gt/index.html @@ -0,0 +1,52 @@ +lib::assert_fn_ok::assert_fn_ok_gt - Rust

Module lib::assert_fn_ok::assert_fn_ok_gt

source ·
Expand description

Assert a function ok() is greater than another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
fn f(i: i8) -> Result<String, String> {
+    match i {
+        0..=9 => Ok(format!("{}", i)),
+        _ => Err(format!("{:?} is out of range", i)),
+    }
+}
+
+// Return Ok
+let a: i8 = 2;
+let b: i8 = 1;
+assert_fn_ok_gt!(f, a, f, b);
+//-> ()
+
+let a: i8 = 1;
+let b: i8 = 2;
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_fn_ok_gt!(f, a, f, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fn_ok_gt!(left_function, left_param, right_function, right_param)`\n",
+    "  left_function label: `f`,\n",
+    "     left_param label: `a`,\n",
+    "     left_param debug: `1`,\n",
+    " right_function label: `f`,\n",
+    "    right_param label: `b`,\n",
+    "    right_param debug: `2`,\n",
+    "                 left: `\"1\"`,\n",
+    "                right: `\"2\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fn_ok_gt/sidebar-items.js b/doc/lib/assert_fn_ok/assert_fn_ok_gt/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_ok_gt/sidebar-items.js rename to doc/lib/assert_fn_ok/assert_fn_ok_gt/sidebar-items.js diff --git a/doc/lib/assert_fn_ok/assert_fn_ok_gt_expr/index.html b/doc/lib/assert_fn_ok/assert_fn_ok_gt_expr/index.html new file mode 100644 index 000000000..83a3f9787 --- /dev/null +++ b/doc/lib/assert_fn_ok/assert_fn_ok_gt_expr/index.html @@ -0,0 +1,51 @@ +lib::assert_fn_ok::assert_fn_ok_gt_expr - Rust

Module lib::assert_fn_ok::assert_fn_ok_gt_expr

source ·
Expand description

Assert a function ok() is greater than an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
fn f(i: i8) -> Result<String, String> {
+    match i {
+        0..=9 => Ok(format!("{}", i)),
+        _ => Err(format!("{:?} is out of range", i)),
+    }
+}
+
+// Return Ok
+let a: i8 = 2;
+let b = String::from("1");
+assert_fn_ok_gt_expr!(f, a, b);
+//-> ()
+
+let a: i8 = 1;
+let b = String::from("2");
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_fn_ok_gt_expr!(f, a, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fn_ok_gt_expr!(left_function, left_param, right_expr)`\n",
+    " left_function label: `f`,\n",
+    "    left_param label: `a`,\n",
+    "    left_param debug: `1`,\n",
+    "    right_expr label: `b`,\n",
+    "    right_expr debug: `\"2\"`,\n",
+    "                left: `\"1\"`,\n",
+    "               right: `\"2\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fn_ok_gt_expr/sidebar-items.js b/doc/lib/assert_fn_ok/assert_fn_ok_gt_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_ok_gt_expr/sidebar-items.js rename to doc/lib/assert_fn_ok/assert_fn_ok_gt_expr/sidebar-items.js diff --git a/doc/lib/assert_fn_ok/assert_fn_ok_le/index.html b/doc/lib/assert_fn_ok/assert_fn_ok_le/index.html new file mode 100644 index 000000000..49d974794 --- /dev/null +++ b/doc/lib/assert_fn_ok/assert_fn_ok_le/index.html @@ -0,0 +1,52 @@ +lib::assert_fn_ok::assert_fn_ok_le - Rust

Module lib::assert_fn_ok::assert_fn_ok_le

source ·
Expand description

Assert a function ok() is less than or equal to another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
fn f(i: i8) -> Result<String, String> {
+    match i {
+        0..=9 => Ok(format!("{}", i)),
+        _ => Err(format!("{:?} is out of range", i)),
+    }
+}
+
+// Return Ok
+let a: i8 = 1;
+let b: i8 = 2;
+assert_fn_ok_le!(f, a, f, b);
+//-> ()
+
+let a: i8 = 2;
+let b: i8 = 1;
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_fn_ok_le!(f, a, f, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fn_ok_le!(left_function, left_param, right_function, right_param)`\n",
+    "  left_function label: `f`,\n",
+    "     left_param label: `a`,\n",
+    "     left_param debug: `2`,\n",
+    " right_function label: `f`,\n",
+    "    right_param label: `b`,\n",
+    "    right_param debug: `1`,\n",
+    "                 left: `\"2\"`,\n",
+    "                right: `\"1\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fn_ok_le/sidebar-items.js b/doc/lib/assert_fn_ok/assert_fn_ok_le/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_ok_le/sidebar-items.js rename to doc/lib/assert_fn_ok/assert_fn_ok_le/sidebar-items.js diff --git a/doc/lib/assert_fn_ok/assert_fn_ok_le_expr/index.html b/doc/lib/assert_fn_ok/assert_fn_ok_le_expr/index.html new file mode 100644 index 000000000..3d5fdc981 --- /dev/null +++ b/doc/lib/assert_fn_ok/assert_fn_ok_le_expr/index.html @@ -0,0 +1,52 @@ +lib::assert_fn_ok::assert_fn_ok_le_expr - Rust

Module lib::assert_fn_ok::assert_fn_ok_le_expr

source ·
Expand description

Assert a function ok() is less than or equal to an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
fn f(i: i8) -> Result<String, String> {
+    match i {
+        0..=9 => Ok(format!("{}", i)),
+        _ => Err(format!("{:?} is out of range", i)),
+    }
+}
+
+
+// Return Ok
+let a: i8 = 1;
+let b = String::from("2");
+assert_fn_ok_le_expr!(f, a, b);
+//-> ()
+
+let a: i8 = 2;
+let b = String::from("1");
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_fn_ok_le_expr!(f, a, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fn_ok_le_expr!(left_function, left_param, right_expr)`\n",
+    " left_function label: `f`,\n",
+    "    left_param label: `a`,\n",
+    "    left_param debug: `2`,\n",
+    "    right_expr label: `b`,\n",
+    "    right_expr debug: `\"1\"`,\n",
+    "                left: `\"2\"`,\n",
+    "               right: `\"1\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fn_ok_le_expr/sidebar-items.js b/doc/lib/assert_fn_ok/assert_fn_ok_le_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_ok_le_expr/sidebar-items.js rename to doc/lib/assert_fn_ok/assert_fn_ok_le_expr/sidebar-items.js diff --git a/doc/lib/assert_fn_ok/assert_fn_ok_lt/index.html b/doc/lib/assert_fn_ok/assert_fn_ok_lt/index.html new file mode 100644 index 000000000..99ed893c9 --- /dev/null +++ b/doc/lib/assert_fn_ok/assert_fn_ok_lt/index.html @@ -0,0 +1,52 @@ +lib::assert_fn_ok::assert_fn_ok_lt - Rust

Module lib::assert_fn_ok::assert_fn_ok_lt

source ·
Expand description

Assert a function ok() is less than another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
fn f(i: i8) -> Result<String, String> {
+    match i {
+        0..=9 => Ok(format!("{}", i)),
+        _ => Err(format!("{:?} is out of range", i)),
+    }
+}
+
+// Return Ok
+let a: i8 = 1;
+let b: i8 = 2;
+assert_fn_ok_lt!(f, a, f, b);
+//-> ()
+
+let a: i8 = 2;
+let b: i8 = 1;
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_fn_ok_lt!(f, a, f, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fn_ok_lt!(left_function, left_param, right_function, right_param)`\n",
+    "  left_function label: `f`,\n",
+    "     left_param label: `a`,\n",
+    "     left_param debug: `2`,\n",
+    " right_function label: `f`,\n",
+    "    right_param label: `b`,\n",
+    "    right_param debug: `1`,\n",
+    "                 left: `\"2\"`,\n",
+    "                right: `\"1\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fn_ok_lt/sidebar-items.js b/doc/lib/assert_fn_ok/assert_fn_ok_lt/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_ok_lt/sidebar-items.js rename to doc/lib/assert_fn_ok/assert_fn_ok_lt/sidebar-items.js diff --git a/doc/lib/assert_fn_ok/assert_fn_ok_lt_expr/index.html b/doc/lib/assert_fn_ok/assert_fn_ok_lt_expr/index.html new file mode 100644 index 000000000..124ed00fd --- /dev/null +++ b/doc/lib/assert_fn_ok/assert_fn_ok_lt_expr/index.html @@ -0,0 +1,51 @@ +lib::assert_fn_ok::assert_fn_ok_lt_expr - Rust

Module lib::assert_fn_ok::assert_fn_ok_lt_expr

source ·
Expand description

Assert a function ok() is less than an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
fn f(i: i8) -> Result<String, String> {
+    match i {
+        0..=9 => Ok(format!("{}", i)),
+        _ => Err(format!("{:?} is out of range", i)),
+    }
+}
+
+// Return Ok
+let a: i8 = 1;
+let b = String::from("2");
+assert_fn_ok_lt_expr!(f, a, b);
+//-> ()
+
+let a: i8 = 2;
+let b = String::from("1");
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_fn_ok_lt_expr!(f, a, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fn_ok_lt_expr!(left_function, left_param, right_expr)`\n",
+    " left_function label: `f`,\n",
+    "    left_param label: `a`,\n",
+    "    left_param debug: `2`,\n",
+    "    right_expr label: `b`,\n",
+    "    right_expr debug: `\"1\"`,\n",
+    "                left: `\"2\"`,\n",
+    "               right: `\"1\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fn_ok_lt_expr/sidebar-items.js b/doc/lib/assert_fn_ok/assert_fn_ok_lt_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_ok_lt_expr/sidebar-items.js rename to doc/lib/assert_fn_ok/assert_fn_ok_lt_expr/sidebar-items.js diff --git a/doc/lib/assert_fn_ok/assert_fn_ok_ne/index.html b/doc/lib/assert_fn_ok/assert_fn_ok_ne/index.html new file mode 100644 index 000000000..cacb1df46 --- /dev/null +++ b/doc/lib/assert_fn_ok/assert_fn_ok_ne/index.html @@ -0,0 +1,52 @@ +lib::assert_fn_ok::assert_fn_ok_ne - Rust

Module lib::assert_fn_ok::assert_fn_ok_ne

source ·
Expand description

Assert a function ok() is not equal to another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
fn f(i: i8) -> Result<String, String> {
+    match i {
+        0..=9 => Ok(format!("{}", i)),
+        _ => Err(format!("{:?} is out of range", i)),
+    }
+}
+
+// Return Ok
+let a: i8 = 1;
+let b: i8 = 2;
+assert_fn_ok_ne!(f, a, f, b);
+//-> ()
+
+let a: i8 = 1;
+let b: i8 = 1;
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_fn_ok_ne!(f, a, f, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fn_ok_ne!(left_function, left_param, right_function, right_param)`\n",
+    "  left_function label: `f`,\n",
+    "     left_param label: `a`,\n",
+    "     left_param debug: `1`,\n",
+    " right_function label: `f`,\n",
+    "    right_param label: `b`,\n",
+    "    right_param debug: `1`,\n",
+    "                 left: `\"1\"`,\n",
+    "                right: `\"1\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fn_ok_ne/sidebar-items.js b/doc/lib/assert_fn_ok/assert_fn_ok_ne/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_ok_ne/sidebar-items.js rename to doc/lib/assert_fn_ok/assert_fn_ok_ne/sidebar-items.js diff --git a/doc/lib/assert_fn_ok/assert_fn_ok_ne_expr/index.html b/doc/lib/assert_fn_ok/assert_fn_ok_ne_expr/index.html new file mode 100644 index 000000000..1b574d6b9 --- /dev/null +++ b/doc/lib/assert_fn_ok/assert_fn_ok_ne_expr/index.html @@ -0,0 +1,51 @@ +lib::assert_fn_ok::assert_fn_ok_ne_expr - Rust

Module lib::assert_fn_ok::assert_fn_ok_ne_expr

source ·
Expand description

Assert a function ok() is not equal to an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
fn f(i: i8) -> Result<String, String> {
+    match i {
+        0..=9 => Ok(format!("{}", i)),
+        _ => Err(format!("{:?} is out of range", i)),
+    }
+}
+
+// Return Ok
+let a: i8 = 1;
+let b = String::from("2");
+assert_fn_ok_ne_expr!(f, a, b);
+//-> ()
+
+let a: i8 = 1;
+let b = String::from("1");
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_fn_ok_ne_expr!(f, a, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fn_ok_ne_expr!(left_function, left_param, right_expr)`\n",
+    " left_function label: `f`,\n",
+    "    left_param label: `a`,\n",
+    "    left_param debug: `1`,\n",
+    "    right_expr label: `b`,\n",
+    "    right_expr debug: `\"1\"`,\n",
+    "                left: `\"1\"`,\n",
+    "               right: `\"1\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fn_ok_ne_expr/sidebar-items.js b/doc/lib/assert_fn_ok/assert_fn_ok_ne_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_fn_ok_ne_expr/sidebar-items.js rename to doc/lib/assert_fn_ok/assert_fn_ok_ne_expr/sidebar-items.js diff --git a/doc/lib/assert_fn_ok/index.html b/doc/lib/assert_fn_ok/index.html new file mode 100644 index 000000000..e10355b91 --- /dev/null +++ b/doc/lib/assert_fn_ok/index.html @@ -0,0 +1,66 @@ +lib::assert_fn_ok - Rust

Module lib::assert_fn_ok

source ·
Expand description

Assert macros for comparing functions that return Result::Ok.

+

These macros help compare functions that return results that are ok, such as +std::Result::Ok or similar.

+

The macros use these capabilities:

+
    +
  • +

    implements .is_ok() -> boolean

    +
  • +
  • +

    implements .unwrap_ok() -> comparable

    +
  • +
+

Compare a function Ok() with another function Ok():

+ +

Compare a function Ok() with an expression:

+ +

§Example

+
fn f(i: i8) -> Result<String, String> {
+    match i {
+        0..=9 => Ok(format!("{}", i)),
+        _ => Err(format!("{:?} is out of range", i)),
+    }
+}
+
+let a: i8 = 1;
+let b: i8 = 1;
+assert_fn_ok_eq!(f, a, f, b);
+

Modules§

\ No newline at end of file diff --git a/doc/lib/assert_fn_ok/sidebar-items.js b/doc/lib/assert_fn_ok/sidebar-items.js new file mode 100644 index 000000000..da6d9d093 --- /dev/null +++ b/doc/lib/assert_fn_ok/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"mod":["assert_fn_ok_eq","assert_fn_ok_eq_expr","assert_fn_ok_ge","assert_fn_ok_ge_expr","assert_fn_ok_gt","assert_fn_ok_gt_expr","assert_fn_ok_le","assert_fn_ok_le_expr","assert_fn_ok_lt","assert_fn_ok_lt_expr","assert_fn_ok_ne","assert_fn_ok_ne_expr"]}; \ No newline at end of file diff --git a/doc/lib/assert_fn_ok_eq/index.html b/doc/lib/assert_fn_ok_eq/index.html deleted file mode 100644 index 76fdb7fe2..000000000 --- a/doc/lib/assert_fn_ok_eq/index.html +++ /dev/null @@ -1,52 +0,0 @@ -lib::assert_fn_ok_eq - Rust

Module lib::assert_fn_ok_eq

source ·
Expand description

Assert a function ok() is equal to another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
fn f(i: i8) -> Result<String, String> {
-    match i {
-        0..=9 => Ok(format!("{}", i)),
-        _ => Err(format!("{:?} is out of range", i)),
-    }
-}
-
-// Return Ok
-let a: i8 = 1;
-let b: i8 = 1;
-assert_fn_ok_eq!(f, a, f, b);
-//-> ()
-
-let a: i8 = 1;
-let b: i8 = 2;
-// Panic with error message
-let result = panic::catch_unwind(|| {
-assert_fn_ok_eq!(f, a, f, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fn_ok_eq!(left_function, left_param, right_function, right_param)`\n",
-    "  left_function label: `f`,\n",
-    "     left_param label: `a`,\n",
-    "     left_param debug: `1`,\n",
-    " right_function label: `f`,\n",
-    "    right_param label: `b`,\n",
-    "    right_param debug: `2`,\n",
-    "                 left: `\"1\"`,\n",
-    "                right: `\"2\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fn_ok_eq_expr/index.html b/doc/lib/assert_fn_ok_eq_expr/index.html deleted file mode 100644 index 6f848dc11..000000000 --- a/doc/lib/assert_fn_ok_eq_expr/index.html +++ /dev/null @@ -1,51 +0,0 @@ -lib::assert_fn_ok_eq_expr - Rust

Module lib::assert_fn_ok_eq_expr

source ·
Expand description

Assert a function ok() is equal to an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
fn f(i: i8) -> Result<String, String> {
-    match i {
-        0..=9 => Ok(format!("{}", i)),
-        _ => Err(format!("{:?} is out of range", i)),
-    }
-}
-
-// Return Ok
-let a: i8 = 1;
-let b = String::from("1");
-assert_fn_ok_eq_expr!(f, a, b);
-//-> ()
-
-let a: i8 = 1;
-let b = String::from("2");
-// Panic with error message
-let result = panic::catch_unwind(|| {
-assert_fn_ok_eq_expr!(f, a, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fn_ok_eq_expr!(left_function, left_param, right_expr)`\n",
-    " left_function label: `f`,\n",
-    "    left_param label: `a`,\n",
-    "    left_param debug: `1`,\n",
-    "    right_expr label: `b`,\n",
-    "    right_expr debug: `\"2\"`,\n",
-    "                left: `\"1\"`,\n",
-    "               right: `\"2\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fn_ok_ge/index.html b/doc/lib/assert_fn_ok_ge/index.html deleted file mode 100644 index b41e6b7d5..000000000 --- a/doc/lib/assert_fn_ok_ge/index.html +++ /dev/null @@ -1,52 +0,0 @@ -lib::assert_fn_ok_ge - Rust

Module lib::assert_fn_ok_ge

source ·
Expand description

Assert a function ok() is greater than or equal to another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
fn f(i: i8) -> Result<String, String> {
-    match i {
-        0..=9 => Ok(format!("{}", i)),
-        _ => Err(format!("{:?} is out of range", i)),
-    }
-}
-
-// Return Ok
-let a: i8 = 2;
-let b: i8 = 1;
-assert_fn_ok_ge!(f, a, f, b);
-//-> ()
-
-let a: i8 = 1;
-let b: i8 = 2;
-// Panic with error message
-let result = panic::catch_unwind(|| {
-assert_fn_ok_ge!(f, a, f, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fn_ok_ge!(left_function, left_param, right_function, right_param)`\n",
-    "  left_function label: `f`,\n",
-    "     left_param label: `a`,\n",
-    "     left_param debug: `1`,\n",
-    " right_function label: `f`,\n",
-    "    right_param label: `b`,\n",
-    "    right_param debug: `2`,\n",
-    "                 left: `\"1\"`,\n",
-    "                right: `\"2\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fn_ok_ge_expr/index.html b/doc/lib/assert_fn_ok_ge_expr/index.html deleted file mode 100644 index 1542330c4..000000000 --- a/doc/lib/assert_fn_ok_ge_expr/index.html +++ /dev/null @@ -1,51 +0,0 @@ -lib::assert_fn_ok_ge_expr - Rust

Module lib::assert_fn_ok_ge_expr

source ·
Expand description

Assert a function ok() is greater than or equal to an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
fn f(i: i8) -> Result<String, String> {
-    match i {
-        0..=9 => Ok(format!("{}", i)),
-        _ => Err(format!("{:?} is out of range", i)),
-    }
-}
-
-// Return Ok
-let a: i8 = 2;
-let b = String::from("1");
-assert_fn_ok_ge_expr!(f, a, b);
-//-> ()
-
-let a: i8 = 1;
-let b = String::from("2");
-// Panic with error message
-let result = panic::catch_unwind(|| {
-assert_fn_ok_ge_expr!(f, a, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fn_ok_ge_expr!(left_function, left_param, right_expr)`\n",
-    " left_function label: `f`,\n",
-    "    left_param label: `a`,\n",
-    "    left_param debug: `1`,\n",
-    "    right_expr label: `b`,\n",
-    "    right_expr debug: `\"2\"`,\n",
-    "                left: `\"1\"`,\n",
-    "               right: `\"2\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fn_ok_gt/index.html b/doc/lib/assert_fn_ok_gt/index.html deleted file mode 100644 index f9ab543be..000000000 --- a/doc/lib/assert_fn_ok_gt/index.html +++ /dev/null @@ -1,52 +0,0 @@ -lib::assert_fn_ok_gt - Rust

Module lib::assert_fn_ok_gt

source ·
Expand description

Assert a function ok() is greater than another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
fn f(i: i8) -> Result<String, String> {
-    match i {
-        0..=9 => Ok(format!("{}", i)),
-        _ => Err(format!("{:?} is out of range", i)),
-    }
-}
-
-// Return Ok
-let a: i8 = 2;
-let b: i8 = 1;
-assert_fn_ok_gt!(f, a, f, b);
-//-> ()
-
-let a: i8 = 1;
-let b: i8 = 2;
-// Panic with error message
-let result = panic::catch_unwind(|| {
-assert_fn_ok_gt!(f, a, f, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fn_ok_gt!(left_function, left_param, right_function, right_param)`\n",
-    "  left_function label: `f`,\n",
-    "     left_param label: `a`,\n",
-    "     left_param debug: `1`,\n",
-    " right_function label: `f`,\n",
-    "    right_param label: `b`,\n",
-    "    right_param debug: `2`,\n",
-    "                 left: `\"1\"`,\n",
-    "                right: `\"2\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fn_ok_gt_expr/index.html b/doc/lib/assert_fn_ok_gt_expr/index.html deleted file mode 100644 index c88801855..000000000 --- a/doc/lib/assert_fn_ok_gt_expr/index.html +++ /dev/null @@ -1,51 +0,0 @@ -lib::assert_fn_ok_gt_expr - Rust

Module lib::assert_fn_ok_gt_expr

source ·
Expand description

Assert a function ok() is greater than an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
fn f(i: i8) -> Result<String, String> {
-    match i {
-        0..=9 => Ok(format!("{}", i)),
-        _ => Err(format!("{:?} is out of range", i)),
-    }
-}
-
-// Return Ok
-let a: i8 = 2;
-let b = String::from("1");
-assert_fn_ok_gt_expr!(f, a, b);
-//-> ()
-
-let a: i8 = 1;
-let b = String::from("2");
-// Panic with error message
-let result = panic::catch_unwind(|| {
-assert_fn_ok_gt_expr!(f, a, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fn_ok_gt_expr!(left_function, left_param, right_expr)`\n",
-    " left_function label: `f`,\n",
-    "    left_param label: `a`,\n",
-    "    left_param debug: `1`,\n",
-    "    right_expr label: `b`,\n",
-    "    right_expr debug: `\"2\"`,\n",
-    "                left: `\"1\"`,\n",
-    "               right: `\"2\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fn_ok_le/index.html b/doc/lib/assert_fn_ok_le/index.html deleted file mode 100644 index 1f06a8885..000000000 --- a/doc/lib/assert_fn_ok_le/index.html +++ /dev/null @@ -1,52 +0,0 @@ -lib::assert_fn_ok_le - Rust

Module lib::assert_fn_ok_le

source ·
Expand description

Assert a function ok() is less than or equal to another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
fn f(i: i8) -> Result<String, String> {
-    match i {
-        0..=9 => Ok(format!("{}", i)),
-        _ => Err(format!("{:?} is out of range", i)),
-    }
-}
-
-// Return Ok
-let a: i8 = 1;
-let b: i8 = 2;
-assert_fn_ok_le!(f, a, f, b);
-//-> ()
-
-let a: i8 = 2;
-let b: i8 = 1;
-// Panic with error message
-let result = panic::catch_unwind(|| {
-assert_fn_ok_le!(f, a, f, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fn_ok_le!(left_function, left_param, right_function, right_param)`\n",
-    "  left_function label: `f`,\n",
-    "     left_param label: `a`,\n",
-    "     left_param debug: `2`,\n",
-    " right_function label: `f`,\n",
-    "    right_param label: `b`,\n",
-    "    right_param debug: `1`,\n",
-    "                 left: `\"2\"`,\n",
-    "                right: `\"1\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fn_ok_le_expr/index.html b/doc/lib/assert_fn_ok_le_expr/index.html deleted file mode 100644 index 77510650f..000000000 --- a/doc/lib/assert_fn_ok_le_expr/index.html +++ /dev/null @@ -1,52 +0,0 @@ -lib::assert_fn_ok_le_expr - Rust

Module lib::assert_fn_ok_le_expr

source ·
Expand description

Assert a function ok() is less than or equal to an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
fn f(i: i8) -> Result<String, String> {
-    match i {
-        0..=9 => Ok(format!("{}", i)),
-        _ => Err(format!("{:?} is out of range", i)),
-    }
-}
-
-
-// Return Ok
-let a: i8 = 1;
-let b = String::from("2");
-assert_fn_ok_le_expr!(f, a, b);
-//-> ()
-
-let a: i8 = 2;
-let b = String::from("1");
-// Panic with error message
-let result = panic::catch_unwind(|| {
-assert_fn_ok_le_expr!(f, a, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fn_ok_le_expr!(left_function, left_param, right_expr)`\n",
-    " left_function label: `f`,\n",
-    "    left_param label: `a`,\n",
-    "    left_param debug: `2`,\n",
-    "    right_expr label: `b`,\n",
-    "    right_expr debug: `\"1\"`,\n",
-    "                left: `\"2\"`,\n",
-    "               right: `\"1\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fn_ok_lt/index.html b/doc/lib/assert_fn_ok_lt/index.html deleted file mode 100644 index ed34932bd..000000000 --- a/doc/lib/assert_fn_ok_lt/index.html +++ /dev/null @@ -1,52 +0,0 @@ -lib::assert_fn_ok_lt - Rust

Module lib::assert_fn_ok_lt

source ·
Expand description

Assert a function ok() is less than another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
fn f(i: i8) -> Result<String, String> {
-    match i {
-        0..=9 => Ok(format!("{}", i)),
-        _ => Err(format!("{:?} is out of range", i)),
-    }
-}
-
-// Return Ok
-let a: i8 = 1;
-let b: i8 = 2;
-assert_fn_ok_lt!(f, a, f, b);
-//-> ()
-
-let a: i8 = 2;
-let b: i8 = 1;
-// Panic with error message
-let result = panic::catch_unwind(|| {
-assert_fn_ok_lt!(f, a, f, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fn_ok_lt!(left_function, left_param, right_function, right_param)`\n",
-    "  left_function label: `f`,\n",
-    "     left_param label: `a`,\n",
-    "     left_param debug: `2`,\n",
-    " right_function label: `f`,\n",
-    "    right_param label: `b`,\n",
-    "    right_param debug: `1`,\n",
-    "                 left: `\"2\"`,\n",
-    "                right: `\"1\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fn_ok_lt_expr/index.html b/doc/lib/assert_fn_ok_lt_expr/index.html deleted file mode 100644 index 25cdc5dbd..000000000 --- a/doc/lib/assert_fn_ok_lt_expr/index.html +++ /dev/null @@ -1,51 +0,0 @@ -lib::assert_fn_ok_lt_expr - Rust

Module lib::assert_fn_ok_lt_expr

source ·
Expand description

Assert a function ok() is less than an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
fn f(i: i8) -> Result<String, String> {
-    match i {
-        0..=9 => Ok(format!("{}", i)),
-        _ => Err(format!("{:?} is out of range", i)),
-    }
-}
-
-// Return Ok
-let a: i8 = 1;
-let b = String::from("2");
-assert_fn_ok_lt_expr!(f, a, b);
-//-> ()
-
-let a: i8 = 2;
-let b = String::from("1");
-// Panic with error message
-let result = panic::catch_unwind(|| {
-assert_fn_ok_lt_expr!(f, a, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fn_ok_lt_expr!(left_function, left_param, right_expr)`\n",
-    " left_function label: `f`,\n",
-    "    left_param label: `a`,\n",
-    "    left_param debug: `2`,\n",
-    "    right_expr label: `b`,\n",
-    "    right_expr debug: `\"1\"`,\n",
-    "                left: `\"2\"`,\n",
-    "               right: `\"1\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fn_ok_ne/index.html b/doc/lib/assert_fn_ok_ne/index.html deleted file mode 100644 index 112bf47bd..000000000 --- a/doc/lib/assert_fn_ok_ne/index.html +++ /dev/null @@ -1,52 +0,0 @@ -lib::assert_fn_ok_ne - Rust

Module lib::assert_fn_ok_ne

source ·
Expand description

Assert a function ok() is not equal to another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
fn f(i: i8) -> Result<String, String> {
-    match i {
-        0..=9 => Ok(format!("{}", i)),
-        _ => Err(format!("{:?} is out of range", i)),
-    }
-}
-
-// Return Ok
-let a: i8 = 1;
-let b: i8 = 2;
-assert_fn_ok_ne!(f, a, f, b);
-//-> ()
-
-let a: i8 = 1;
-let b: i8 = 1;
-// Panic with error message
-let result = panic::catch_unwind(|| {
-assert_fn_ok_ne!(f, a, f, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fn_ok_ne!(left_function, left_param, right_function, right_param)`\n",
-    "  left_function label: `f`,\n",
-    "     left_param label: `a`,\n",
-    "     left_param debug: `1`,\n",
-    " right_function label: `f`,\n",
-    "    right_param label: `b`,\n",
-    "    right_param debug: `1`,\n",
-    "                 left: `\"1\"`,\n",
-    "                right: `\"1\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fn_ok_ne_expr/index.html b/doc/lib/assert_fn_ok_ne_expr/index.html deleted file mode 100644 index 5ea85bf5b..000000000 --- a/doc/lib/assert_fn_ok_ne_expr/index.html +++ /dev/null @@ -1,51 +0,0 @@ -lib::assert_fn_ok_ne_expr - Rust

Module lib::assert_fn_ok_ne_expr

source ·
Expand description

Assert a function ok() is not equal to an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
fn f(i: i8) -> Result<String, String> {
-    match i {
-        0..=9 => Ok(format!("{}", i)),
-        _ => Err(format!("{:?} is out of range", i)),
-    }
-}
-
-// Return Ok
-let a: i8 = 1;
-let b = String::from("2");
-assert_fn_ok_ne_expr!(f, a, b);
-//-> ()
-
-let a: i8 = 1;
-let b = String::from("1");
-// Panic with error message
-let result = panic::catch_unwind(|| {
-assert_fn_ok_ne_expr!(f, a, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fn_ok_ne_expr!(left_function, left_param, right_expr)`\n",
-    " left_function label: `f`,\n",
-    "    left_param label: `a`,\n",
-    "    left_param debug: `1`,\n",
-    "    right_expr label: `b`,\n",
-    "    right_expr debug: `\"1\"`,\n",
-    "                left: `\"1\"`,\n",
-    "               right: `\"1\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_contains/index.html b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_contains/index.html new file mode 100644 index 000000000..5c91c91dd --- /dev/null +++ b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_contains/index.html @@ -0,0 +1,45 @@ +lib::assert_fs_read_to_string::assert_fs_read_to_string_contains - Rust
Expand description

Assert a std::fs::read_to_string() contains a pattern.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let path = "alfa.txt";
+let containee = "alfa";
+assert_fs_read_to_string_contains!(&path, containee);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let path = "alfa.txt";
+let containee = "zzz";
+assert_fs_read_to_string_contains!(&path, containee);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fs_read_to_string_contains!(left_path, right_containee)`\n",
+    "       left_path label: `&path`,\n",
+    "       left_path debug: `\"alfa.txt\"`,\n",
+    " right_containee label: `containee`,\n",
+    " right_containee debug: `\"zzz\"`,\n",
+    "                  left: `\"alfa\\n\"`,\n",
+    "                 right: `\"zzz\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_contains/sidebar-items.js b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_contains/sidebar-items.js similarity index 100% rename from doc/lib/assert_fs_read_to_string_contains/sidebar-items.js rename to doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_contains/sidebar-items.js diff --git a/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_eq/index.html b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_eq/index.html new file mode 100644 index 000000000..bad710afb --- /dev/null +++ b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_eq/index.html @@ -0,0 +1,45 @@ +lib::assert_fs_read_to_string::assert_fs_read_to_string_eq - Rust
Expand description

Assert a std::fs::read_to_string() value is equal to another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let a ="alfa.txt";
+let mut b = "alfa.txt";
+assert_fs_read_to_string_eq!(&a, &b);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let a ="alfa.txt";
+let b ="bravo.txt";
+assert_fs_read_to_string_eq!(&a, &b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fs_read_to_string_eq!(left_path, right_path)`\n",
+    "  left_path label: `&a`,\n",
+    "  left_path debug: `\"alfa.txt\"`,\n",
+    " right_path label: `&b`,\n",
+    " right_path debug: `\"bravo.txt\"`,\n",
+    "             left: `\"alfa\\n\"`,\n",
+    "            right: `\"bravo\\n\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_eq/sidebar-items.js b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_eq/sidebar-items.js similarity index 100% rename from doc/lib/assert_fs_read_to_string_eq/sidebar-items.js rename to doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_eq/sidebar-items.js diff --git a/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_eq_expr/index.html b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_eq_expr/index.html new file mode 100644 index 000000000..5a14146d2 --- /dev/null +++ b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_eq_expr/index.html @@ -0,0 +1,45 @@ +lib::assert_fs_read_to_string::assert_fs_read_to_string_eq_expr - Rust
Expand description

Assert a std::fs::read_to_string() value is equal to an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let path = "alfa.txt";
+let value = String::from("alfa\n");
+assert_fs_read_to_string_eq_expr!(&path, &value);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let path = "alfa.txt";
+let value = String::from("bravo\n");
+assert_fs_read_to_string_eq_expr!(&path, &value);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fs_read_to_string_eq_expr!(left_path, right_expr)`\n",
+    "  left_path label: `&path`,\n",
+    "  left_path debug: `\"alfa.txt\"`,\n",
+    " right_expr label: `&value`,\n",
+    " right_expr debug: `\"bravo\\n\"`,\n",
+    "             left: `\"alfa\\n\"`,\n",
+    "            right: `\"bravo\\n\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_eq_expr/sidebar-items.js b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_eq_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_fs_read_to_string_eq_expr/sidebar-items.js rename to doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_eq_expr/sidebar-items.js diff --git a/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_ge/index.html b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_ge/index.html new file mode 100644 index 000000000..f788b6fc4 --- /dev/null +++ b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_ge/index.html @@ -0,0 +1,45 @@ +lib::assert_fs_read_to_string::assert_fs_read_to_string_ge - Rust
Expand description

Assert a std::fs::read_to_string() value is greater than or equal to another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let a ="alfa.txt";
+let b ="bravo.txt";
+assert_fs_read_to_string_ge!(b, a);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let a ="alfa.txt";
+let b ="bravo.txt";
+assert_fs_read_to_string_ge!(&a, &b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fs_read_to_string_ge!(left_path, right_path)`\n",
+    "  left_path label: `&a`,\n",
+    "  left_path debug: `\"alfa.txt\"`,\n",
+    " right_path label: `&b`,\n",
+    " right_path debug: `\"bravo.txt\"`,\n",
+    "             left: `\"alfa\\n\"`,\n",
+    "            right: `\"bravo\\n\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_ge/sidebar-items.js b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_ge/sidebar-items.js similarity index 100% rename from doc/lib/assert_fs_read_to_string_ge/sidebar-items.js rename to doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_ge/sidebar-items.js diff --git a/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_ge_expr/index.html b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_ge_expr/index.html new file mode 100644 index 000000000..e1f7f9154 --- /dev/null +++ b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_ge_expr/index.html @@ -0,0 +1,45 @@ +lib::assert_fs_read_to_string::assert_fs_read_to_string_ge_expr - Rust
Expand description

Assert a std::fs::read_to_string() value is greater than or equal to an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let path = "bravo.txt";
+let value = String::from("alfa\n");
+assert_fs_read_to_string_ge_expr!(&path, &value);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let path = "alfa.txt";
+let value = String::from("bravo\n");
+assert_fs_read_to_string_ge_expr!(&path, &value);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fs_read_to_string_ge_expr!(left_path, right_expr)`\n",
+    "  left_path label: `&path`,\n",
+    "  left_path debug: `\"alfa.txt\"`,\n",
+    " right_expr label: `&value`,\n",
+    " right_expr debug: `\"bravo\\n\"`,\n",
+    "             left: `\"alfa\\n\"`,\n",
+    "            right: `\"bravo\\n\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_ge_expr/sidebar-items.js b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_ge_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_fs_read_to_string_ge_expr/sidebar-items.js rename to doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_ge_expr/sidebar-items.js diff --git a/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_gt/index.html b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_gt/index.html new file mode 100644 index 000000000..ab4e6a51b --- /dev/null +++ b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_gt/index.html @@ -0,0 +1,45 @@ +lib::assert_fs_read_to_string::assert_fs_read_to_string_gt - Rust
Expand description

Assert a std::fs::read_to_string() value is greater than another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let a ="alfa.txt";
+let b ="bravo.txt";
+assert_fs_read_to_string_gt!(b, a);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let a ="alfa.txt";
+let b ="bravo.txt";
+assert_fs_read_to_string_gt!(&a, &b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fs_read_to_string_gt!(left_path, right_path)`\n",
+    "  left_path label: `&a`,\n",
+    "  left_path debug: `\"alfa.txt\"`,\n",
+    " right_path label: `&b`,\n",
+    " right_path debug: `\"bravo.txt\"`,\n",
+    "             left: `\"alfa\\n\"`,\n",
+    "            right: `\"bravo\\n\"`",
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_gt/sidebar-items.js b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_gt/sidebar-items.js similarity index 100% rename from doc/lib/assert_fs_read_to_string_gt/sidebar-items.js rename to doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_gt/sidebar-items.js diff --git a/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_gt_expr/index.html b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_gt_expr/index.html new file mode 100644 index 000000000..009f984e9 --- /dev/null +++ b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_gt_expr/index.html @@ -0,0 +1,45 @@ +lib::assert_fs_read_to_string::assert_fs_read_to_string_gt_expr - Rust
Expand description

Assert a std::fs::read_to_string() value is greater than an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let path = "bravo.txt";
+let value = String::from("alfa\n");
+assert_fs_read_to_string_gt_expr!(&path, &value);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let path = "alfa.txt";
+let value = String::from("bravo\n");
+assert_fs_read_to_string_gt_expr!(&path, &value);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fs_read_to_string_gt_expr!(left_path, right_expr)`\n",
+    "  left_path label: `&path`,\n",
+    "  left_path debug: `\"alfa.txt\"`,\n",
+    " right_expr label: `&value`,\n",
+    " right_expr debug: `\"bravo\\n\"`,\n",
+    "             left: `\"alfa\\n\"`,\n",
+    "            right: `\"bravo\\n\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_gt_expr/sidebar-items.js b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_gt_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_fs_read_to_string_gt_expr/sidebar-items.js rename to doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_gt_expr/sidebar-items.js diff --git a/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_le/index.html b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_le/index.html new file mode 100644 index 000000000..9c072038c --- /dev/null +++ b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_le/index.html @@ -0,0 +1,45 @@ +lib::assert_fs_read_to_string::assert_fs_read_to_string_le - Rust
Expand description

Assert a std::fs::read_to_string() value is less than or equal to another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let a ="alfa.txt";
+let b ="bravo.txt";
+assert_fs_read_to_string_le!(&a, &b);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let mut a = "bravo.txt";
+let mut b = "alfa.txt";
+assert_fs_read_to_string_le!(&a, &b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fs_read_to_string_le!(left_path, right_path)`\n",
+    "  left_path label: `&a`,\n",
+    "  left_path debug: `\"bravo.txt\"`,\n",
+    " right_path label: `&b`,\n",
+    " right_path debug: `\"alfa.txt\"`,\n",
+    "             left: `\"bravo\\n\"`,\n",
+    "            right: `\"alfa\\n\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_le/sidebar-items.js b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_le/sidebar-items.js similarity index 100% rename from doc/lib/assert_fs_read_to_string_le/sidebar-items.js rename to doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_le/sidebar-items.js diff --git a/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_le_expr/index.html b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_le_expr/index.html new file mode 100644 index 000000000..e3f9911eb --- /dev/null +++ b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_le_expr/index.html @@ -0,0 +1,45 @@ +lib::assert_fs_read_to_string::assert_fs_read_to_string_le_expr - Rust
Expand description

Assert a std::fs::read_to_string() value is less than or equal to an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let path = "alfa.txt";
+let value = String::from("bravo\n");
+assert_fs_read_to_string_le_expr!(&path, &value);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let path = "bravo.txt";
+let value = String::from("alfa\n");
+assert_fs_read_to_string_le_expr!(&path, &value);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fs_read_to_string_le_expr!(left_path, right_expr)`\n",
+    "  left_path label: `&path`,\n",
+    "  left_path debug: `\"bravo.txt\"`,\n",
+    " right_expr label: `&value`,\n",
+    " right_expr debug: `\"alfa\\n\"`,\n",
+    "             left: `\"bravo\\n\"`,\n",
+    "            right: `\"alfa\\n\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_le_expr/sidebar-items.js b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_le_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_fs_read_to_string_le_expr/sidebar-items.js rename to doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_le_expr/sidebar-items.js diff --git a/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_lt/index.html b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_lt/index.html new file mode 100644 index 000000000..dbc25e16d --- /dev/null +++ b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_lt/index.html @@ -0,0 +1,45 @@ +lib::assert_fs_read_to_string::assert_fs_read_to_string_lt - Rust
Expand description

Assert a std::fs::read_to_string() value is less than another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let a ="alfa.txt";
+let b ="bravo.txt";
+assert_fs_read_to_string_lt!(&a, &b);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let mut a = "bravo.txt";
+let mut b = "alfa.txt";
+assert_fs_read_to_string_lt!(&a, &b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fs_read_to_string_lt!(left_path, right_path)`\n",
+    "  left_path label: `&a`,\n",
+    "  left_path debug: `\"bravo.txt\"`,\n",
+    " right_path label: `&b`,\n",
+    " right_path debug: `\"alfa.txt\"`,\n",
+    "             left: `\"bravo\\n\"`,\n",
+    "            right: `\"alfa\\n\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_lt/sidebar-items.js b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_lt/sidebar-items.js similarity index 100% rename from doc/lib/assert_fs_read_to_string_lt/sidebar-items.js rename to doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_lt/sidebar-items.js diff --git a/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_lt_expr/index.html b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_lt_expr/index.html new file mode 100644 index 000000000..c4ff862c0 --- /dev/null +++ b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_lt_expr/index.html @@ -0,0 +1,45 @@ +lib::assert_fs_read_to_string::assert_fs_read_to_string_lt_expr - Rust
Expand description

Assert a std::fs::read_to_string() value is less than an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let path = "alfa.txt";
+let value = String::from("bravo\n");
+assert_fs_read_to_string_lt_expr!(&path, &value);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let path = "bravo.txt";
+let value = String::from("alfa\n");
+assert_fs_read_to_string_lt_expr!(&path, &value);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fs_read_to_string_lt_expr!(left_path, right_expr)`\n",
+    "  left_path label: `&path`,\n",
+    "  left_path debug: `\"bravo.txt\"`,\n",
+    " right_expr label: `&value`,\n",
+    " right_expr debug: `\"alfa\\n\"`,\n",
+    "             left: `\"bravo\\n\"`,\n",
+    "            right: `\"alfa\\n\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_lt_expr/sidebar-items.js b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_lt_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_fs_read_to_string_lt_expr/sidebar-items.js rename to doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_lt_expr/sidebar-items.js diff --git a/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_matches/index.html b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_matches/index.html new file mode 100644 index 000000000..5aaf0cf9f --- /dev/null +++ b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_matches/index.html @@ -0,0 +1,46 @@ +lib::assert_fs_read_to_string::assert_fs_read_to_string_matches - Rust
Expand description

Assert a std::fs::read_to_string() is a match to a regex.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+use regex::Regex;
+
+// Return Ok
+let path = "alfa.txt";
+let matcher = Regex::new(r"alfa").unwrap();
+assert_fs_read_to_string_matches!(&path, matcher);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let path = "alfa.txt";
+let matcher = Regex::new(r"zzz").unwrap();
+assert_fs_read_to_string_matches!(&path, matcher);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fs_read_to_string_matches!(left_path, right_matcher)`\n",
+    "     left_path label: `&path`,\n",
+    "     left_path debug: `\"alfa.txt\"`,\n",
+    " right_matcher label: `matcher`,\n",
+    " right_matcher debug: `Regex(\"zzz\")`,\n",
+    "                left: `\"alfa\\n\"`,\n",
+    "               right: `Regex(\"zzz\")`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_matches/sidebar-items.js b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_matches/sidebar-items.js similarity index 100% rename from doc/lib/assert_fs_read_to_string_matches/sidebar-items.js rename to doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_matches/sidebar-items.js diff --git a/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_ne/index.html b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_ne/index.html new file mode 100644 index 000000000..289a9388d --- /dev/null +++ b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_ne/index.html @@ -0,0 +1,45 @@ +lib::assert_fs_read_to_string::assert_fs_read_to_string_ne - Rust
Expand description

Assert a std::fs::read_to_string() is not equal to another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let a ="alfa.txt";
+let b ="bravo.txt";
+assert_fs_read_to_string_ne!(&a, &b);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let a ="alfa.txt";
+let mut b = "alfa.txt";
+assert_fs_read_to_string_ne!(&a, &b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fs_read_to_string_ne!(left_path, right_path)`\n",
+    "  left_path label: `&a`,\n",
+    "  left_path debug: `\"alfa.txt\"`,\n",
+    " right_path label: `&b`,\n",
+    " right_path debug: `\"alfa.txt\"`,\n",
+    "             left: `\"alfa\\n\"`,\n",
+    "            right: `\"alfa\\n\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_ne/sidebar-items.js b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_ne/sidebar-items.js similarity index 100% rename from doc/lib/assert_fs_read_to_string_ne/sidebar-items.js rename to doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_ne/sidebar-items.js diff --git a/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_ne_expr/index.html b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_ne_expr/index.html new file mode 100644 index 000000000..f1a07b20b --- /dev/null +++ b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_ne_expr/index.html @@ -0,0 +1,45 @@ +lib::assert_fs_read_to_string::assert_fs_read_to_string_ne_expr - Rust
Expand description

Assert a std::fs::read_to_string() is not equal to an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let path = "alfa.txt";
+let value = String::from("bravo\n");
+assert_fs_read_to_string_ne_expr!(&path, &value);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let path = "alfa.txt";
+let value = String::from("alfa\n");
+assert_fs_read_to_string_ne_expr!(&path, &value);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_fs_read_to_string_ne_expr!(left_path, right_expr)`\n",
+    "  left_path label: `&path`,\n",
+    "  left_path debug: `\"alfa.txt\"`,\n",
+    " right_expr label: `&value`,\n",
+    " right_expr debug: `\"alfa\\n\"`,\n",
+    "             left: `\"alfa\\n\"`,\n",
+    "            right: `\"alfa\\n\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_ne_expr/sidebar-items.js b/doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_ne_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_fs_read_to_string_ne_expr/sidebar-items.js rename to doc/lib/assert_fs_read_to_string/assert_fs_read_to_string_ne_expr/sidebar-items.js diff --git a/doc/lib/assert_fs_read_to_string/index.html b/doc/lib/assert_fs_read_to_string/index.html new file mode 100644 index 000000000..3685b0165 --- /dev/null +++ b/doc/lib/assert_fs_read_to_string/index.html @@ -0,0 +1,62 @@ +lib::assert_fs_read_to_string - Rust

Module lib::assert_fs_read_to_string

source ·
Expand description

Assert macros for comparing file system path contents.

+

These macros help with file system paths, such as disk files, Path, +PathBuf, the trait AsRef<Path>, and anything that is readable via +std::fs::read_to_string(…).

+

Compare a path with another path:

+ +

Compare a path with an expression:

+ +

Compare a path with its contents:

+ +

§Example

+
use std::io::Read;
+
+let a ="alfa.txt";
+let mut b = "alfa.txt";
+assert_fs_read_to_string_eq!(&a, &b);
+

Modules§

\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string/sidebar-items.js b/doc/lib/assert_fs_read_to_string/sidebar-items.js new file mode 100644 index 000000000..7850c2855 --- /dev/null +++ b/doc/lib/assert_fs_read_to_string/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"mod":["assert_fs_read_to_string_contains","assert_fs_read_to_string_eq","assert_fs_read_to_string_eq_expr","assert_fs_read_to_string_ge","assert_fs_read_to_string_ge_expr","assert_fs_read_to_string_gt","assert_fs_read_to_string_gt_expr","assert_fs_read_to_string_le","assert_fs_read_to_string_le_expr","assert_fs_read_to_string_lt","assert_fs_read_to_string_lt_expr","assert_fs_read_to_string_matches","assert_fs_read_to_string_ne","assert_fs_read_to_string_ne_expr"]}; \ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_contains/index.html b/doc/lib/assert_fs_read_to_string_contains/index.html deleted file mode 100644 index 8268162ed..000000000 --- a/doc/lib/assert_fs_read_to_string_contains/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_fs_read_to_string_contains - Rust

Module lib::assert_fs_read_to_string_contains

source ·
Expand description

Assert a std::fs::read_to_string() contains a pattern.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let path = "alfa.txt";
-let containee = "alfa";
-assert_fs_read_to_string_contains!(&path, containee);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let path = "alfa.txt";
-let containee = "zzz";
-assert_fs_read_to_string_contains!(&path, containee);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fs_read_to_string_contains!(left_path, right_containee)`\n",
-    "       left_path label: `&path`,\n",
-    "       left_path debug: `\"alfa.txt\"`,\n",
-    " right_containee label: `containee`,\n",
-    " right_containee debug: `\"zzz\"`,\n",
-    "                  left: `\"alfa\\n\"`,\n",
-    "                 right: `\"zzz\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_eq/index.html b/doc/lib/assert_fs_read_to_string_eq/index.html deleted file mode 100644 index 07d2d893b..000000000 --- a/doc/lib/assert_fs_read_to_string_eq/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_fs_read_to_string_eq - Rust

Module lib::assert_fs_read_to_string_eq

source ·
Expand description

Assert a std::fs::read_to_string() value is equal to another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let a ="alfa.txt";
-let mut b = "alfa.txt";
-assert_fs_read_to_string_eq!(&a, &b);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let a ="alfa.txt";
-let b ="bravo.txt";
-assert_fs_read_to_string_eq!(&a, &b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fs_read_to_string_eq!(left_path, right_path)`\n",
-    "  left_path label: `&a`,\n",
-    "  left_path debug: `\"alfa.txt\"`,\n",
-    " right_path label: `&b`,\n",
-    " right_path debug: `\"bravo.txt\"`,\n",
-    "             left: `\"alfa\\n\"`,\n",
-    "            right: `\"bravo\\n\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_eq_expr/index.html b/doc/lib/assert_fs_read_to_string_eq_expr/index.html deleted file mode 100644 index abeae237c..000000000 --- a/doc/lib/assert_fs_read_to_string_eq_expr/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_fs_read_to_string_eq_expr - Rust

Module lib::assert_fs_read_to_string_eq_expr

source ·
Expand description

Assert a std::fs::read_to_string() value is equal to an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let path = "alfa.txt";
-let value = String::from("alfa\n");
-assert_fs_read_to_string_eq_expr!(&path, &value);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let path = "alfa.txt";
-let value = String::from("bravo\n");
-assert_fs_read_to_string_eq_expr!(&path, &value);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fs_read_to_string_eq_expr!(left_path, right_expr)`\n",
-    "  left_path label: `&path`,\n",
-    "  left_path debug: `\"alfa.txt\"`,\n",
-    " right_expr label: `&value`,\n",
-    " right_expr debug: `\"bravo\\n\"`,\n",
-    "             left: `\"alfa\\n\"`,\n",
-    "            right: `\"bravo\\n\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_ge/index.html b/doc/lib/assert_fs_read_to_string_ge/index.html deleted file mode 100644 index 2987f178e..000000000 --- a/doc/lib/assert_fs_read_to_string_ge/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_fs_read_to_string_ge - Rust

Module lib::assert_fs_read_to_string_ge

source ·
Expand description

Assert a std::fs::read_to_string() value is greater than or equal to another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let a ="alfa.txt";
-let b ="bravo.txt";
-assert_fs_read_to_string_ge!(b, a);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let a ="alfa.txt";
-let b ="bravo.txt";
-assert_fs_read_to_string_ge!(&a, &b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fs_read_to_string_ge!(left_path, right_path)`\n",
-    "  left_path label: `&a`,\n",
-    "  left_path debug: `\"alfa.txt\"`,\n",
-    " right_path label: `&b`,\n",
-    " right_path debug: `\"bravo.txt\"`,\n",
-    "             left: `\"alfa\\n\"`,\n",
-    "            right: `\"bravo\\n\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_ge_expr/index.html b/doc/lib/assert_fs_read_to_string_ge_expr/index.html deleted file mode 100644 index ef485226c..000000000 --- a/doc/lib/assert_fs_read_to_string_ge_expr/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_fs_read_to_string_ge_expr - Rust

Module lib::assert_fs_read_to_string_ge_expr

source ·
Expand description

Assert a std::fs::read_to_string() value is greater than or equal to an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let path = "bravo.txt";
-let value = String::from("alfa\n");
-assert_fs_read_to_string_ge_expr!(&path, &value);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let path = "alfa.txt";
-let value = String::from("bravo\n");
-assert_fs_read_to_string_ge_expr!(&path, &value);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fs_read_to_string_ge_expr!(left_path, right_expr)`\n",
-    "  left_path label: `&path`,\n",
-    "  left_path debug: `\"alfa.txt\"`,\n",
-    " right_expr label: `&value`,\n",
-    " right_expr debug: `\"bravo\\n\"`,\n",
-    "             left: `\"alfa\\n\"`,\n",
-    "            right: `\"bravo\\n\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_gt/index.html b/doc/lib/assert_fs_read_to_string_gt/index.html deleted file mode 100644 index cf271dbbc..000000000 --- a/doc/lib/assert_fs_read_to_string_gt/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_fs_read_to_string_gt - Rust

Module lib::assert_fs_read_to_string_gt

source ·
Expand description

Assert a std::fs::read_to_string() value is greater than another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let a ="alfa.txt";
-let b ="bravo.txt";
-assert_fs_read_to_string_gt!(b, a);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let a ="alfa.txt";
-let b ="bravo.txt";
-assert_fs_read_to_string_gt!(&a, &b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fs_read_to_string_gt!(left_path, right_path)`\n",
-    "  left_path label: `&a`,\n",
-    "  left_path debug: `\"alfa.txt\"`,\n",
-    " right_path label: `&b`,\n",
-    " right_path debug: `\"bravo.txt\"`,\n",
-    "             left: `\"alfa\\n\"`,\n",
-    "            right: `\"bravo\\n\"`",
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_gt_expr/index.html b/doc/lib/assert_fs_read_to_string_gt_expr/index.html deleted file mode 100644 index ad3c28627..000000000 --- a/doc/lib/assert_fs_read_to_string_gt_expr/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_fs_read_to_string_gt_expr - Rust

Module lib::assert_fs_read_to_string_gt_expr

source ·
Expand description

Assert a std::fs::read_to_string() value is greater than an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let path = "bravo.txt";
-let value = String::from("alfa\n");
-assert_fs_read_to_string_gt_expr!(&path, &value);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let path = "alfa.txt";
-let value = String::from("bravo\n");
-assert_fs_read_to_string_gt_expr!(&path, &value);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fs_read_to_string_gt_expr!(left_path, right_expr)`\n",
-    "  left_path label: `&path`,\n",
-    "  left_path debug: `\"alfa.txt\"`,\n",
-    " right_expr label: `&value`,\n",
-    " right_expr debug: `\"bravo\\n\"`,\n",
-    "             left: `\"alfa\\n\"`,\n",
-    "            right: `\"bravo\\n\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_le/index.html b/doc/lib/assert_fs_read_to_string_le/index.html deleted file mode 100644 index 4713a7d64..000000000 --- a/doc/lib/assert_fs_read_to_string_le/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_fs_read_to_string_le - Rust

Module lib::assert_fs_read_to_string_le

source ·
Expand description

Assert a std::fs::read_to_string() value is less than or equal to another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let a ="alfa.txt";
-let b ="bravo.txt";
-assert_fs_read_to_string_le!(&a, &b);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let mut a = "bravo.txt";
-let mut b = "alfa.txt";
-assert_fs_read_to_string_le!(&a, &b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fs_read_to_string_le!(left_path, right_path)`\n",
-    "  left_path label: `&a`,\n",
-    "  left_path debug: `\"bravo.txt\"`,\n",
-    " right_path label: `&b`,\n",
-    " right_path debug: `\"alfa.txt\"`,\n",
-    "             left: `\"bravo\\n\"`,\n",
-    "            right: `\"alfa\\n\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_le_expr/index.html b/doc/lib/assert_fs_read_to_string_le_expr/index.html deleted file mode 100644 index df2fb97a6..000000000 --- a/doc/lib/assert_fs_read_to_string_le_expr/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_fs_read_to_string_le_expr - Rust

Module lib::assert_fs_read_to_string_le_expr

source ·
Expand description

Assert a std::fs::read_to_string() value is less than or equal to an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let path = "alfa.txt";
-let value = String::from("bravo\n");
-assert_fs_read_to_string_le_expr!(&path, &value);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let path = "bravo.txt";
-let value = String::from("alfa\n");
-assert_fs_read_to_string_le_expr!(&path, &value);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fs_read_to_string_le_expr!(left_path, right_expr)`\n",
-    "  left_path label: `&path`,\n",
-    "  left_path debug: `\"bravo.txt\"`,\n",
-    " right_expr label: `&value`,\n",
-    " right_expr debug: `\"alfa\\n\"`,\n",
-    "             left: `\"bravo\\n\"`,\n",
-    "            right: `\"alfa\\n\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_lt/index.html b/doc/lib/assert_fs_read_to_string_lt/index.html deleted file mode 100644 index 8f547435d..000000000 --- a/doc/lib/assert_fs_read_to_string_lt/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_fs_read_to_string_lt - Rust

Module lib::assert_fs_read_to_string_lt

source ·
Expand description

Assert a std::fs::read_to_string() value is less than another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let a ="alfa.txt";
-let b ="bravo.txt";
-assert_fs_read_to_string_lt!(&a, &b);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let mut a = "bravo.txt";
-let mut b = "alfa.txt";
-assert_fs_read_to_string_lt!(&a, &b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fs_read_to_string_lt!(left_path, right_path)`\n",
-    "  left_path label: `&a`,\n",
-    "  left_path debug: `\"bravo.txt\"`,\n",
-    " right_path label: `&b`,\n",
-    " right_path debug: `\"alfa.txt\"`,\n",
-    "             left: `\"bravo\\n\"`,\n",
-    "            right: `\"alfa\\n\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_lt_expr/index.html b/doc/lib/assert_fs_read_to_string_lt_expr/index.html deleted file mode 100644 index 8a267e657..000000000 --- a/doc/lib/assert_fs_read_to_string_lt_expr/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_fs_read_to_string_lt_expr - Rust

Module lib::assert_fs_read_to_string_lt_expr

source ·
Expand description

Assert a std::fs::read_to_string() value is less than an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let path = "alfa.txt";
-let value = String::from("bravo\n");
-assert_fs_read_to_string_lt_expr!(&path, &value);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let path = "bravo.txt";
-let value = String::from("alfa\n");
-assert_fs_read_to_string_lt_expr!(&path, &value);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fs_read_to_string_lt_expr!(left_path, right_expr)`\n",
-    "  left_path label: `&path`,\n",
-    "  left_path debug: `\"bravo.txt\"`,\n",
-    " right_expr label: `&value`,\n",
-    " right_expr debug: `\"alfa\\n\"`,\n",
-    "             left: `\"bravo\\n\"`,\n",
-    "            right: `\"alfa\\n\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_matches/index.html b/doc/lib/assert_fs_read_to_string_matches/index.html deleted file mode 100644 index 8ea387c25..000000000 --- a/doc/lib/assert_fs_read_to_string_matches/index.html +++ /dev/null @@ -1,46 +0,0 @@ -lib::assert_fs_read_to_string_matches - Rust

Module lib::assert_fs_read_to_string_matches

source ·
Expand description

Assert a std::fs::read_to_string() is a match to a regex.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-use regex::Regex;
-
-// Return Ok
-let path = "alfa.txt";
-let matcher = Regex::new(r"alfa").unwrap();
-assert_fs_read_to_string_matches!(&path, matcher);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let path = "alfa.txt";
-let matcher = Regex::new(r"zzz").unwrap();
-assert_fs_read_to_string_matches!(&path, matcher);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fs_read_to_string_matches!(left_path, right_matcher)`\n",
-    "     left_path label: `&path`,\n",
-    "     left_path debug: `\"alfa.txt\"`,\n",
-    " right_matcher label: `matcher`,\n",
-    " right_matcher debug: `Regex(\"zzz\")`,\n",
-    "                left: `\"alfa\\n\"`,\n",
-    "               right: `Regex(\"zzz\")`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_ne/index.html b/doc/lib/assert_fs_read_to_string_ne/index.html deleted file mode 100644 index c574ded59..000000000 --- a/doc/lib/assert_fs_read_to_string_ne/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_fs_read_to_string_ne - Rust

Module lib::assert_fs_read_to_string_ne

source ·
Expand description

Assert a std::fs::read_to_string() is not equal to another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let a ="alfa.txt";
-let b ="bravo.txt";
-assert_fs_read_to_string_ne!(&a, &b);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let a ="alfa.txt";
-let mut b = "alfa.txt";
-assert_fs_read_to_string_ne!(&a, &b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fs_read_to_string_ne!(left_path, right_path)`\n",
-    "  left_path label: `&a`,\n",
-    "  left_path debug: `\"alfa.txt\"`,\n",
-    " right_path label: `&b`,\n",
-    " right_path debug: `\"alfa.txt\"`,\n",
-    "             left: `\"alfa\\n\"`,\n",
-    "            right: `\"alfa\\n\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_fs_read_to_string_ne_expr/index.html b/doc/lib/assert_fs_read_to_string_ne_expr/index.html deleted file mode 100644 index 595856468..000000000 --- a/doc/lib/assert_fs_read_to_string_ne_expr/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_fs_read_to_string_ne_expr - Rust

Module lib::assert_fs_read_to_string_ne_expr

source ·
Expand description

Assert a std::fs::read_to_string() is not equal to an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let path = "alfa.txt";
-let value = String::from("bravo\n");
-assert_fs_read_to_string_ne_expr!(&path, &value);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let path = "alfa.txt";
-let value = String::from("alfa\n");
-assert_fs_read_to_string_ne_expr!(&path, &value);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_fs_read_to_string_ne_expr!(left_path, right_expr)`\n",
-    "  left_path label: `&path`,\n",
-    "  left_path debug: `\"alfa.txt\"`,\n",
-    " right_expr label: `&value`,\n",
-    " right_expr debug: `\"alfa\\n\"`,\n",
-    "             left: `\"alfa\\n\"`,\n",
-    "            right: `\"alfa\\n\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_infix/index.html b/doc/lib/assert_infix/index.html new file mode 100644 index 000000000..6ab15488f --- /dev/null +++ b/doc/lib/assert_infix/index.html @@ -0,0 +1,70 @@ +lib::assert_infix - Rust

Module lib::assert_infix

source ·
Expand description

Assert a infix operator, such as assert_infix!(a == b).

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
// Return Ok
+let a = 1;
+let b = 1;
+assert_infix!(a == b);
+//-> ()
+
+let a = 1;
+let b = 2;
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_infix!(a == b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_infix!(x == y)`\n",
+    " x label: `a`,\n",
+    " x debug: `1`,\n",
+    " y label: `b`,\n",
+    " y debug: `2`\n",
+);
+assert_eq!(actual, expect);
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_infix!(a == b, "message");
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = "message";
+assert_eq!(actual, expect);
+

§Infix operators

+

For values:

+
    +
  • == equal
  • +
  • != not equal
  • +
  • < less than
  • +
  • <= less than or equal to
  • +
  • > greater than
  • +
  • >= greater than or equal to
  • +
+

For booleans:

+
    +
  • ^ logical XOR
  • +
  • ! logical NOT
  • +
  • & logical AND
  • +
  • | logical OR
  • +
  • && logical lazy AND
  • +
  • || logical lazy OR
  • +
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_contains/sidebar-items.js b/doc/lib/assert_infix/sidebar-items.js similarity index 100% rename from doc/lib/assert_io_read_to_string_contains/sidebar-items.js rename to doc/lib/assert_infix/sidebar-items.js diff --git a/doc/lib/assert_io_read_to_string/assert_io_read_to_string_contains/index.html b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_contains/index.html new file mode 100644 index 000000000..10c8d1512 --- /dev/null +++ b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_contains/index.html @@ -0,0 +1,45 @@ +lib::assert_io_read_to_string::assert_io_read_to_string_contains - Rust
Expand description

Assert a std::io::Read read_to_string() contains a pattern.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let mut reader = "hello".as_bytes();
+let containee = "ell";
+assert_io_read_to_string_contains!(reader, containee);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let mut reader = "hello".as_bytes();
+let containee = "zzz";
+assert_io_read_to_string_contains!(reader, containee);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_io_read_to_string_contains!(left_reader, right_containee)`\n",
+    "     left_reader label: `reader`,\n",
+    "     left_reader debug: `[]`,\n",
+    " right_containee label: `containee`,\n",
+    " right_containee debug: `\"zzz\"`,\n",
+    "                  left: `\"hello\"`,\n",
+    "                 right: `\"zzz\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_eq/sidebar-items.js b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_contains/sidebar-items.js similarity index 100% rename from doc/lib/assert_io_read_to_string_eq/sidebar-items.js rename to doc/lib/assert_io_read_to_string/assert_io_read_to_string_contains/sidebar-items.js diff --git a/doc/lib/assert_io_read_to_string/assert_io_read_to_string_eq/index.html b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_eq/index.html new file mode 100644 index 000000000..060f28280 --- /dev/null +++ b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_eq/index.html @@ -0,0 +1,45 @@ +lib::assert_io_read_to_string::assert_io_read_to_string_eq - Rust
Expand description

Assert a std::io::Read read_to_string() value is equal to another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let mut a = "alfa".as_bytes();
+let mut b = "alfa".as_bytes();
+assert_io_read_to_string_eq!(a, b);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let mut a = "alfa".as_bytes();
+let mut b = "bravo".as_bytes();
+assert_io_read_to_string_eq!(a, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_io_read_to_string_eq!(left_reader, right_reader)`\n",
+    "  left_reader label: `a`,\n",
+    "  left_reader debug: `[]`,\n",
+    " right_reader label: `b`,\n",
+    " right_reader debug: `[]`,\n",
+    "               left: `\"alfa\"`,\n",
+    "              right: `\"bravo\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_eq_expr/sidebar-items.js b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_eq/sidebar-items.js similarity index 100% rename from doc/lib/assert_io_read_to_string_eq_expr/sidebar-items.js rename to doc/lib/assert_io_read_to_string/assert_io_read_to_string_eq/sidebar-items.js diff --git a/doc/lib/assert_io_read_to_string/assert_io_read_to_string_eq_expr/index.html b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_eq_expr/index.html new file mode 100644 index 000000000..f3df5b712 --- /dev/null +++ b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_eq_expr/index.html @@ -0,0 +1,45 @@ +lib::assert_io_read_to_string::assert_io_read_to_string_eq_expr - Rust
Expand description

Assert a std::io::Read read_to_string() value is equal to an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let mut reader = "alfa".as_bytes();
+let value = String::from("alfa");
+assert_io_read_to_string_eq_expr!(reader, &value);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let mut reader = "alfa".as_bytes();
+let value = String::from("bravo");
+assert_io_read_to_string_eq_expr!(reader, &value);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_io_read_to_string_eq_expr!(left_reader, right_expr)`\n",
+    " left_reader label: `reader`,\n",
+    " left_reader debug: `[]`,\n",
+    "  right_expr label: `&value`,\n",
+    "  right_expr debug: `\"bravo\"`,\n",
+    "              left: `\"alfa\"`,\n",
+    "             right: `\"bravo\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_ge/sidebar-items.js b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_eq_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_io_read_to_string_ge/sidebar-items.js rename to doc/lib/assert_io_read_to_string/assert_io_read_to_string_eq_expr/sidebar-items.js diff --git a/doc/lib/assert_io_read_to_string/assert_io_read_to_string_ge/index.html b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_ge/index.html new file mode 100644 index 000000000..920c31620 --- /dev/null +++ b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_ge/index.html @@ -0,0 +1,45 @@ +lib::assert_io_read_to_string::assert_io_read_to_string_ge - Rust
Expand description

Assert a std::io::Read read_to_string() value is greater than or equal to another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let mut a = "alfa".as_bytes();
+let mut b = "bravo".as_bytes();
+assert_io_read_to_string_ge!(b, a);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let mut a = "alfa".as_bytes();
+let mut b = "bravo".as_bytes();
+assert_io_read_to_string_ge!(a, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_io_read_to_string_ge!(left_reader, right_reader)`\n",
+    "  left_reader label: `a`,\n",
+    "  left_reader debug: `[]`,\n",
+    " right_reader label: `b`,\n",
+    " right_reader debug: `[]`,\n",
+    "               left: `\"alfa\"`,\n",
+    "              right: `\"bravo\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_ge_expr/sidebar-items.js b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_ge/sidebar-items.js similarity index 100% rename from doc/lib/assert_io_read_to_string_ge_expr/sidebar-items.js rename to doc/lib/assert_io_read_to_string/assert_io_read_to_string_ge/sidebar-items.js diff --git a/doc/lib/assert_io_read_to_string/assert_io_read_to_string_ge_expr/index.html b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_ge_expr/index.html new file mode 100644 index 000000000..47d872292 --- /dev/null +++ b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_ge_expr/index.html @@ -0,0 +1,45 @@ +lib::assert_io_read_to_string::assert_io_read_to_string_ge_expr - Rust
Expand description

Assert a std::io::Read read_to_string() value is greater than or equal to an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let mut reader = "bravo".as_bytes();
+let value = String::from("alfa");
+assert_io_read_to_string_ge_expr!(reader, &value);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let mut reader = "alfa".as_bytes();
+let value = String::from("bravo");
+assert_io_read_to_string_ge_expr!(reader, &value);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_io_read_to_string_ge_expr!(left_reader, right_expr)`\n",
+    " left_reader label: `reader`,\n",
+    " left_reader debug: `[]`,\n",
+    "  right_expr label: `&value`,\n",
+    "  right_expr debug: `\"bravo\"`,\n",
+    "              left: `\"alfa\"`,\n",
+    "             right: `\"bravo\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_gt/sidebar-items.js b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_ge_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_io_read_to_string_gt/sidebar-items.js rename to doc/lib/assert_io_read_to_string/assert_io_read_to_string_ge_expr/sidebar-items.js diff --git a/doc/lib/assert_io_read_to_string/assert_io_read_to_string_gt/index.html b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_gt/index.html new file mode 100644 index 000000000..e946aa37e --- /dev/null +++ b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_gt/index.html @@ -0,0 +1,45 @@ +lib::assert_io_read_to_string::assert_io_read_to_string_gt - Rust
Expand description

Assert a std::io::Read read_to_string() value is greater than another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let mut a = "alfa".as_bytes();
+let mut b = "bravo".as_bytes();
+assert_io_read_to_string_gt!(b, a);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let mut a = "alfa".as_bytes();
+let mut b = "bravo".as_bytes();
+assert_io_read_to_string_gt!(a, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_io_read_to_string_gt!(left_reader, right_reader)`\n",
+    "  left_reader label: `a`,\n",
+    "  left_reader debug: `[]`,\n",
+    " right_reader label: `b`,\n",
+    " right_reader debug: `[]`,\n",
+    "               left: `\"alfa\"`,\n",
+    "              right: `\"bravo\"`",
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_gt_expr/sidebar-items.js b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_gt/sidebar-items.js similarity index 100% rename from doc/lib/assert_io_read_to_string_gt_expr/sidebar-items.js rename to doc/lib/assert_io_read_to_string/assert_io_read_to_string_gt/sidebar-items.js diff --git a/doc/lib/assert_io_read_to_string/assert_io_read_to_string_gt_expr/index.html b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_gt_expr/index.html new file mode 100644 index 000000000..0a62add78 --- /dev/null +++ b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_gt_expr/index.html @@ -0,0 +1,45 @@ +lib::assert_io_read_to_string::assert_io_read_to_string_gt_expr - Rust
Expand description

Assert a std::io::Read read_to_string() value is greater than an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let mut reader = "bravo".as_bytes();
+let value = String::from("alfa");
+assert_io_read_to_string_gt_expr!(reader, &value);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let mut reader = "alfa".as_bytes();
+let value = String::from("bravo");
+assert_io_read_to_string_gt_expr!(reader, &value);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_io_read_to_string_gt_expr!(left_reader, right_expr)`\n",
+    " left_reader label: `reader`,\n",
+    " left_reader debug: `[]`,\n",
+    "  right_expr label: `&value`,\n",
+    "  right_expr debug: `\"bravo\"`,\n",
+    "              left: `\"alfa\"`,\n",
+    "             right: `\"bravo\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_le/sidebar-items.js b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_gt_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_io_read_to_string_le/sidebar-items.js rename to doc/lib/assert_io_read_to_string/assert_io_read_to_string_gt_expr/sidebar-items.js diff --git a/doc/lib/assert_io_read_to_string/assert_io_read_to_string_le/index.html b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_le/index.html new file mode 100644 index 000000000..e57a3c377 --- /dev/null +++ b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_le/index.html @@ -0,0 +1,45 @@ +lib::assert_io_read_to_string::assert_io_read_to_string_le - Rust
Expand description

Assert a std::io::Read read_to_string() value is less than or equal to another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let mut a = "alfa".as_bytes();
+let mut b = "bravo".as_bytes();
+assert_io_read_to_string_le!(a, b);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let mut a = "bravo".as_bytes();
+let mut b = "alfa".as_bytes();
+assert_io_read_to_string_le!(a, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_io_read_to_string_le!(left_reader, right_reader)`\n",
+    "  left_reader label: `a`,\n",
+    "  left_reader debug: `[]`,\n",
+    " right_reader label: `b`,\n",
+    " right_reader debug: `[]`,\n",
+    "               left: `\"bravo\"`,\n",
+    "              right: `\"alfa\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_le_expr/sidebar-items.js b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_le/sidebar-items.js similarity index 100% rename from doc/lib/assert_io_read_to_string_le_expr/sidebar-items.js rename to doc/lib/assert_io_read_to_string/assert_io_read_to_string_le/sidebar-items.js diff --git a/doc/lib/assert_io_read_to_string/assert_io_read_to_string_le_expr/index.html b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_le_expr/index.html new file mode 100644 index 000000000..40cf431e2 --- /dev/null +++ b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_le_expr/index.html @@ -0,0 +1,45 @@ +lib::assert_io_read_to_string::assert_io_read_to_string_le_expr - Rust
Expand description

Assert a std::io::Read read_to_string() value is less than or equal to an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let mut reader = "alfa".as_bytes();
+let value = String::from("bravo");
+assert_io_read_to_string_le_expr!(reader, &value);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let mut reader = "bravo".as_bytes();
+let value = String::from("alfa");
+assert_io_read_to_string_le_expr!(reader, &value);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_io_read_to_string_le_expr!(left_reader, right_expr)`\n",
+    " left_reader label: `reader`,\n",
+    " left_reader debug: `[]`,\n",
+    "  right_expr label: `&value`,\n",
+    "  right_expr debug: `\"alfa\"`,\n",
+    "              left: `\"bravo\"`,\n",
+    "             right: `\"alfa\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_lt/sidebar-items.js b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_le_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_io_read_to_string_lt/sidebar-items.js rename to doc/lib/assert_io_read_to_string/assert_io_read_to_string_le_expr/sidebar-items.js diff --git a/doc/lib/assert_io_read_to_string/assert_io_read_to_string_lt/index.html b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_lt/index.html new file mode 100644 index 000000000..8f3ad2eb7 --- /dev/null +++ b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_lt/index.html @@ -0,0 +1,45 @@ +lib::assert_io_read_to_string::assert_io_read_to_string_lt - Rust
Expand description

Assert a std::io::Read read_to_string() value is less than another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let mut a = "alfa".as_bytes();
+let mut b = "bravo".as_bytes();
+assert_io_read_to_string_lt!(a, b);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let mut a = "bravo".as_bytes();
+let mut b = "alfa".as_bytes();
+assert_io_read_to_string_lt!(a, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_io_read_to_string_lt!(left_reader, right_reader)`\n",
+    "  left_reader label: `a`,\n",
+    "  left_reader debug: `[]`,\n",
+    " right_reader label: `b`,\n",
+    " right_reader debug: `[]`,\n",
+    "               left: `\"bravo\"`,\n",
+    "              right: `\"alfa\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_lt_expr/sidebar-items.js b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_lt/sidebar-items.js similarity index 100% rename from doc/lib/assert_io_read_to_string_lt_expr/sidebar-items.js rename to doc/lib/assert_io_read_to_string/assert_io_read_to_string_lt/sidebar-items.js diff --git a/doc/lib/assert_io_read_to_string/assert_io_read_to_string_lt_expr/index.html b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_lt_expr/index.html new file mode 100644 index 000000000..b0ccb8b3c --- /dev/null +++ b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_lt_expr/index.html @@ -0,0 +1,45 @@ +lib::assert_io_read_to_string::assert_io_read_to_string_lt_expr - Rust
Expand description

Assert a std::io::Read read_to_string() value is less than an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let mut reader = "alfa".as_bytes();
+let value = String::from("bravo");
+assert_io_read_to_string_lt_expr!(reader, &value);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let mut reader = "bravo".as_bytes();
+let value = String::from("alfa");
+assert_io_read_to_string_lt_expr!(reader, &value);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_io_read_to_string_lt_expr!(left_reader, right_expr)`\n",
+    " left_reader label: `reader`,\n",
+    " left_reader debug: `[]`,\n",
+    "  right_expr label: `&value`,\n",
+    "  right_expr debug: `\"alfa\"`,\n",
+    "              left: `\"bravo\"`,\n",
+    "             right: `\"alfa\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_matches/sidebar-items.js b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_lt_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_io_read_to_string_matches/sidebar-items.js rename to doc/lib/assert_io_read_to_string/assert_io_read_to_string_lt_expr/sidebar-items.js diff --git a/doc/lib/assert_io_read_to_string/assert_io_read_to_string_matches/index.html b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_matches/index.html new file mode 100644 index 000000000..9b19d69e8 --- /dev/null +++ b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_matches/index.html @@ -0,0 +1,46 @@ +lib::assert_io_read_to_string::assert_io_read_to_string_matches - Rust
Expand description

Assert a std::io::Read read_to_string() is a match to a regex.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+use regex::Regex;
+
+// Return Ok
+let mut reader = "hello".as_bytes();
+let matcher = Regex::new(r"ell").unwrap();
+assert_io_read_to_string_matches!(reader, matcher);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let mut reader = "hello".as_bytes();
+let matcher = Regex::new(r"zzz").unwrap();
+assert_io_read_to_string_matches!(reader, matcher);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_io_read_to_string_matches!(left_reader, right_matcher)`\n",
+    "   left_reader label: `reader`,\n",
+    "   left_reader debug: `[]`,\n",
+    " right_matcher label: `matcher`,\n",
+    " right_matcher debug: `Regex(\"zzz\")`,\n",
+    "                left: `\"hello\"`,\n",
+    "               right: `Regex(\"zzz\")`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_ne/sidebar-items.js b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_matches/sidebar-items.js similarity index 100% rename from doc/lib/assert_io_read_to_string_ne/sidebar-items.js rename to doc/lib/assert_io_read_to_string/assert_io_read_to_string_matches/sidebar-items.js diff --git a/doc/lib/assert_io_read_to_string/assert_io_read_to_string_ne/index.html b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_ne/index.html new file mode 100644 index 000000000..09ed2e6ee --- /dev/null +++ b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_ne/index.html @@ -0,0 +1,45 @@ +lib::assert_io_read_to_string::assert_io_read_to_string_ne - Rust
Expand description

Assert a std::io::Read read_to_string() is not equal to another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let mut a = "alfa".as_bytes();
+let mut b = "bravo".as_bytes();
+assert_io_read_to_string_ne!(a, b);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let mut a = "alfa".as_bytes();
+let mut b = "alfa".as_bytes();
+assert_io_read_to_string_ne!(a, b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_io_read_to_string_ne!(left_reader, right_reader)`\n",
+    "  left_reader label: `a`,\n",
+    "  left_reader debug: `[]`,\n",
+    " right_reader label: `b`,\n",
+    " right_reader debug: `[]`,\n",
+    "               left: `\"alfa\"`,\n",
+    "              right: `\"alfa\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_ne_expr/sidebar-items.js b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_ne/sidebar-items.js similarity index 100% rename from doc/lib/assert_io_read_to_string_ne_expr/sidebar-items.js rename to doc/lib/assert_io_read_to_string/assert_io_read_to_string_ne/sidebar-items.js diff --git a/doc/lib/assert_io_read_to_string/assert_io_read_to_string_ne_expr/index.html b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_ne_expr/index.html new file mode 100644 index 000000000..89aa8a2ea --- /dev/null +++ b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_ne_expr/index.html @@ -0,0 +1,45 @@ +lib::assert_io_read_to_string::assert_io_read_to_string_ne_expr - Rust
Expand description

Assert a std::io::Read read_to_string() is not equal to an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use std::io::Read;
+
+// Return Ok
+let mut reader = "alfa".as_bytes();
+let value = String::from("bravo");
+assert_io_read_to_string_ne_expr!(reader, &value);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let mut reader = "alfa".as_bytes();
+let value = String::from("alfa");
+assert_io_read_to_string_ne_expr!(reader, &value);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_io_read_to_string_ne_expr!(left_reader, right_expr)`\n",
+    " left_reader label: `reader`,\n",
+    " left_reader debug: `[]`,\n",
+    "  right_expr label: `&value`,\n",
+    "  right_expr debug: `\"alfa\"`,\n",
+    "              left: `\"alfa\"`,\n",
+    "             right: `\"alfa\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_contains/sidebar-items.js b/doc/lib/assert_io_read_to_string/assert_io_read_to_string_ne_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stderr_contains/sidebar-items.js rename to doc/lib/assert_io_read_to_string/assert_io_read_to_string_ne_expr/sidebar-items.js diff --git a/doc/lib/assert_io_read_to_string/index.html b/doc/lib/assert_io_read_to_string/index.html new file mode 100644 index 000000000..6a361ee8b --- /dev/null +++ b/doc/lib/assert_io_read_to_string/index.html @@ -0,0 +1,62 @@ +lib::assert_io_read_to_string - Rust

Module lib::assert_io_read_to_string

source ·
Expand description

Assert macros for comparing input/output reader streams.

+

These macros help with input/output readers, such as file handles, byte arrays, +input streams, the trait std::io::Read, and anything that implements a +method read_to_string() -> String.

+

Compare a reader with another reader:

+ +

Compare a reader with an expression:

+ +

Compare a reader with its contents:

+ +

§Example

+
use std::io::Read;
+
+let mut a = "alfa".as_bytes();
+let mut b = "alfa".as_bytes();
+assert_io_read_to_string_eq!(a, b);
+

Modules§

\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string/sidebar-items.js b/doc/lib/assert_io_read_to_string/sidebar-items.js new file mode 100644 index 000000000..bddfdb333 --- /dev/null +++ b/doc/lib/assert_io_read_to_string/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"mod":["assert_io_read_to_string_contains","assert_io_read_to_string_eq","assert_io_read_to_string_eq_expr","assert_io_read_to_string_ge","assert_io_read_to_string_ge_expr","assert_io_read_to_string_gt","assert_io_read_to_string_gt_expr","assert_io_read_to_string_le","assert_io_read_to_string_le_expr","assert_io_read_to_string_lt","assert_io_read_to_string_lt_expr","assert_io_read_to_string_matches","assert_io_read_to_string_ne","assert_io_read_to_string_ne_expr"]}; \ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_contains/index.html b/doc/lib/assert_io_read_to_string_contains/index.html deleted file mode 100644 index 1966b035c..000000000 --- a/doc/lib/assert_io_read_to_string_contains/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_io_read_to_string_contains - Rust

Module lib::assert_io_read_to_string_contains

source ·
Expand description

Assert a std::io::Read read_to_string() contains a pattern.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let mut reader = "hello".as_bytes();
-let containee = "ell";
-assert_io_read_to_string_contains!(reader, containee);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let mut reader = "hello".as_bytes();
-let containee = "zzz";
-assert_io_read_to_string_contains!(reader, containee);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_io_read_to_string_contains!(left_reader, right_containee)`\n",
-    "     left_reader label: `reader`,\n",
-    "     left_reader debug: `[]`,\n",
-    " right_containee label: `containee`,\n",
-    " right_containee debug: `\"zzz\"`,\n",
-    "                  left: `\"hello\"`,\n",
-    "                 right: `\"zzz\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_eq/index.html b/doc/lib/assert_io_read_to_string_eq/index.html deleted file mode 100644 index 5dd1c9511..000000000 --- a/doc/lib/assert_io_read_to_string_eq/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_io_read_to_string_eq - Rust

Module lib::assert_io_read_to_string_eq

source ·
Expand description

Assert a std::io::Read read_to_string() value is equal to another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let mut a = "alfa".as_bytes();
-let mut b = "alfa".as_bytes();
-assert_io_read_to_string_eq!(a, b);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let mut a = "alfa".as_bytes();
-let mut b = "bravo".as_bytes();
-assert_io_read_to_string_eq!(a, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_io_read_to_string_eq!(left_reader, right_reader)`\n",
-    "  left_reader label: `a`,\n",
-    "  left_reader debug: `[]`,\n",
-    " right_reader label: `b`,\n",
-    " right_reader debug: `[]`,\n",
-    "               left: `\"alfa\"`,\n",
-    "              right: `\"bravo\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_eq_expr/index.html b/doc/lib/assert_io_read_to_string_eq_expr/index.html deleted file mode 100644 index 3ac7addd1..000000000 --- a/doc/lib/assert_io_read_to_string_eq_expr/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_io_read_to_string_eq_expr - Rust

Module lib::assert_io_read_to_string_eq_expr

source ·
Expand description

Assert a std::io::Read read_to_string() value is equal to an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let mut reader = "alfa".as_bytes();
-let value = String::from("alfa");
-assert_io_read_to_string_eq_expr!(reader, &value);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let mut reader = "alfa".as_bytes();
-let value = String::from("bravo");
-assert_io_read_to_string_eq_expr!(reader, &value);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_io_read_to_string_eq_expr!(left_reader, right_expr)`\n",
-    " left_reader label: `reader`,\n",
-    " left_reader debug: `[]`,\n",
-    "  right_expr label: `&value`,\n",
-    "  right_expr debug: `\"bravo\"`,\n",
-    "              left: `\"alfa\"`,\n",
-    "             right: `\"bravo\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_ge/index.html b/doc/lib/assert_io_read_to_string_ge/index.html deleted file mode 100644 index 0d3a2a40b..000000000 --- a/doc/lib/assert_io_read_to_string_ge/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_io_read_to_string_ge - Rust

Module lib::assert_io_read_to_string_ge

source ·
Expand description

Assert a std::io::Read read_to_string() value is greater than or equal to another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let mut a = "alfa".as_bytes();
-let mut b = "bravo".as_bytes();
-assert_io_read_to_string_ge!(b, a);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let mut a = "alfa".as_bytes();
-let mut b = "bravo".as_bytes();
-assert_io_read_to_string_ge!(a, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_io_read_to_string_ge!(left_reader, right_reader)`\n",
-    "  left_reader label: `a`,\n",
-    "  left_reader debug: `[]`,\n",
-    " right_reader label: `b`,\n",
-    " right_reader debug: `[]`,\n",
-    "               left: `\"alfa\"`,\n",
-    "              right: `\"bravo\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_ge_expr/index.html b/doc/lib/assert_io_read_to_string_ge_expr/index.html deleted file mode 100644 index 35295bbee..000000000 --- a/doc/lib/assert_io_read_to_string_ge_expr/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_io_read_to_string_ge_expr - Rust

Module lib::assert_io_read_to_string_ge_expr

source ·
Expand description

Assert a std::io::Read read_to_string() value is greater than or equal to an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let mut reader = "bravo".as_bytes();
-let value = String::from("alfa");
-assert_io_read_to_string_ge_expr!(reader, &value);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let mut reader = "alfa".as_bytes();
-let value = String::from("bravo");
-assert_io_read_to_string_ge_expr!(reader, &value);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_io_read_to_string_ge_expr!(left_reader, right_expr)`\n",
-    " left_reader label: `reader`,\n",
-    " left_reader debug: `[]`,\n",
-    "  right_expr label: `&value`,\n",
-    "  right_expr debug: `\"bravo\"`,\n",
-    "              left: `\"alfa\"`,\n",
-    "             right: `\"bravo\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_gt/index.html b/doc/lib/assert_io_read_to_string_gt/index.html deleted file mode 100644 index f779a1955..000000000 --- a/doc/lib/assert_io_read_to_string_gt/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_io_read_to_string_gt - Rust

Module lib::assert_io_read_to_string_gt

source ·
Expand description

Assert a std::io::Read read_to_string() value is greater than another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let mut a = "alfa".as_bytes();
-let mut b = "bravo".as_bytes();
-assert_io_read_to_string_gt!(b, a);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let mut a = "alfa".as_bytes();
-let mut b = "bravo".as_bytes();
-assert_io_read_to_string_gt!(a, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_io_read_to_string_gt!(left_reader, right_reader)`\n",
-    "  left_reader label: `a`,\n",
-    "  left_reader debug: `[]`,\n",
-    " right_reader label: `b`,\n",
-    " right_reader debug: `[]`,\n",
-    "               left: `\"alfa\"`,\n",
-    "              right: `\"bravo\"`",
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_gt_expr/index.html b/doc/lib/assert_io_read_to_string_gt_expr/index.html deleted file mode 100644 index f0560e3a6..000000000 --- a/doc/lib/assert_io_read_to_string_gt_expr/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_io_read_to_string_gt_expr - Rust

Module lib::assert_io_read_to_string_gt_expr

source ·
Expand description

Assert a std::io::Read read_to_string() value is greater than an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let mut reader = "bravo".as_bytes();
-let value = String::from("alfa");
-assert_io_read_to_string_gt_expr!(reader, &value);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let mut reader = "alfa".as_bytes();
-let value = String::from("bravo");
-assert_io_read_to_string_gt_expr!(reader, &value);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_io_read_to_string_gt_expr!(left_reader, right_expr)`\n",
-    " left_reader label: `reader`,\n",
-    " left_reader debug: `[]`,\n",
-    "  right_expr label: `&value`,\n",
-    "  right_expr debug: `\"bravo\"`,\n",
-    "              left: `\"alfa\"`,\n",
-    "             right: `\"bravo\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_le/index.html b/doc/lib/assert_io_read_to_string_le/index.html deleted file mode 100644 index 2c42925e2..000000000 --- a/doc/lib/assert_io_read_to_string_le/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_io_read_to_string_le - Rust

Module lib::assert_io_read_to_string_le

source ·
Expand description

Assert a std::io::Read read_to_string() value is less than or equal to another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let mut a = "alfa".as_bytes();
-let mut b = "bravo".as_bytes();
-assert_io_read_to_string_le!(a, b);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let mut a = "bravo".as_bytes();
-let mut b = "alfa".as_bytes();
-assert_io_read_to_string_le!(a, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_io_read_to_string_le!(left_reader, right_reader)`\n",
-    "  left_reader label: `a`,\n",
-    "  left_reader debug: `[]`,\n",
-    " right_reader label: `b`,\n",
-    " right_reader debug: `[]`,\n",
-    "               left: `\"bravo\"`,\n",
-    "              right: `\"alfa\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_le_expr/index.html b/doc/lib/assert_io_read_to_string_le_expr/index.html deleted file mode 100644 index 39f20ca20..000000000 --- a/doc/lib/assert_io_read_to_string_le_expr/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_io_read_to_string_le_expr - Rust

Module lib::assert_io_read_to_string_le_expr

source ·
Expand description

Assert a std::io::Read read_to_string() value is less than or equal to an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let mut reader = "alfa".as_bytes();
-let value = String::from("bravo");
-assert_io_read_to_string_le_expr!(reader, &value);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let mut reader = "bravo".as_bytes();
-let value = String::from("alfa");
-assert_io_read_to_string_le_expr!(reader, &value);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_io_read_to_string_le_expr!(left_reader, right_expr)`\n",
-    " left_reader label: `reader`,\n",
-    " left_reader debug: `[]`,\n",
-    "  right_expr label: `&value`,\n",
-    "  right_expr debug: `\"alfa\"`,\n",
-    "              left: `\"bravo\"`,\n",
-    "             right: `\"alfa\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_lt/index.html b/doc/lib/assert_io_read_to_string_lt/index.html deleted file mode 100644 index e31a3ba88..000000000 --- a/doc/lib/assert_io_read_to_string_lt/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_io_read_to_string_lt - Rust

Module lib::assert_io_read_to_string_lt

source ·
Expand description

Assert a std::io::Read read_to_string() value is less than another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let mut a = "alfa".as_bytes();
-let mut b = "bravo".as_bytes();
-assert_io_read_to_string_lt!(a, b);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let mut a = "bravo".as_bytes();
-let mut b = "alfa".as_bytes();
-assert_io_read_to_string_lt!(a, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_io_read_to_string_lt!(left_reader, right_reader)`\n",
-    "  left_reader label: `a`,\n",
-    "  left_reader debug: `[]`,\n",
-    " right_reader label: `b`,\n",
-    " right_reader debug: `[]`,\n",
-    "               left: `\"bravo\"`,\n",
-    "              right: `\"alfa\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_lt_expr/index.html b/doc/lib/assert_io_read_to_string_lt_expr/index.html deleted file mode 100644 index 426bac38e..000000000 --- a/doc/lib/assert_io_read_to_string_lt_expr/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_io_read_to_string_lt_expr - Rust

Module lib::assert_io_read_to_string_lt_expr

source ·
Expand description

Assert a std::io::Read read_to_string() value is less than an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let mut reader = "alfa".as_bytes();
-let value = String::from("bravo");
-assert_io_read_to_string_lt_expr!(reader, &value);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let mut reader = "bravo".as_bytes();
-let value = String::from("alfa");
-assert_io_read_to_string_lt_expr!(reader, &value);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_io_read_to_string_lt_expr!(left_reader, right_expr)`\n",
-    " left_reader label: `reader`,\n",
-    " left_reader debug: `[]`,\n",
-    "  right_expr label: `&value`,\n",
-    "  right_expr debug: `\"alfa\"`,\n",
-    "              left: `\"bravo\"`,\n",
-    "             right: `\"alfa\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_matches/index.html b/doc/lib/assert_io_read_to_string_matches/index.html deleted file mode 100644 index 9472fe244..000000000 --- a/doc/lib/assert_io_read_to_string_matches/index.html +++ /dev/null @@ -1,46 +0,0 @@ -lib::assert_io_read_to_string_matches - Rust

Module lib::assert_io_read_to_string_matches

source ·
Expand description

Assert a std::io::Read read_to_string() is a match to a regex.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-use regex::Regex;
-
-// Return Ok
-let mut reader = "hello".as_bytes();
-let matcher = Regex::new(r"ell").unwrap();
-assert_io_read_to_string_matches!(reader, matcher);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let mut reader = "hello".as_bytes();
-let matcher = Regex::new(r"zzz").unwrap();
-assert_io_read_to_string_matches!(reader, matcher);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_io_read_to_string_matches!(left_reader, right_matcher)`\n",
-    "   left_reader label: `reader`,\n",
-    "   left_reader debug: `[]`,\n",
-    " right_matcher label: `matcher`,\n",
-    " right_matcher debug: `Regex(\"zzz\")`,\n",
-    "                left: `\"hello\"`,\n",
-    "               right: `Regex(\"zzz\")`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_ne/index.html b/doc/lib/assert_io_read_to_string_ne/index.html deleted file mode 100644 index d7090fe85..000000000 --- a/doc/lib/assert_io_read_to_string_ne/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_io_read_to_string_ne - Rust

Module lib::assert_io_read_to_string_ne

source ·
Expand description

Assert a std::io::Read read_to_string() is not equal to another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let mut a = "alfa".as_bytes();
-let mut b = "bravo".as_bytes();
-assert_io_read_to_string_ne!(a, b);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let mut a = "alfa".as_bytes();
-let mut b = "alfa".as_bytes();
-assert_io_read_to_string_ne!(a, b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_io_read_to_string_ne!(left_reader, right_reader)`\n",
-    "  left_reader label: `a`,\n",
-    "  left_reader debug: `[]`,\n",
-    " right_reader label: `b`,\n",
-    " right_reader debug: `[]`,\n",
-    "               left: `\"alfa\"`,\n",
-    "              right: `\"alfa\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_io_read_to_string_ne_expr/index.html b/doc/lib/assert_io_read_to_string_ne_expr/index.html deleted file mode 100644 index 7bda0ec83..000000000 --- a/doc/lib/assert_io_read_to_string_ne_expr/index.html +++ /dev/null @@ -1,45 +0,0 @@ -lib::assert_io_read_to_string_ne_expr - Rust

Module lib::assert_io_read_to_string_ne_expr

source ·
Expand description

Assert a std::io::Read read_to_string() is not equal to an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use std::io::Read;
-
-// Return Ok
-let mut reader = "alfa".as_bytes();
-let value = String::from("bravo");
-assert_io_read_to_string_ne_expr!(reader, &value);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let mut reader = "alfa".as_bytes();
-let value = String::from("alfa");
-assert_io_read_to_string_ne_expr!(reader, &value);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_io_read_to_string_ne_expr!(left_reader, right_expr)`\n",
-    " left_reader label: `reader`,\n",
-    " left_reader debug: `[]`,\n",
-    "  right_expr label: `&value`,\n",
-    "  right_expr debug: `\"alfa\"`,\n",
-    "              left: `\"alfa\"`,\n",
-    "             right: `\"alfa\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_option/assert_option_none/index.html b/doc/lib/assert_option/assert_option_none/index.html new file mode 100644 index 000000000..ff9048135 --- /dev/null +++ b/doc/lib/assert_option/assert_option_none/index.html @@ -0,0 +1,47 @@ +lib::assert_option::assert_option_none - Rust

Module lib::assert_option::assert_option_none

source ·
Expand description

Assert expression.is_none() is true.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
let a: Option<i8> = Option::None;
+assert_option_none!(a);
+//-> ()
+
+let a: Option<i8> = Option::Some(1);
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_option_none!(a);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_option_none!(expr)`\n",
+    "     expr label: `a`,\n",
+    "     expr debug: `Some(1)`,\n",
+    " expr.is_none(): `false`",
+);
+assert_eq!(actual, expect);
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_option_none!(a, "message");
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = "message";
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_eq/sidebar-items.js b/doc/lib/assert_option/assert_option_none/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stderr_eq/sidebar-items.js rename to doc/lib/assert_option/assert_option_none/sidebar-items.js diff --git a/doc/lib/assert_option/assert_option_some/index.html b/doc/lib/assert_option/assert_option_some/index.html new file mode 100644 index 000000000..f93be71ef --- /dev/null +++ b/doc/lib/assert_option/assert_option_some/index.html @@ -0,0 +1,47 @@ +lib::assert_option::assert_option_some - Rust

Module lib::assert_option::assert_option_some

source ·
Expand description

Assert expression.is_some() is true.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
let a: Option<i8> = Option::Some(1);
+assert_option_some!(a);
+//-> ()
+
+let a: Option<i8> = Option::None;
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_option_some!(a);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_option_some!(expr)`\n",
+    "     expr label: `a`,\n",
+    "     expr debug: `None`,\n",
+    " expr.is_some(): `false`",
+);
+assert_eq!(actual, expect);
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_option_some!(a, "message");
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = "message";
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_eq_expr/sidebar-items.js b/doc/lib/assert_option/assert_option_some/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stderr_eq_expr/sidebar-items.js rename to doc/lib/assert_option/assert_option_some/sidebar-items.js diff --git a/doc/lib/assert_option/index.html b/doc/lib/assert_option/index.html new file mode 100644 index 000000000..b4ddbdc2a --- /dev/null +++ b/doc/lib/assert_option/index.html @@ -0,0 +1,27 @@ +lib::assert_option - Rust

Module lib::assert_option

source ·
Expand description

Assert macros for Option (Some or None)

+

These macros help compare an Option that is either Some, None.

+

The macros use these capabilities:

+
    +
  • +

    implements .is_some() -> boolean

    +
  • +
  • +

    implements .unwrap_some() -> comparable

    +
  • +
  • +

    implements .is_none() -> boolean

    +
  • +
+

§Macros

+ +

§Example

+
let a: Option<i8> = Option::Some(1);
+assert_option_some!(a);
+

Modules§

\ No newline at end of file diff --git a/doc/lib/assert_option/sidebar-items.js b/doc/lib/assert_option/sidebar-items.js new file mode 100644 index 000000000..9ac848fa6 --- /dev/null +++ b/doc/lib/assert_option/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"mod":["assert_option_none","assert_option_some"]}; \ No newline at end of file diff --git a/doc/lib/assert_program_args/assert_program_args_stderr_contains/index.html b/doc/lib/assert_program_args/assert_program_args_stderr_contains/index.html new file mode 100644 index 000000000..4222fef04 --- /dev/null +++ b/doc/lib/assert_program_args/assert_program_args_stderr_contains/index.html @@ -0,0 +1,53 @@ +lib::assert_program_args::assert_program_args_stderr_contains - Rust
Expand description

Assert a command (built with program and args) stderr string contains a given containee.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

This uses std::String method contains.

+
    +
  • The containee can be a &str, char, a slice of chars, or a function or +closure that determines if a character contains.
  • +
+

§Examples

+

+// Return Ok
+let program = "bin/printf-stderr";
+let args = ["%s", "hello"];
+let containee = "ell";
+assert_program_args_stderr_contains!(&program, &args, containee);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let program = "bin/printf-stderr";
+let args = ["%s", "hello"];
+let containee = "zzz";
+assert_program_args_stderr_contains!(&program, &args, containee);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_program_args_stderr_contains!(left_program, left_args, right_containee)`\n",
+    "    left_program label: `&program`,\n",
+    "    left_program debug: `\"bin/printf-stderr\"`,\n",
+    "       left_args label: `&args`,\n",
+    "       left_args debug: `[\"%s\", \"hello\"]`,\n",
+    " right_containee label: `containee`,\n",
+    " right_containee debug: `\"zzz\"`,\n",
+    "                  left: `\"hello\"`,\n",
+    "                 right: `\"zzz\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_ge/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stderr_contains/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stderr_ge/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stderr_contains/sidebar-items.js diff --git a/doc/lib/assert_program_args/assert_program_args_stderr_eq/index.html b/doc/lib/assert_program_args/assert_program_args_stderr_eq/index.html new file mode 100644 index 000000000..65613ca2a --- /dev/null +++ b/doc/lib/assert_program_args/assert_program_args_stderr_eq/index.html @@ -0,0 +1,48 @@ +lib::assert_program_args::assert_program_args_stderr_eq - Rust
Expand description

Assert a command (built with program and args) stderr string is equal to another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+

+// Return Ok
+let a_program = "bin/printf-stderr";
+let a_args = ["%s", "hello"];
+let b_program = "bin/printf-stderr";
+let b_args = ["%s", "hello"];
+assert_program_args_stderr_eq!(&a_program, &a_args, &b_program, &b_args);
+//-> ()
+
+let a_program = "bin/printf-stderr";
+let a_args = ["%s", "hello"];
+let b_program = "bin/printf-stderr";
+let b_args = ["%s", "zzz"];
+assert_program_args_stderr_eq!(&a_program, &a_args, &b_program, &b_args);
+//-> panic!("…")
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_program_args_stderr_eq!(left_program, left_args, right_program, right_args)`\n",
+    "  left_program label: `&a_program`,\n",
+    "  left_program debug: `\"bin/printf-stderr\"`,\n",
+    "     left_args label: `&a_args`,\n",
+    "     left_args debug: `[\"%s\", \"hello\"]`,\n",
+    " right_program label: `&b_program`,\n",
+    " right_program debug: `\"bin/printf-stderr\"`,\n",
+    "    right_args label: `&b_args`,\n",
+    "    right_args debug: `[\"%s\", \"zzz\"]`,\n",
+    "                left: `\"hello\"`,\n",
+    "               right: `\"zzz\"`"
+);
+assert_eq!(actual, expect);
+

/// # Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_ge_expr/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stderr_eq/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stderr_ge_expr/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stderr_eq/sidebar-items.js diff --git a/doc/lib/assert_program_args/assert_program_args_stderr_eq_expr/index.html b/doc/lib/assert_program_args/assert_program_args_stderr_eq_expr/index.html new file mode 100644 index 000000000..1c36129bb --- /dev/null +++ b/doc/lib/assert_program_args/assert_program_args_stderr_eq_expr/index.html @@ -0,0 +1,48 @@ +lib::assert_program_args::assert_program_args_stderr_eq_expr - Rust
Expand description

Assert a command (built with program and args) stderr string is equal to an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+

+// Return Ok
+let program = "bin/printf-stderr";
+let args = ["%s", "hello"];
+let s = String::from("hello");
+assert_program_args_stderr_eq_expr!(&program, &args, s);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let program = "bin/printf-stderr";
+let args = ["%s", "hello"];
+let s = String::from("zzz");
+assert_program_args_stderr_eq_expr!(&program, &args, s);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_program_args_stderr_eq_expr!(left_program, left_args, right_expr)`\n",
+    " left_program label: `&program`,\n",
+    " left_program debug: `\"bin/printf-stderr\"`,\n",
+    "    left_args label: `&args`,\n",
+    "    left_args debug: `[\"%s\", \"hello\"]`,\n",
+    "   right_expr label: `s`,\n",
+    "   right_expr debug: `\"zzz\"`,\n",
+    "               left: `\"hello\"`,\n",
+    "              right: `\"zzz\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_gt/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stderr_eq_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stderr_gt/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stderr_eq_expr/sidebar-items.js diff --git a/doc/lib/assert_program_args/assert_program_args_stderr_ge/index.html b/doc/lib/assert_program_args/assert_program_args_stderr_ge/index.html new file mode 100644 index 000000000..d9b4d1259 --- /dev/null +++ b/doc/lib/assert_program_args/assert_program_args_stderr_ge/index.html @@ -0,0 +1,48 @@ +lib::assert_program_args::assert_program_args_stderr_ge - Rust
Expand description

Assert a command (built with program and args) stderr string is greater than or equal to another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+

+// Return Ok
+let a_program = "bin/printf-stderr";
+let a_args = ["%s", "hello"];
+let b_program = "bin/printf-stderr";
+let b_args = ["%s", "hallo"];
+assert_program_args_stderr_ge!(&a_program, &a_args, &b_program, &b_args);
+//-> ()
+
+let a_program = "bin/printf-stderr";
+let a_args = ["%s", "hello"];
+let b_program = "bin/printf-stderr";
+let b_args = ["%s", "hullo"];
+assert_program_args_stderr_ge!(&a_program, &a_args, &b_program, &b_args);
+//-> panic!("…")
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_program_args_stderr_ge!(left_program, left_args, right_program, right_args)`\n",
+    "  left_program label: `&a_program`,\n",
+    "  left_program debug: `\"bin/printf-stderr\"`,\n",
+    "     left_args label: `&a_args`,\n",
+    "     left_args debug: `[\"%s\", \"hello\"]`,\n",
+    " right_program label: `&b_program`,\n",
+    " right_program debug: `\"bin/printf-stderr\"`,\n",
+    "    right_args label: `&b_args`,\n",
+    "    right_args debug: `[\"%s\", \"hullo\"]`,\n",
+    "                left: `\"hello\"`,\n",
+    "               right: `\"hullo\"`"
+);
+assert_eq!(actual, expect);
+

/// # Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_gt_expr/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stderr_ge/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stderr_gt_expr/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stderr_ge/sidebar-items.js diff --git a/doc/lib/assert_program_args/assert_program_args_stderr_ge_expr/index.html b/doc/lib/assert_program_args/assert_program_args_stderr_ge_expr/index.html new file mode 100644 index 000000000..8f2aaff84 --- /dev/null +++ b/doc/lib/assert_program_args/assert_program_args_stderr_ge_expr/index.html @@ -0,0 +1,23 @@ +lib::assert_program_args::assert_program_args_stderr_ge_expr - Rust
Expand description

Assert a command (built with program and args) stderr string is greater than or equal to an expression.

+

This macro provides the same statements as assert_program_args_stderr_ge_expr, +except this macro’s statements are only enabled in non-optimized +builds by default. An optimized build will not execute this macro’s +statements unless -C debug-assertions is passed to the compiler.

+

This macro is useful for checks that are too expensive to be present +in a release build but may be helpful during development.

+

The result of expanding this macro is always type checked.

+

An unchecked assertion allows a program in an inconsistent state to +keep running, which might have unexpected consequences but does not +introduce unsafety as long as this only happens in safe code. The +performance cost of assertions, however, is not measurable in general. +Replacing assert*! with debug_assert*! is thus only encouraged +after thorough profiling, and more importantly, only in safe code!

+

This macro is intended to work in a similar way to +std::debug_assert.

+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_is_match/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stderr_ge_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stderr_is_match/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stderr_ge_expr/sidebar-items.js diff --git a/doc/lib/assert_program_args/assert_program_args_stderr_gt/index.html b/doc/lib/assert_program_args/assert_program_args_stderr_gt/index.html new file mode 100644 index 000000000..ab57552cd --- /dev/null +++ b/doc/lib/assert_program_args/assert_program_args_stderr_gt/index.html @@ -0,0 +1,48 @@ +lib::assert_program_args::assert_program_args_stderr_gt - Rust
Expand description

Assert a command (built with program and args) stderr string is greater than to another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+

+// Return Ok
+let a_program = "bin/printf-stderr";
+let a_args = ["%s", "hello"];
+let b_program = "bin/printf-stderr";
+let b_args = ["%s", "hallo"];
+assert_program_args_stderr_gt!(&a_program, &a_args, &b_program, &b_args);
+//-> ()
+
+let a_program = "bin/printf-stderr";
+let a_args = ["%s", "hello"];
+let b_program = "bin/printf-stderr";
+let b_args = ["%s", "hullo"];
+assert_program_args_stderr_gt!(&a_program, &a_args, &b_program, &b_args);
+//-> panic!("…")
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_program_args_stderr_gt!(left_program, left_args, right_program, right_args)`\n",
+    "  left_program label: `&a_program`,\n",
+    "  left_program debug: `\"bin/printf-stderr\"`,\n",
+    "     left_args label: `&a_args`,\n",
+    "     left_args debug: `[\"%s\", \"hello\"]`,\n",
+    " right_program label: `&b_program`,\n",
+    " right_program debug: `\"bin/printf-stderr\"`,\n",
+    "    right_args label: `&b_args`,\n",
+    "    right_args debug: `[\"%s\", \"hullo\"]`,\n",
+    "                left: `\"hello\"`,\n",
+    "               right: `\"hullo\"`"
+);
+assert_eq!(actual, expect);
+

/// # Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_le/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stderr_gt/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stderr_le/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stderr_gt/sidebar-items.js diff --git a/doc/lib/assert_program_args/assert_program_args_stderr_gt_expr/index.html b/doc/lib/assert_program_args/assert_program_args_stderr_gt_expr/index.html new file mode 100644 index 000000000..4a200035a --- /dev/null +++ b/doc/lib/assert_program_args/assert_program_args_stderr_gt_expr/index.html @@ -0,0 +1,48 @@ +lib::assert_program_args::assert_program_args_stderr_gt_expr - Rust
Expand description

Assert a command (built with program and args) stderr string is greater than an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+

+// Return Ok
+let program = "bin/printf-stderr";
+let args = ["%s", "hello"];
+let s = String::from("hallo");
+assert_program_args_stderr_gt_expr!(&program, &args, s);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let program = "bin/printf-stderr";
+let args = ["%s", "hello"];
+let s = String::from("hullo");
+assert_program_args_stderr_gt_expr!(&program, &args, s);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_program_args_stderr_gt_expr!(left_program, left_args, right_expr)`\n",
+    " left_program label: `&program`,\n",
+    " left_program debug: `\"bin/printf-stderr\"`,\n",
+    "    left_args label: `&args`,\n",
+    "    left_args debug: `[\"%s\", \"hello\"]`,\n",
+    "   right_expr label: `s`,\n",
+    "   right_expr debug: `\"hullo\"`,\n",
+    "               left: `\"hello\"`,\n",
+    "              right: `\"hullo\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_le_expr/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stderr_gt_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stderr_le_expr/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stderr_gt_expr/sidebar-items.js diff --git a/doc/lib/assert_program_args/assert_program_args_stderr_is_match/index.html b/doc/lib/assert_program_args/assert_program_args_stderr_is_match/index.html new file mode 100644 index 000000000..2d0f4eac2 --- /dev/null +++ b/doc/lib/assert_program_args/assert_program_args_stderr_is_match/index.html @@ -0,0 +1,49 @@ +lib::assert_program_args::assert_program_args_stderr_is_match - Rust
Expand description

Assert a command (built with program and args) stderr string is a match to a regex.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use regex::Regex;
+
+// Return Ok
+let program = "bin/printf-stderr";
+let args = ["%s", "hello"];
+let matcher = Regex::new(r"ell").unwrap();
+assert_program_args_stderr_is_match!(&program, &args, matcher);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let program = "bin/printf-stderr";
+let args = ["%s", "hello"];
+let matcher = Regex::new(r"zzz").unwrap();
+assert_program_args_stderr_is_match!(&program, &args, matcher);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_program_args_stderr_is_match!(left_program, right_matcher)`\n",
+    "  left_program label: `&program`,\n",
+    "  left_program debug: `\"bin/printf-stderr\"`,\n",
+    "     left_args label: `&args`,\n",
+    "     left_args debug: `[\"%s\", \"hello\"]`,\n",
+    " right_matcher label: `matcher`,\n",
+    " right_matcher debug: `Regex(\"zzz\")`,\n",
+    "                left: `\"hello\"`,\n",
+    "               right: `Regex(\"zzz\")`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_lt/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stderr_is_match/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stderr_lt/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stderr_is_match/sidebar-items.js diff --git a/doc/lib/assert_program_args/assert_program_args_stderr_le/index.html b/doc/lib/assert_program_args/assert_program_args_stderr_le/index.html new file mode 100644 index 000000000..b798ec5b4 --- /dev/null +++ b/doc/lib/assert_program_args/assert_program_args_stderr_le/index.html @@ -0,0 +1,48 @@ +lib::assert_program_args::assert_program_args_stderr_le - Rust
Expand description

Assert a command (built with program and args) stderr string is less than or equal to another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+

+// Return Ok
+let a_program = "bin/printf-stderr";
+let a_args = ["%s", "hello"];
+let b_program = "bin/printf-stderr";
+let b_args = ["%s", "hullo"];
+assert_program_args_stderr_le!(&a_program, &a_args, &b_program, &b_args);
+//-> ()
+
+let a_program = "bin/printf-stderr";
+let a_args = ["%s", "hello"];
+let b_program = "bin/printf-stderr";
+let b_args = ["%s", "hallo"];
+assert_program_args_stderr_le!(&a_program, &a_args, &b_program, &b_args);
+//-> panic!("…")
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_program_args_stderr_le!(left_program, left_args, right_program, right_args)`\n",
+    "  left_program label: `&a_program`,\n",
+    "  left_program debug: `\"bin/printf-stderr\"`,\n",
+    "     left_args label: `&a_args`,\n",
+    "     left_args debug: `[\"%s\", \"hello\"]`,\n",
+    " right_program label: `&b_program`,\n",
+    " right_program debug: `\"bin/printf-stderr\"`,\n",
+    "    right_args label: `&b_args`,\n",
+    "    right_args debug: `[\"%s\", \"hallo\"]`,\n",
+    "                left: `\"hello\"`,\n",
+    "               right: `\"hallo\"`"
+);
+assert_eq!(actual, expect);
+

/// # Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_lt_expr/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stderr_le/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stderr_lt_expr/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stderr_le/sidebar-items.js diff --git a/doc/lib/assert_program_args/assert_program_args_stderr_le_expr/index.html b/doc/lib/assert_program_args/assert_program_args_stderr_le_expr/index.html new file mode 100644 index 000000000..17a95e440 --- /dev/null +++ b/doc/lib/assert_program_args/assert_program_args_stderr_le_expr/index.html @@ -0,0 +1,48 @@ +lib::assert_program_args::assert_program_args_stderr_le_expr - Rust
Expand description

Assert a command (built with program and args) stderr string is less than or equal to an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+

+// Return Ok
+let program = "bin/printf-stderr";
+let args = ["%s", "hello"];
+let s = String::from("hullo");
+assert_program_args_stderr_le_expr!(&program, &args, s);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let program = "bin/printf-stderr";
+let args = ["%s", "hello"];
+let s = String::from("hallo");
+assert_program_args_stderr_le_expr!(&program, &args, s);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_program_args_stderr_le_expr!(left_program, left_args, right_expr)`\n",
+    " left_program label: `&program`,\n",
+    " left_program debug: `\"bin/printf-stderr\"`,\n",
+    "    left_args label: `&args`,\n",
+    "    left_args debug: `[\"%s\", \"hello\"]`,\n",
+    "   right_expr label: `s`,\n",
+    "   right_expr debug: `\"hallo\"`,\n",
+    "               left: `\"hello\"`,\n",
+    "              right: `\"hallo\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_ne/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stderr_le_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stderr_ne/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stderr_le_expr/sidebar-items.js diff --git a/doc/lib/assert_program_args/assert_program_args_stderr_lt/index.html b/doc/lib/assert_program_args/assert_program_args_stderr_lt/index.html new file mode 100644 index 000000000..ff6e842fa --- /dev/null +++ b/doc/lib/assert_program_args/assert_program_args_stderr_lt/index.html @@ -0,0 +1,48 @@ +lib::assert_program_args::assert_program_args_stderr_lt - Rust
Expand description

Assert a command (built with program and args) stderr string is less than another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+

+// Return Ok
+let a_program = "bin/printf-stderr";
+let a_args = ["%s", "hello"];
+let b_program = "bin/printf-stderr";
+let b_args = ["%s", "hullo"];
+assert_program_args_stderr_lt!(&a_program, &a_args, &b_program, &b_args);
+//-> ()
+
+let a_program = "bin/printf-stderr";
+let a_args = ["%s", "hello"];
+let b_program = "bin/printf-stderr";
+let b_args = ["%s", "hallo"];
+assert_program_args_stderr_lt!(&a_program, &a_args, &b_program, &b_args);
+//-> panic!("…")
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_program_args_stderr_lt!(left_program, left_args, right_program, right_args)`\n",
+    "  left_program label: `&a_program`,\n",
+    "  left_program debug: `\"bin/printf-stderr\"`,\n",
+    "     left_args label: `&a_args`,\n",
+    "     left_args debug: `[\"%s\", \"hello\"]`,\n",
+    " right_program label: `&b_program`,\n",
+    " right_program debug: `\"bin/printf-stderr\"`,\n",
+    "    right_args label: `&b_args`,\n",
+    "    right_args debug: `[\"%s\", \"hallo\"]`,\n",
+    "                left: `\"hello\"`,\n",
+    "               right: `\"hallo\"`"
+);
+assert_eq!(actual, expect);
+

/// # Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_ne_expr/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stderr_lt/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stderr_ne_expr/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stderr_lt/sidebar-items.js diff --git a/doc/lib/assert_program_args/assert_program_args_stderr_lt_expr/index.html b/doc/lib/assert_program_args/assert_program_args_stderr_lt_expr/index.html new file mode 100644 index 000000000..71af78881 --- /dev/null +++ b/doc/lib/assert_program_args/assert_program_args_stderr_lt_expr/index.html @@ -0,0 +1,48 @@ +lib::assert_program_args::assert_program_args_stderr_lt_expr - Rust
Expand description

Assert a command (built with program and args) stderr string is less than an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+

+// Return Ok
+let program = "bin/printf-stderr";
+let args = ["%s", "hello"];
+let s = String::from("hullo");
+assert_program_args_stderr_lt_expr!(&program, &args, s);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let program = "bin/printf-stderr";
+let a_args = ["%s", "hello"];
+let s = String::from("hallo");
+assert_program_args_stderr_lt_expr!(&program, &args, s);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_program_args_stderr_lt_expr!(left_program, left_args, right_expr)`\n",
+    " left_program label: `&program`,\n",
+    " left_program debug: `\"bin/printf-stderr\"`,\n",
+    "    left_args label: `&args`,\n",
+    "    left_args debug: `[\"%s\", \"hello\"]`,\n",
+    "   right_expr label: `s`,\n",
+    "   right_expr debug: `\"hallo\"`,\n",
+    "               left: `\"hello\"`,\n",
+    "              right: `\"hallo\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stdout_contains/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stderr_lt_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stdout_contains/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stderr_lt_expr/sidebar-items.js diff --git a/doc/lib/assert_program_args/assert_program_args_stderr_ne/index.html b/doc/lib/assert_program_args/assert_program_args_stderr_ne/index.html new file mode 100644 index 000000000..ca9a0bae3 --- /dev/null +++ b/doc/lib/assert_program_args/assert_program_args_stderr_ne/index.html @@ -0,0 +1,48 @@ +lib::assert_program_args::assert_program_args_stderr_ne - Rust
Expand description

Assert a command (built with program and args) stderr string is not equal to another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+

+// Return Ok
+let a_program = "bin/printf-stderr";
+let a_args = ["%s", "hello"];
+let b_program = "bin/printf-stderr";
+let b_args = ["%s", "zzz"];
+assert_program_args_stderr_ne!(&a_program, &a_args, &b_program, &b_args);
+//-> ()
+
+let a_program = "bin/printf-stderr";
+let a_args = ["%s", "hello"];
+let b_program = "bin/printf-stderr";
+let b_args = ["%s", "hello"];
+assert_program_args_stderr_ne!(&a_program, &a_args, &b_program, &b_args);
+//-> panic!("…")
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_program_args_stderr_ne!(left_program, left_args, right_program, right_args)`\n",
+    "  left_program label: `&a_program`,\n",
+    "  left_program debug: `\"bin/printf-stderr\"`,\n",
+    "     left_args label: `&a_args`,\n",
+    "     left_args debug: `[\"%s\", \"hello\"]`,\n",
+    " right_program label: `&b_program`,\n",
+    " right_program debug: `\"bin/printf-stderr\"`,\n",
+    "    right_args label: `&b_args`,\n",
+    "    right_args debug: `[\"%s\", \"hello\"]`,\n",
+    "                left: `\"hello\"`,\n",
+    "               right: `\"hello\"`"
+);
+assert_eq!(actual, expect);
+

/// # Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stdout_eq/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stderr_ne/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stdout_eq/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stderr_ne/sidebar-items.js diff --git a/doc/lib/assert_program_args/assert_program_args_stderr_ne_expr/index.html b/doc/lib/assert_program_args/assert_program_args_stderr_ne_expr/index.html new file mode 100644 index 000000000..46df78b43 --- /dev/null +++ b/doc/lib/assert_program_args/assert_program_args_stderr_ne_expr/index.html @@ -0,0 +1,48 @@ +lib::assert_program_args::assert_program_args_stderr_ne_expr - Rust
Expand description

Assert a command (built with program and args) stderr string is not equal to an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+

+// Return Ok
+let program = "bin/printf-stderr";
+let args = ["%s", "hello"];
+let s = String::from("zzz");
+assert_program_args_stderr_ne_expr!(&program, &args, s);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let program = "bin/printf-stderr";
+let args = ["%s", "hello"];
+let s = String::from("hello");
+assert_program_args_stderr_ne_expr!(&program, &args, s);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_program_args_stderr_ne_expr!(left_program, left_args, right_expr)`\n",
+    " left_program label: `&program`,\n",
+    " left_program debug: `\"bin/printf-stderr\"`,\n",
+    "    left_args label: `&args`,\n",
+    "    left_args debug: `[\"%s\", \"hello\"]`,\n",
+    "   right_expr label: `s`,\n",
+    "   right_expr debug: `\"hello\"`,\n",
+    "               left: `\"hello\"`,\n",
+    "              right: `\"hello\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stdout_eq_expr/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stderr_ne_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stdout_eq_expr/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stderr_ne_expr/sidebar-items.js diff --git a/doc/lib/assert_program_args/assert_program_args_stdout_contains/index.html b/doc/lib/assert_program_args/assert_program_args_stdout_contains/index.html new file mode 100644 index 000000000..1dd43612a --- /dev/null +++ b/doc/lib/assert_program_args/assert_program_args_stdout_contains/index.html @@ -0,0 +1,53 @@ +lib::assert_program_args::assert_program_args_stdout_contains - Rust
Expand description

Assert a command (built with program and args) stdout string contains a given containee.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

This uses std::String method contains.

+
    +
  • The containee can be a &str, char, a slice of chars, or a function or +closure that determines if a character contains.
  • +
+

§Examples

+

+// Return Ok
+let program = "bin/printf-stdout";
+let args = ["%s", "hello"];
+let containee = "ell";
+assert_program_args_stdout_contains!(&program, &args, containee);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let program = "bin/printf-stdout";
+let args = ["%s", "hello"];
+let containee = "zzz";
+assert_program_args_stdout_contains!(&program, &args, containee);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_program_args_stdout_contains!(left_program, left_args, right_containee)`\n",
+    "    left_program label: `&program`,\n",
+    "    left_program debug: `\"bin/printf-stdout\"`,\n",
+    "       left_args label: `&args`,\n",
+    "       left_args debug: `[\"%s\", \"hello\"]`,\n",
+    " right_containee label: `containee`,\n",
+    " right_containee debug: `\"zzz\"`,\n",
+    "                  left: `\"hello\"`,\n",
+    "                 right: `\"zzz\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stdout_ge/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stdout_contains/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stdout_ge/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stdout_contains/sidebar-items.js diff --git a/doc/lib/assert_program_args_stdout_eq/index.html b/doc/lib/assert_program_args/assert_program_args_stdout_eq/index.html similarity index 51% rename from doc/lib/assert_program_args_stdout_eq/index.html rename to doc/lib/assert_program_args/assert_program_args_stdout_eq/index.html index aed70fba2..442eb363e 100644 --- a/doc/lib/assert_program_args_stdout_eq/index.html +++ b/doc/lib/assert_program_args/assert_program_args_stdout_eq/index.html @@ -1,4 +1,4 @@ -lib::assert_program_args_stdout_eq - Rust

Module lib::assert_program_args_stdout_eq

source ·
Expand description

Assert a command (built with program and args) stdout string is equal to another.

+lib::assert_program_args::assert_program_args_stdout_eq - Rust
Expand description

Assert a command (built with program and args) stdout string is equal to another.

  • If true, return ().

    @@ -45,8 +45,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_program_args_stdout_ge_expr/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stdout_eq/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stdout_ge_expr/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stdout_eq/sidebar-items.js diff --git a/doc/lib/assert_program_args/assert_program_args_stdout_eq_expr/index.html b/doc/lib/assert_program_args/assert_program_args_stdout_eq_expr/index.html new file mode 100644 index 000000000..fccd038b8 --- /dev/null +++ b/doc/lib/assert_program_args/assert_program_args_stdout_eq_expr/index.html @@ -0,0 +1,48 @@ +lib::assert_program_args::assert_program_args_stdout_eq_expr - Rust
Expand description

Assert a command (built with program and args) stdout string is equal to an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+

+// Return Ok
+let program = "bin/printf-stdout";
+let args = ["%s", "hello"];
+let s = "hello";
+assert_program_args_stdout_eq_expr!(&program, &args, s);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let program = "bin/printf-stdout";
+let args = ["%s", "hello"];
+let s = String::from("zzz");
+assert_program_args_stdout_eq_expr!(&program, &args, s);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_program_args_stdout_eq_expr!(left_program, left_args, right_expr)`\n",
+    " left_program label: `&program`,\n",
+    " left_program debug: `\"bin/printf-stdout\"`,\n",
+    "    left_args label: `&args`,\n",
+    "    left_args debug: `[\"%s\", \"hello\"]`,\n",
+    "   right_expr label: `s`,\n",
+    "   right_expr debug: `\"zzz\"`,\n",
+    "               left: `\"hello\"`,\n",
+    "              right: `\"zzz\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stdout_gt/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stdout_eq_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stdout_gt/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stdout_eq_expr/sidebar-items.js diff --git a/doc/lib/assert_program_args_stdout_ge/index.html b/doc/lib/assert_program_args/assert_program_args_stdout_ge/index.html similarity index 52% rename from doc/lib/assert_program_args_stdout_ge/index.html rename to doc/lib/assert_program_args/assert_program_args_stdout_ge/index.html index f98657d1d..b38e288bc 100644 --- a/doc/lib/assert_program_args_stdout_ge/index.html +++ b/doc/lib/assert_program_args/assert_program_args_stdout_ge/index.html @@ -1,4 +1,4 @@ -lib::assert_program_args_stdout_ge - Rust

Module lib::assert_program_args_stdout_ge

source ·
Expand description

Assert a command (built with program and args) stdout string is greater than or equal to another.

+lib::assert_program_args::assert_program_args_stdout_ge - Rust
Expand description

Assert a command (built with program and args) stdout string is greater than or equal to another.

  • If true, return ().

    @@ -45,8 +45,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_program_args_stdout_gt_expr/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stdout_ge/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stdout_gt_expr/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stdout_ge/sidebar-items.js diff --git a/doc/lib/assert_program_args/assert_program_args_stdout_ge_expr/index.html b/doc/lib/assert_program_args/assert_program_args_stdout_ge_expr/index.html new file mode 100644 index 000000000..5a6b6910f --- /dev/null +++ b/doc/lib/assert_program_args/assert_program_args_stdout_ge_expr/index.html @@ -0,0 +1,48 @@ +lib::assert_program_args::assert_program_args_stdout_ge_expr - Rust
Expand description

Assert a command (built with program and args) stdout string is greater than or equal to an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+

+// Return Ok
+let program = "bin/printf-stdout";
+let args = ["%s", "hello"];
+let s = String::from("hello");
+assert_program_args_stdout_ge_expr!(&program, &args, s);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let program = "bin/printf-stdout";
+let args = ["%s", "hello"];
+let s = String::from("zzz");
+assert_program_args_stdout_ge_expr!(&program, &args, s);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_program_args_stdout_ge_expr!(left_program, left_args, right_expr)`\n",
+    " left_program label: `&program`,\n",
+    " left_program debug: `\"bin/printf-stdout\"`,\n",
+    "    left_args label: `&args`,\n",
+    "    left_args debug: `[\"%s\", \"hello\"]`,\n",
+    "   right_expr label: `s`,\n",
+    "   right_expr debug: `\"zzz\"`,\n",
+    "               left: `\"hello\"`,\n",
+    "              right: `\"zzz\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stdout_is_match/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stdout_ge_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stdout_is_match/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stdout_ge_expr/sidebar-items.js diff --git a/doc/lib/assert_program_args_stdout_gt/index.html b/doc/lib/assert_program_args/assert_program_args_stdout_gt/index.html similarity index 52% rename from doc/lib/assert_program_args_stdout_gt/index.html rename to doc/lib/assert_program_args/assert_program_args_stdout_gt/index.html index af2532f89..6a63c42f6 100644 --- a/doc/lib/assert_program_args_stdout_gt/index.html +++ b/doc/lib/assert_program_args/assert_program_args_stdout_gt/index.html @@ -1,4 +1,4 @@ -lib::assert_program_args_stdout_gt - Rust

Module lib::assert_program_args_stdout_gt

source ·
Expand description

Assert a command (built with program and args) stdout string is greater than another.

+lib::assert_program_args::assert_program_args_stdout_gt - Rust
Expand description

Assert a command (built with program and args) stdout string is greater than another.

  • If true, return ().

    @@ -45,8 +45,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_program_args_stdout_le/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stdout_gt/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stdout_le/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stdout_gt/sidebar-items.js diff --git a/doc/lib/assert_program_args/assert_program_args_stdout_gt_expr/index.html b/doc/lib/assert_program_args/assert_program_args_stdout_gt_expr/index.html new file mode 100644 index 000000000..6f7d327b4 --- /dev/null +++ b/doc/lib/assert_program_args/assert_program_args_stdout_gt_expr/index.html @@ -0,0 +1,48 @@ +lib::assert_program_args::assert_program_args_stdout_gt_expr - Rust
Expand description

Assert a command (built with program and args) stdout string is greater than an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+

+// Return Ok
+let program = "bin/printf-stdout";
+let args = ["%s", "hello"];
+let s = String::from("hallo");
+assert_program_args_stdout_gt_expr!(&program, &args, s);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let program = "bin/printf-stdout";
+let args = ["%s", "hello"];
+let s = String::from("hullo");
+assert_program_args_stdout_gt_expr!(&program, &args, s);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_program_args_stdout_gt_expr!(left_program, left_args, right_expr)`\n",
+    " left_program label: `&program`,\n",
+    " left_program debug: `\"bin/printf-stdout\"`,\n",
+    "    left_args label: `&args`,\n",
+    "    left_args debug: `[\"%s\", \"hello\"]`,\n",
+    "   right_expr label: `s`,\n",
+    "   right_expr debug: `\"hullo\"`,\n",
+    "               left: `\"hello\"`,\n",
+    "              right: `\"hullo\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stdout_le_expr/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stdout_gt_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stdout_le_expr/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stdout_gt_expr/sidebar-items.js diff --git a/doc/lib/assert_program_args/assert_program_args_stdout_is_match/index.html b/doc/lib/assert_program_args/assert_program_args_stdout_is_match/index.html new file mode 100644 index 000000000..0532be24f --- /dev/null +++ b/doc/lib/assert_program_args/assert_program_args_stdout_is_match/index.html @@ -0,0 +1,49 @@ +lib::assert_program_args::assert_program_args_stdout_is_match - Rust
Expand description

Assert a command (built with program and args) stdout string is a match to a regex.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
use regex::Regex;
+
+// Return Ok
+let program = "bin/printf-stdout";
+let args = ["%s", "hello"];
+let matcher = Regex::new(r"el").unwrap();
+assert_program_args_stdout_is_match!(&program, &args, matcher);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let program = "bin/printf-stdout";
+let args = ["%s", "hello"];
+let matcher = Regex::new(r"zzz").unwrap();
+assert_program_args_stdout_is_match!(&program, &args, matcher);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_program_args_stdout_is_match!(left_program, right_matcher)`\n",
+    "  left_program label: `&program`,\n",
+    "  left_program debug: `\"bin/printf-stdout\"`,\n",
+    "     left_args label: `&args`,\n",
+    "     left_args debug: `[\"%s\", \"hello\"]`,\n",
+    " right_matcher label: `matcher`,\n",
+    " right_matcher debug: `Regex(\"zzz\")`,\n",
+    "                left: `\"hello\"`,\n",
+    "               right: `Regex(\"zzz\")`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stdout_lt/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stdout_is_match/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stdout_lt/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stdout_is_match/sidebar-items.js diff --git a/doc/lib/assert_program_args_stdout_le/index.html b/doc/lib/assert_program_args/assert_program_args_stdout_le/index.html similarity index 52% rename from doc/lib/assert_program_args_stdout_le/index.html rename to doc/lib/assert_program_args/assert_program_args_stdout_le/index.html index de9afdaa7..7245cfdf6 100644 --- a/doc/lib/assert_program_args_stdout_le/index.html +++ b/doc/lib/assert_program_args/assert_program_args_stdout_le/index.html @@ -1,4 +1,4 @@ -lib::assert_program_args_stdout_le - Rust

Module lib::assert_program_args_stdout_le

source ·
Expand description

Assert a command (built with program and args) stdout string is less than or equal to another.

+lib::assert_program_args::assert_program_args_stdout_le - Rust
Expand description

Assert a command (built with program and args) stdout string is less than or equal to another.

  • If true, return ().

    @@ -45,8 +45,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_program_args_stdout_lt_expr/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stdout_le/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stdout_lt_expr/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stdout_le/sidebar-items.js diff --git a/doc/lib/assert_program_args/assert_program_args_stdout_le_expr/index.html b/doc/lib/assert_program_args/assert_program_args_stdout_le_expr/index.html new file mode 100644 index 000000000..a3a419872 --- /dev/null +++ b/doc/lib/assert_program_args/assert_program_args_stdout_le_expr/index.html @@ -0,0 +1,48 @@ +lib::assert_program_args::assert_program_args_stdout_le_expr - Rust
Expand description

Assert a command (built with program and args) stdout string is less than or equal to an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+

+// Return Ok
+let program = "bin/printf-stdout";
+let args = ["%s", "hello"];
+let s = String::from("hullo");
+assert_program_args_stdout_le_expr!(&program, &args, s);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let program = "bin/printf-stdout";
+let args = ["%s", "hello"];
+let s = String::from("hallo");
+assert_program_args_stdout_le_expr!(&program, &args, s);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_program_args_stdout_le_expr!(left_program, left_args, right_expr)`\n",
+    " left_program label: `&program`,\n",
+    " left_program debug: `\"bin/printf-stdout\"`,\n",
+    "    left_args label: `&args`,\n",
+    "    left_args debug: `[\"%s\", \"hello\"]`,\n",
+    "   right_expr label: `s`,\n",
+    "   right_expr debug: `\"hallo\"`,\n",
+    "               left: `\"hello\"`,\n",
+    "              right: `\"hallo\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stdout_ne/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stdout_le_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stdout_ne/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stdout_le_expr/sidebar-items.js diff --git a/doc/lib/assert_program_args_stdout_lt/index.html b/doc/lib/assert_program_args/assert_program_args_stdout_lt/index.html similarity index 52% rename from doc/lib/assert_program_args_stdout_lt/index.html rename to doc/lib/assert_program_args/assert_program_args_stdout_lt/index.html index d77033907..beb8d28d8 100644 --- a/doc/lib/assert_program_args_stdout_lt/index.html +++ b/doc/lib/assert_program_args/assert_program_args_stdout_lt/index.html @@ -1,4 +1,4 @@ -lib::assert_program_args_stdout_lt - Rust

Module lib::assert_program_args_stdout_lt

source ·
Expand description

Assert a command (built with program and args) stdout string is less than another.

+lib::assert_program_args::assert_program_args_stdout_lt - Rust
Expand description

Assert a command (built with program and args) stdout string is less than another.

  • If true, return ().

    @@ -45,8 +45,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_program_args_stdout_ne_expr/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stdout_lt/sidebar-items.js similarity index 100% rename from doc/lib/assert_program_args_stdout_ne_expr/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stdout_lt/sidebar-items.js diff --git a/doc/lib/assert_program_args/assert_program_args_stdout_lt_expr/index.html b/doc/lib/assert_program_args/assert_program_args_stdout_lt_expr/index.html new file mode 100644 index 000000000..fcc00251e --- /dev/null +++ b/doc/lib/assert_program_args/assert_program_args_stdout_lt_expr/index.html @@ -0,0 +1,48 @@ +lib::assert_program_args::assert_program_args_stdout_lt_expr - Rust
Expand description

Assert a command (built with program and args) stdout string is less than an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+

+// Return Ok
+let program = "bin/printf-stdout";
+let args = ["%s", "hello"];
+let s = String::from("hullo");
+assert_program_args_stdout_lt_expr!(&program, &args, s);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let program = "bin/printf-stdout";
+let args = ["%s", "hello"];
+let s = String::from("hallo");
+assert_program_args_stdout_lt_expr!(&program, &args, s);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_program_args_stdout_lt_expr!(left_program, left_args, right_expr)`\n",
+    " left_program label: `&program`,\n",
+    " left_program debug: `\"bin/printf-stdout\"`,\n",
+    "    left_args label: `&args`,\n",
+    "    left_args debug: `[\"%s\", \"hello\"]`,\n",
+    "   right_expr label: `s`,\n",
+    "   right_expr debug: `\"hallo\"`,\n",
+    "               left: `\"hello\"`,\n",
+    "              right: `\"hallo\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_set_disjoint/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stdout_lt_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_set_disjoint/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stdout_lt_expr/sidebar-items.js diff --git a/doc/lib/assert_program_args_stdout_ne/index.html b/doc/lib/assert_program_args/assert_program_args_stdout_ne/index.html similarity index 52% rename from doc/lib/assert_program_args_stdout_ne/index.html rename to doc/lib/assert_program_args/assert_program_args_stdout_ne/index.html index b2e1bbad7..0b7edb2e3 100644 --- a/doc/lib/assert_program_args_stdout_ne/index.html +++ b/doc/lib/assert_program_args/assert_program_args_stdout_ne/index.html @@ -1,4 +1,4 @@ -lib::assert_program_args_stdout_ne - Rust

Module lib::assert_program_args_stdout_ne

source ·
Expand description

Assert a command (built with program and args) stdout string is not equal to another.

+lib::assert_program_args::assert_program_args_stdout_ne - Rust
Expand description

Assert a command (built with program and args) stdout string is not equal to another.

  • If true, return ().

    @@ -45,8 +45,8 @@

    §Examples

    assert_eq!(actual, expect);

§Module macros

\ No newline at end of file diff --git a/doc/lib/assert_set_eq/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stdout_ne/sidebar-items.js similarity index 100% rename from doc/lib/assert_set_eq/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stdout_ne/sidebar-items.js diff --git a/doc/lib/assert_program_args/assert_program_args_stdout_ne_expr/index.html b/doc/lib/assert_program_args/assert_program_args_stdout_ne_expr/index.html new file mode 100644 index 000000000..f49fc5c10 --- /dev/null +++ b/doc/lib/assert_program_args/assert_program_args_stdout_ne_expr/index.html @@ -0,0 +1,48 @@ +lib::assert_program_args::assert_program_args_stdout_ne_expr - Rust
Expand description

Assert a command (built with program and args) stdout string is not equal to an expression.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+

+// Return Ok
+let program = "bin/printf-stdout";
+let args = ["%s", "hello"];
+let s = String::from("zzz");
+assert_program_args_stdout_ne_expr!(&program, &args, s);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let program = "bin/printf-stdout";
+let args = ["%s", "hello"];
+let s = String::from("hello");
+assert_program_args_stdout_ne_expr!(&program, &args, s);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_program_args_stdout_ne_expr!(left_program, left_args, right_expr)`\n",
+    " left_program label: `&program`,\n",
+    " left_program debug: `\"bin/printf-stdout\"`,\n",
+    "    left_args label: `&args`,\n",
+    "    left_args debug: `[\"%s\", \"hello\"]`,\n",
+    "   right_expr label: `s`,\n",
+    "   right_expr debug: `\"hello\"`,\n",
+    "               left: `\"hello\"`,\n",
+    "              right: `\"hello\"`"
+);
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_set_joint/sidebar-items.js b/doc/lib/assert_program_args/assert_program_args_stdout_ne_expr/sidebar-items.js similarity index 100% rename from doc/lib/assert_set_joint/sidebar-items.js rename to doc/lib/assert_program_args/assert_program_args_stdout_ne_expr/sidebar-items.js diff --git a/doc/lib/assert_program_args/index.html b/doc/lib/assert_program_args/index.html new file mode 100644 index 000000000..5be4b34dc --- /dev/null +++ b/doc/lib/assert_program_args/index.html @@ -0,0 +1,41 @@ +lib::assert_program_args - Rust

Module lib::assert_program_args

source ·
Expand description

Assert macros for comparing programs with arguments.

+

These macros help with calling external programs with arguments, then +capturing the standard output stream and standard error stream.

+

These macros have corresponding macros in the module assert_command.

+

Compare command using program and arguments to standard output:

+ +

Compare command using program and arguments to standard output:

+ +

§Example

+
let a_program = "bin/printf-stdout";
+let a_args = ["%s", "hello"];
+let b_program = "bin/printf-stdout";
+let b_args = ["%s%s%s%s%s", "h", "e", "l", "l", "o"];
+assert_program_args_stdout_eq!(&a_program, &a_args, &b_program, &b_args);
+

Modules§

\ No newline at end of file diff --git a/doc/lib/assert_program_args/sidebar-items.js b/doc/lib/assert_program_args/sidebar-items.js new file mode 100644 index 000000000..223f335b7 --- /dev/null +++ b/doc/lib/assert_program_args/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"mod":["assert_program_args_stderr_contains","assert_program_args_stderr_eq","assert_program_args_stderr_eq_expr","assert_program_args_stderr_ge","assert_program_args_stderr_ge_expr","assert_program_args_stderr_gt","assert_program_args_stderr_gt_expr","assert_program_args_stderr_is_match","assert_program_args_stderr_le","assert_program_args_stderr_le_expr","assert_program_args_stderr_lt","assert_program_args_stderr_lt_expr","assert_program_args_stderr_ne","assert_program_args_stderr_ne_expr","assert_program_args_stdout_contains","assert_program_args_stdout_eq","assert_program_args_stdout_eq_expr","assert_program_args_stdout_ge","assert_program_args_stdout_ge_expr","assert_program_args_stdout_gt","assert_program_args_stdout_gt_expr","assert_program_args_stdout_is_match","assert_program_args_stdout_le","assert_program_args_stdout_le_expr","assert_program_args_stdout_lt","assert_program_args_stdout_lt_expr","assert_program_args_stdout_ne","assert_program_args_stdout_ne_expr"]}; \ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_contains/index.html b/doc/lib/assert_program_args_stderr_contains/index.html deleted file mode 100644 index 457225b88..000000000 --- a/doc/lib/assert_program_args_stderr_contains/index.html +++ /dev/null @@ -1,53 +0,0 @@ -lib::assert_program_args_stderr_contains - Rust

Module lib::assert_program_args_stderr_contains

source ·
Expand description

Assert a command (built with program and args) stderr string contains a given containee.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

This uses std::String method contains.

-
    -
  • The containee can be a &str, char, a slice of chars, or a function or -closure that determines if a character contains.
  • -
-

§Examples

-

-// Return Ok
-let program = "bin/printf-stderr";
-let args = ["%s", "hello"];
-let containee = "ell";
-assert_program_args_stderr_contains!(&program, &args, containee);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let program = "bin/printf-stderr";
-let args = ["%s", "hello"];
-let containee = "zzz";
-assert_program_args_stderr_contains!(&program, &args, containee);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_program_args_stderr_contains!(left_program, left_args, right_containee)`\n",
-    "    left_program label: `&program`,\n",
-    "    left_program debug: `\"bin/printf-stderr\"`,\n",
-    "       left_args label: `&args`,\n",
-    "       left_args debug: `[\"%s\", \"hello\"]`,\n",
-    " right_containee label: `containee`,\n",
-    " right_containee debug: `\"zzz\"`,\n",
-    "                  left: `\"hello\"`,\n",
-    "                 right: `\"zzz\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_eq/index.html b/doc/lib/assert_program_args_stderr_eq/index.html deleted file mode 100644 index 484eb37f6..000000000 --- a/doc/lib/assert_program_args_stderr_eq/index.html +++ /dev/null @@ -1,48 +0,0 @@ -lib::assert_program_args_stderr_eq - Rust

Module lib::assert_program_args_stderr_eq

source ·
Expand description

Assert a command (built with program and args) stderr string is equal to another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-

-// Return Ok
-let a_program = "bin/printf-stderr";
-let a_args = ["%s", "hello"];
-let b_program = "bin/printf-stderr";
-let b_args = ["%s", "hello"];
-assert_program_args_stderr_eq!(&a_program, &a_args, &b_program, &b_args);
-//-> ()
-
-let a_program = "bin/printf-stderr";
-let a_args = ["%s", "hello"];
-let b_program = "bin/printf-stderr";
-let b_args = ["%s", "zzz"];
-assert_program_args_stderr_eq!(&a_program, &a_args, &b_program, &b_args);
-//-> panic!("…")
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_program_args_stderr_eq!(left_program, left_args, right_program, right_args)`\n",
-    "  left_program label: `&a_program`,\n",
-    "  left_program debug: `\"bin/printf-stderr\"`,\n",
-    "     left_args label: `&a_args`,\n",
-    "     left_args debug: `[\"%s\", \"hello\"]`,\n",
-    " right_program label: `&b_program`,\n",
-    " right_program debug: `\"bin/printf-stderr\"`,\n",
-    "    right_args label: `&b_args`,\n",
-    "    right_args debug: `[\"%s\", \"zzz\"]`,\n",
-    "                left: `\"hello\"`,\n",
-    "               right: `\"zzz\"`"
-);
-assert_eq!(actual, expect);
-

/// # Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_eq_expr/index.html b/doc/lib/assert_program_args_stderr_eq_expr/index.html deleted file mode 100644 index 11ae623d8..000000000 --- a/doc/lib/assert_program_args_stderr_eq_expr/index.html +++ /dev/null @@ -1,48 +0,0 @@ -lib::assert_program_args_stderr_eq_expr - Rust

Module lib::assert_program_args_stderr_eq_expr

source ·
Expand description

Assert a command (built with program and args) stderr string is equal to an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-

-// Return Ok
-let program = "bin/printf-stderr";
-let args = ["%s", "hello"];
-let s = String::from("hello");
-assert_program_args_stderr_eq_expr!(&program, &args, s);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let program = "bin/printf-stderr";
-let args = ["%s", "hello"];
-let s = String::from("zzz");
-assert_program_args_stderr_eq_expr!(&program, &args, s);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_program_args_stderr_eq_expr!(left_program, left_args, right_expr)`\n",
-    " left_program label: `&program`,\n",
-    " left_program debug: `\"bin/printf-stderr\"`,\n",
-    "    left_args label: `&args`,\n",
-    "    left_args debug: `[\"%s\", \"hello\"]`,\n",
-    "   right_expr label: `s`,\n",
-    "   right_expr debug: `\"zzz\"`,\n",
-    "               left: `\"hello\"`,\n",
-    "              right: `\"zzz\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_ge/index.html b/doc/lib/assert_program_args_stderr_ge/index.html deleted file mode 100644 index 03b73c2c8..000000000 --- a/doc/lib/assert_program_args_stderr_ge/index.html +++ /dev/null @@ -1,48 +0,0 @@ -lib::assert_program_args_stderr_ge - Rust

Module lib::assert_program_args_stderr_ge

source ·
Expand description

Assert a command (built with program and args) stderr string is greater than or equal to another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-

-// Return Ok
-let a_program = "bin/printf-stderr";
-let a_args = ["%s", "hello"];
-let b_program = "bin/printf-stderr";
-let b_args = ["%s", "hallo"];
-assert_program_args_stderr_ge!(&a_program, &a_args, &b_program, &b_args);
-//-> ()
-
-let a_program = "bin/printf-stderr";
-let a_args = ["%s", "hello"];
-let b_program = "bin/printf-stderr";
-let b_args = ["%s", "hullo"];
-assert_program_args_stderr_ge!(&a_program, &a_args, &b_program, &b_args);
-//-> panic!("…")
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_program_args_stderr_ge!(left_program, left_args, right_program, right_args)`\n",
-    "  left_program label: `&a_program`,\n",
-    "  left_program debug: `\"bin/printf-stderr\"`,\n",
-    "     left_args label: `&a_args`,\n",
-    "     left_args debug: `[\"%s\", \"hello\"]`,\n",
-    " right_program label: `&b_program`,\n",
-    " right_program debug: `\"bin/printf-stderr\"`,\n",
-    "    right_args label: `&b_args`,\n",
-    "    right_args debug: `[\"%s\", \"hullo\"]`,\n",
-    "                left: `\"hello\"`,\n",
-    "               right: `\"hullo\"`"
-);
-assert_eq!(actual, expect);
-

/// # Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_ge_expr/index.html b/doc/lib/assert_program_args_stderr_ge_expr/index.html deleted file mode 100644 index 4e79a5e16..000000000 --- a/doc/lib/assert_program_args_stderr_ge_expr/index.html +++ /dev/null @@ -1,23 +0,0 @@ -lib::assert_program_args_stderr_ge_expr - Rust

Module lib::assert_program_args_stderr_ge_expr

source ·
Expand description

Assert a command (built with program and args) stderr string is greater than or equal to an expression.

-

This macro provides the same statements as assert_program_args_stderr_ge_expr, -except this macro’s statements are only enabled in non-optimized -builds by default. An optimized build will not execute this macro’s -statements unless -C debug-assertions is passed to the compiler.

-

This macro is useful for checks that are too expensive to be present -in a release build but may be helpful during development.

-

The result of expanding this macro is always type checked.

-

An unchecked assertion allows a program in an inconsistent state to -keep running, which might have unexpected consequences but does not -introduce unsafety as long as this only happens in safe code. The -performance cost of assertions, however, is not measurable in general. -Replacing assert*! with debug_assert*! is thus only encouraged -after thorough profiling, and more importantly, only in safe code!

-

This macro is intended to work in a similar way to -std::debug_assert.

-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_gt/index.html b/doc/lib/assert_program_args_stderr_gt/index.html deleted file mode 100644 index d77b5de8d..000000000 --- a/doc/lib/assert_program_args_stderr_gt/index.html +++ /dev/null @@ -1,48 +0,0 @@ -lib::assert_program_args_stderr_gt - Rust

Module lib::assert_program_args_stderr_gt

source ·
Expand description

Assert a command (built with program and args) stderr string is greater than to another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-

-// Return Ok
-let a_program = "bin/printf-stderr";
-let a_args = ["%s", "hello"];
-let b_program = "bin/printf-stderr";
-let b_args = ["%s", "hallo"];
-assert_program_args_stderr_gt!(&a_program, &a_args, &b_program, &b_args);
-//-> ()
-
-let a_program = "bin/printf-stderr";
-let a_args = ["%s", "hello"];
-let b_program = "bin/printf-stderr";
-let b_args = ["%s", "hullo"];
-assert_program_args_stderr_gt!(&a_program, &a_args, &b_program, &b_args);
-//-> panic!("…")
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_program_args_stderr_gt!(left_program, left_args, right_program, right_args)`\n",
-    "  left_program label: `&a_program`,\n",
-    "  left_program debug: `\"bin/printf-stderr\"`,\n",
-    "     left_args label: `&a_args`,\n",
-    "     left_args debug: `[\"%s\", \"hello\"]`,\n",
-    " right_program label: `&b_program`,\n",
-    " right_program debug: `\"bin/printf-stderr\"`,\n",
-    "    right_args label: `&b_args`,\n",
-    "    right_args debug: `[\"%s\", \"hullo\"]`,\n",
-    "                left: `\"hello\"`,\n",
-    "               right: `\"hullo\"`"
-);
-assert_eq!(actual, expect);
-

/// # Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_gt_expr/index.html b/doc/lib/assert_program_args_stderr_gt_expr/index.html deleted file mode 100644 index 2da61b41f..000000000 --- a/doc/lib/assert_program_args_stderr_gt_expr/index.html +++ /dev/null @@ -1,48 +0,0 @@ -lib::assert_program_args_stderr_gt_expr - Rust

Module lib::assert_program_args_stderr_gt_expr

source ·
Expand description

Assert a command (built with program and args) stderr string is greater than an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-

-// Return Ok
-let program = "bin/printf-stderr";
-let args = ["%s", "hello"];
-let s = String::from("hallo");
-assert_program_args_stderr_gt_expr!(&program, &args, s);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let program = "bin/printf-stderr";
-let args = ["%s", "hello"];
-let s = String::from("hullo");
-assert_program_args_stderr_gt_expr!(&program, &args, s);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_program_args_stderr_gt_expr!(left_program, left_args, right_expr)`\n",
-    " left_program label: `&program`,\n",
-    " left_program debug: `\"bin/printf-stderr\"`,\n",
-    "    left_args label: `&args`,\n",
-    "    left_args debug: `[\"%s\", \"hello\"]`,\n",
-    "   right_expr label: `s`,\n",
-    "   right_expr debug: `\"hullo\"`,\n",
-    "               left: `\"hello\"`,\n",
-    "              right: `\"hullo\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_is_match/index.html b/doc/lib/assert_program_args_stderr_is_match/index.html deleted file mode 100644 index 77fd9b4e9..000000000 --- a/doc/lib/assert_program_args_stderr_is_match/index.html +++ /dev/null @@ -1,49 +0,0 @@ -lib::assert_program_args_stderr_is_match - Rust

Module lib::assert_program_args_stderr_is_match

source ·
Expand description

Assert a command (built with program and args) stderr string is a match to a regex.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use regex::Regex;
-
-// Return Ok
-let program = "bin/printf-stderr";
-let args = ["%s", "hello"];
-let matcher = Regex::new(r"ell").unwrap();
-assert_program_args_stderr_is_match!(&program, &args, matcher);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let program = "bin/printf-stderr";
-let args = ["%s", "hello"];
-let matcher = Regex::new(r"zzz").unwrap();
-assert_program_args_stderr_is_match!(&program, &args, matcher);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_program_args_stderr_is_match!(left_program, right_matcher)`\n",
-    "  left_program label: `&program`,\n",
-    "  left_program debug: `\"bin/printf-stderr\"`,\n",
-    "     left_args label: `&args`,\n",
-    "     left_args debug: `[\"%s\", \"hello\"]`,\n",
-    " right_matcher label: `matcher`,\n",
-    " right_matcher debug: `Regex(\"zzz\")`,\n",
-    "                left: `\"hello\"`,\n",
-    "               right: `Regex(\"zzz\")`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_le/index.html b/doc/lib/assert_program_args_stderr_le/index.html deleted file mode 100644 index 9b72efe8f..000000000 --- a/doc/lib/assert_program_args_stderr_le/index.html +++ /dev/null @@ -1,48 +0,0 @@ -lib::assert_program_args_stderr_le - Rust

Module lib::assert_program_args_stderr_le

source ·
Expand description

Assert a command (built with program and args) stderr string is less than or equal to another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-

-// Return Ok
-let a_program = "bin/printf-stderr";
-let a_args = ["%s", "hello"];
-let b_program = "bin/printf-stderr";
-let b_args = ["%s", "hullo"];
-assert_program_args_stderr_le!(&a_program, &a_args, &b_program, &b_args);
-//-> ()
-
-let a_program = "bin/printf-stderr";
-let a_args = ["%s", "hello"];
-let b_program = "bin/printf-stderr";
-let b_args = ["%s", "hallo"];
-assert_program_args_stderr_le!(&a_program, &a_args, &b_program, &b_args);
-//-> panic!("…")
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_program_args_stderr_le!(left_program, left_args, right_program, right_args)`\n",
-    "  left_program label: `&a_program`,\n",
-    "  left_program debug: `\"bin/printf-stderr\"`,\n",
-    "     left_args label: `&a_args`,\n",
-    "     left_args debug: `[\"%s\", \"hello\"]`,\n",
-    " right_program label: `&b_program`,\n",
-    " right_program debug: `\"bin/printf-stderr\"`,\n",
-    "    right_args label: `&b_args`,\n",
-    "    right_args debug: `[\"%s\", \"hallo\"]`,\n",
-    "                left: `\"hello\"`,\n",
-    "               right: `\"hallo\"`"
-);
-assert_eq!(actual, expect);
-

/// # Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_le_expr/index.html b/doc/lib/assert_program_args_stderr_le_expr/index.html deleted file mode 100644 index bb3cf4e65..000000000 --- a/doc/lib/assert_program_args_stderr_le_expr/index.html +++ /dev/null @@ -1,48 +0,0 @@ -lib::assert_program_args_stderr_le_expr - Rust

Module lib::assert_program_args_stderr_le_expr

source ·
Expand description

Assert a command (built with program and args) stderr string is less than or equal to an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-

-// Return Ok
-let program = "bin/printf-stderr";
-let args = ["%s", "hello"];
-let s = String::from("hullo");
-assert_program_args_stderr_le_expr!(&program, &args, s);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let program = "bin/printf-stderr";
-let args = ["%s", "hello"];
-let s = String::from("hallo");
-assert_program_args_stderr_le_expr!(&program, &args, s);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_program_args_stderr_le_expr!(left_program, left_args, right_expr)`\n",
-    " left_program label: `&program`,\n",
-    " left_program debug: `\"bin/printf-stderr\"`,\n",
-    "    left_args label: `&args`,\n",
-    "    left_args debug: `[\"%s\", \"hello\"]`,\n",
-    "   right_expr label: `s`,\n",
-    "   right_expr debug: `\"hallo\"`,\n",
-    "               left: `\"hello\"`,\n",
-    "              right: `\"hallo\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_lt/index.html b/doc/lib/assert_program_args_stderr_lt/index.html deleted file mode 100644 index 2b23403db..000000000 --- a/doc/lib/assert_program_args_stderr_lt/index.html +++ /dev/null @@ -1,48 +0,0 @@ -lib::assert_program_args_stderr_lt - Rust

Module lib::assert_program_args_stderr_lt

source ·
Expand description

Assert a command (built with program and args) stderr string is less than another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-

-// Return Ok
-let a_program = "bin/printf-stderr";
-let a_args = ["%s", "hello"];
-let b_program = "bin/printf-stderr";
-let b_args = ["%s", "hullo"];
-assert_program_args_stderr_lt!(&a_program, &a_args, &b_program, &b_args);
-//-> ()
-
-let a_program = "bin/printf-stderr";
-let a_args = ["%s", "hello"];
-let b_program = "bin/printf-stderr";
-let b_args = ["%s", "hallo"];
-assert_program_args_stderr_lt!(&a_program, &a_args, &b_program, &b_args);
-//-> panic!("…")
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_program_args_stderr_lt!(left_program, left_args, right_program, right_args)`\n",
-    "  left_program label: `&a_program`,\n",
-    "  left_program debug: `\"bin/printf-stderr\"`,\n",
-    "     left_args label: `&a_args`,\n",
-    "     left_args debug: `[\"%s\", \"hello\"]`,\n",
-    " right_program label: `&b_program`,\n",
-    " right_program debug: `\"bin/printf-stderr\"`,\n",
-    "    right_args label: `&b_args`,\n",
-    "    right_args debug: `[\"%s\", \"hallo\"]`,\n",
-    "                left: `\"hello\"`,\n",
-    "               right: `\"hallo\"`"
-);
-assert_eq!(actual, expect);
-

/// # Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_lt_expr/index.html b/doc/lib/assert_program_args_stderr_lt_expr/index.html deleted file mode 100644 index d9f454d0d..000000000 --- a/doc/lib/assert_program_args_stderr_lt_expr/index.html +++ /dev/null @@ -1,48 +0,0 @@ -lib::assert_program_args_stderr_lt_expr - Rust

Module lib::assert_program_args_stderr_lt_expr

source ·
Expand description

Assert a command (built with program and args) stderr string is less than an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-

-// Return Ok
-let program = "bin/printf-stderr";
-let args = ["%s", "hello"];
-let s = String::from("hullo");
-assert_program_args_stderr_lt_expr!(&program, &args, s);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let program = "bin/printf-stderr";
-let a_args = ["%s", "hello"];
-let s = String::from("hallo");
-assert_program_args_stderr_lt_expr!(&program, &args, s);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_program_args_stderr_lt_expr!(left_program, left_args, right_expr)`\n",
-    " left_program label: `&program`,\n",
-    " left_program debug: `\"bin/printf-stderr\"`,\n",
-    "    left_args label: `&args`,\n",
-    "    left_args debug: `[\"%s\", \"hello\"]`,\n",
-    "   right_expr label: `s`,\n",
-    "   right_expr debug: `\"hallo\"`,\n",
-    "               left: `\"hello\"`,\n",
-    "              right: `\"hallo\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_ne/index.html b/doc/lib/assert_program_args_stderr_ne/index.html deleted file mode 100644 index ace34ae9d..000000000 --- a/doc/lib/assert_program_args_stderr_ne/index.html +++ /dev/null @@ -1,48 +0,0 @@ -lib::assert_program_args_stderr_ne - Rust

Module lib::assert_program_args_stderr_ne

source ·
Expand description

Assert a command (built with program and args) stderr string is not equal to another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-

-// Return Ok
-let a_program = "bin/printf-stderr";
-let a_args = ["%s", "hello"];
-let b_program = "bin/printf-stderr";
-let b_args = ["%s", "zzz"];
-assert_program_args_stderr_ne!(&a_program, &a_args, &b_program, &b_args);
-//-> ()
-
-let a_program = "bin/printf-stderr";
-let a_args = ["%s", "hello"];
-let b_program = "bin/printf-stderr";
-let b_args = ["%s", "hello"];
-assert_program_args_stderr_ne!(&a_program, &a_args, &b_program, &b_args);
-//-> panic!("…")
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_program_args_stderr_ne!(left_program, left_args, right_program, right_args)`\n",
-    "  left_program label: `&a_program`,\n",
-    "  left_program debug: `\"bin/printf-stderr\"`,\n",
-    "     left_args label: `&a_args`,\n",
-    "     left_args debug: `[\"%s\", \"hello\"]`,\n",
-    " right_program label: `&b_program`,\n",
-    " right_program debug: `\"bin/printf-stderr\"`,\n",
-    "    right_args label: `&b_args`,\n",
-    "    right_args debug: `[\"%s\", \"hello\"]`,\n",
-    "                left: `\"hello\"`,\n",
-    "               right: `\"hello\"`"
-);
-assert_eq!(actual, expect);
-

/// # Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stderr_ne_expr/index.html b/doc/lib/assert_program_args_stderr_ne_expr/index.html deleted file mode 100644 index b13629742..000000000 --- a/doc/lib/assert_program_args_stderr_ne_expr/index.html +++ /dev/null @@ -1,48 +0,0 @@ -lib::assert_program_args_stderr_ne_expr - Rust

Module lib::assert_program_args_stderr_ne_expr

source ·
Expand description

Assert a command (built with program and args) stderr string is not equal to an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-

-// Return Ok
-let program = "bin/printf-stderr";
-let args = ["%s", "hello"];
-let s = String::from("zzz");
-assert_program_args_stderr_ne_expr!(&program, &args, s);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let program = "bin/printf-stderr";
-let args = ["%s", "hello"];
-let s = String::from("hello");
-assert_program_args_stderr_ne_expr!(&program, &args, s);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_program_args_stderr_ne_expr!(left_program, left_args, right_expr)`\n",
-    " left_program label: `&program`,\n",
-    " left_program debug: `\"bin/printf-stderr\"`,\n",
-    "    left_args label: `&args`,\n",
-    "    left_args debug: `[\"%s\", \"hello\"]`,\n",
-    "   right_expr label: `s`,\n",
-    "   right_expr debug: `\"hello\"`,\n",
-    "               left: `\"hello\"`,\n",
-    "              right: `\"hello\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stdout_contains/index.html b/doc/lib/assert_program_args_stdout_contains/index.html deleted file mode 100644 index 8ad7c4209..000000000 --- a/doc/lib/assert_program_args_stdout_contains/index.html +++ /dev/null @@ -1,53 +0,0 @@ -lib::assert_program_args_stdout_contains - Rust

Module lib::assert_program_args_stdout_contains

source ·
Expand description

Assert a command (built with program and args) stdout string contains a given containee.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

This uses std::String method contains.

-
    -
  • The containee can be a &str, char, a slice of chars, or a function or -closure that determines if a character contains.
  • -
-

§Examples

-

-// Return Ok
-let program = "bin/printf-stdout";
-let args = ["%s", "hello"];
-let containee = "ell";
-assert_program_args_stdout_contains!(&program, &args, containee);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let program = "bin/printf-stdout";
-let args = ["%s", "hello"];
-let containee = "zzz";
-assert_program_args_stdout_contains!(&program, &args, containee);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_program_args_stdout_contains!(left_program, left_args, right_containee)`\n",
-    "    left_program label: `&program`,\n",
-    "    left_program debug: `\"bin/printf-stdout\"`,\n",
-    "       left_args label: `&args`,\n",
-    "       left_args debug: `[\"%s\", \"hello\"]`,\n",
-    " right_containee label: `containee`,\n",
-    " right_containee debug: `\"zzz\"`,\n",
-    "                  left: `\"hello\"`,\n",
-    "                 right: `\"zzz\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stdout_eq_expr/index.html b/doc/lib/assert_program_args_stdout_eq_expr/index.html deleted file mode 100644 index 10ebd6424..000000000 --- a/doc/lib/assert_program_args_stdout_eq_expr/index.html +++ /dev/null @@ -1,48 +0,0 @@ -lib::assert_program_args_stdout_eq_expr - Rust

Module lib::assert_program_args_stdout_eq_expr

source ·
Expand description

Assert a command (built with program and args) stdout string is equal to an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-

-// Return Ok
-let program = "bin/printf-stdout";
-let args = ["%s", "hello"];
-let s = "hello";
-assert_program_args_stdout_eq_expr!(&program, &args, s);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let program = "bin/printf-stdout";
-let args = ["%s", "hello"];
-let s = String::from("zzz");
-assert_program_args_stdout_eq_expr!(&program, &args, s);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_program_args_stdout_eq_expr!(left_program, left_args, right_expr)`\n",
-    " left_program label: `&program`,\n",
-    " left_program debug: `\"bin/printf-stdout\"`,\n",
-    "    left_args label: `&args`,\n",
-    "    left_args debug: `[\"%s\", \"hello\"]`,\n",
-    "   right_expr label: `s`,\n",
-    "   right_expr debug: `\"zzz\"`,\n",
-    "               left: `\"hello\"`,\n",
-    "              right: `\"zzz\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stdout_ge_expr/index.html b/doc/lib/assert_program_args_stdout_ge_expr/index.html deleted file mode 100644 index 22a8bd6f9..000000000 --- a/doc/lib/assert_program_args_stdout_ge_expr/index.html +++ /dev/null @@ -1,48 +0,0 @@ -lib::assert_program_args_stdout_ge_expr - Rust

Module lib::assert_program_args_stdout_ge_expr

source ·
Expand description

Assert a command (built with program and args) stdout string is greater than or equal to an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-

-// Return Ok
-let program = "bin/printf-stdout";
-let args = ["%s", "hello"];
-let s = String::from("hello");
-assert_program_args_stdout_ge_expr!(&program, &args, s);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let program = "bin/printf-stdout";
-let args = ["%s", "hello"];
-let s = String::from("zzz");
-assert_program_args_stdout_ge_expr!(&program, &args, s);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_program_args_stdout_ge_expr!(left_program, left_args, right_expr)`\n",
-    " left_program label: `&program`,\n",
-    " left_program debug: `\"bin/printf-stdout\"`,\n",
-    "    left_args label: `&args`,\n",
-    "    left_args debug: `[\"%s\", \"hello\"]`,\n",
-    "   right_expr label: `s`,\n",
-    "   right_expr debug: `\"zzz\"`,\n",
-    "               left: `\"hello\"`,\n",
-    "              right: `\"zzz\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stdout_gt_expr/index.html b/doc/lib/assert_program_args_stdout_gt_expr/index.html deleted file mode 100644 index af1ccf441..000000000 --- a/doc/lib/assert_program_args_stdout_gt_expr/index.html +++ /dev/null @@ -1,48 +0,0 @@ -lib::assert_program_args_stdout_gt_expr - Rust

Module lib::assert_program_args_stdout_gt_expr

source ·
Expand description

Assert a command (built with program and args) stdout string is greater than an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-

-// Return Ok
-let program = "bin/printf-stdout";
-let args = ["%s", "hello"];
-let s = String::from("hallo");
-assert_program_args_stdout_gt_expr!(&program, &args, s);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let program = "bin/printf-stdout";
-let args = ["%s", "hello"];
-let s = String::from("hullo");
-assert_program_args_stdout_gt_expr!(&program, &args, s);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_program_args_stdout_gt_expr!(left_program, left_args, right_expr)`\n",
-    " left_program label: `&program`,\n",
-    " left_program debug: `\"bin/printf-stdout\"`,\n",
-    "    left_args label: `&args`,\n",
-    "    left_args debug: `[\"%s\", \"hello\"]`,\n",
-    "   right_expr label: `s`,\n",
-    "   right_expr debug: `\"hullo\"`,\n",
-    "               left: `\"hello\"`,\n",
-    "              right: `\"hullo\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stdout_is_match/index.html b/doc/lib/assert_program_args_stdout_is_match/index.html deleted file mode 100644 index 0041723bb..000000000 --- a/doc/lib/assert_program_args_stdout_is_match/index.html +++ /dev/null @@ -1,49 +0,0 @@ -lib::assert_program_args_stdout_is_match - Rust

Module lib::assert_program_args_stdout_is_match

source ·
Expand description

Assert a command (built with program and args) stdout string is a match to a regex.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
use regex::Regex;
-
-// Return Ok
-let program = "bin/printf-stdout";
-let args = ["%s", "hello"];
-let matcher = Regex::new(r"el").unwrap();
-assert_program_args_stdout_is_match!(&program, &args, matcher);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let program = "bin/printf-stdout";
-let args = ["%s", "hello"];
-let matcher = Regex::new(r"zzz").unwrap();
-assert_program_args_stdout_is_match!(&program, &args, matcher);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_program_args_stdout_is_match!(left_program, right_matcher)`\n",
-    "  left_program label: `&program`,\n",
-    "  left_program debug: `\"bin/printf-stdout\"`,\n",
-    "     left_args label: `&args`,\n",
-    "     left_args debug: `[\"%s\", \"hello\"]`,\n",
-    " right_matcher label: `matcher`,\n",
-    " right_matcher debug: `Regex(\"zzz\")`,\n",
-    "                left: `\"hello\"`,\n",
-    "               right: `Regex(\"zzz\")`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stdout_le_expr/index.html b/doc/lib/assert_program_args_stdout_le_expr/index.html deleted file mode 100644 index 6d30a2b37..000000000 --- a/doc/lib/assert_program_args_stdout_le_expr/index.html +++ /dev/null @@ -1,48 +0,0 @@ -lib::assert_program_args_stdout_le_expr - Rust

Module lib::assert_program_args_stdout_le_expr

source ·
Expand description

Assert a command (built with program and args) stdout string is less than or equal to an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-

-// Return Ok
-let program = "bin/printf-stdout";
-let args = ["%s", "hello"];
-let s = String::from("hullo");
-assert_program_args_stdout_le_expr!(&program, &args, s);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let program = "bin/printf-stdout";
-let args = ["%s", "hello"];
-let s = String::from("hallo");
-assert_program_args_stdout_le_expr!(&program, &args, s);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_program_args_stdout_le_expr!(left_program, left_args, right_expr)`\n",
-    " left_program label: `&program`,\n",
-    " left_program debug: `\"bin/printf-stdout\"`,\n",
-    "    left_args label: `&args`,\n",
-    "    left_args debug: `[\"%s\", \"hello\"]`,\n",
-    "   right_expr label: `s`,\n",
-    "   right_expr debug: `\"hallo\"`,\n",
-    "               left: `\"hello\"`,\n",
-    "              right: `\"hallo\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stdout_lt_expr/index.html b/doc/lib/assert_program_args_stdout_lt_expr/index.html deleted file mode 100644 index 9b15ae96f..000000000 --- a/doc/lib/assert_program_args_stdout_lt_expr/index.html +++ /dev/null @@ -1,48 +0,0 @@ -lib::assert_program_args_stdout_lt_expr - Rust

Module lib::assert_program_args_stdout_lt_expr

source ·
Expand description

Assert a command (built with program and args) stdout string is less than an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-

-// Return Ok
-let program = "bin/printf-stdout";
-let args = ["%s", "hello"];
-let s = String::from("hullo");
-assert_program_args_stdout_lt_expr!(&program, &args, s);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let program = "bin/printf-stdout";
-let args = ["%s", "hello"];
-let s = String::from("hallo");
-assert_program_args_stdout_lt_expr!(&program, &args, s);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_program_args_stdout_lt_expr!(left_program, left_args, right_expr)`\n",
-    " left_program label: `&program`,\n",
-    " left_program debug: `\"bin/printf-stdout\"`,\n",
-    "    left_args label: `&args`,\n",
-    "    left_args debug: `[\"%s\", \"hello\"]`,\n",
-    "   right_expr label: `s`,\n",
-    "   right_expr debug: `\"hallo\"`,\n",
-    "               left: `\"hello\"`,\n",
-    "              right: `\"hallo\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_program_args_stdout_ne_expr/index.html b/doc/lib/assert_program_args_stdout_ne_expr/index.html deleted file mode 100644 index df760a781..000000000 --- a/doc/lib/assert_program_args_stdout_ne_expr/index.html +++ /dev/null @@ -1,48 +0,0 @@ -lib::assert_program_args_stdout_ne_expr - Rust

Module lib::assert_program_args_stdout_ne_expr

source ·
Expand description

Assert a command (built with program and args) stdout string is not equal to an expression.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-

-// Return Ok
-let program = "bin/printf-stdout";
-let args = ["%s", "hello"];
-let s = String::from("zzz");
-assert_program_args_stdout_ne_expr!(&program, &args, s);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let program = "bin/printf-stdout";
-let args = ["%s", "hello"];
-let s = String::from("hello");
-assert_program_args_stdout_ne_expr!(&program, &args, s);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_program_args_stdout_ne_expr!(left_program, left_args, right_expr)`\n",
-    " left_program label: `&program`,\n",
-    " left_program debug: `\"bin/printf-stdout\"`,\n",
-    "    left_args label: `&args`,\n",
-    "    left_args debug: `[\"%s\", \"hello\"]`,\n",
-    "   right_expr label: `s`,\n",
-    "   right_expr debug: `\"hello\"`,\n",
-    "               left: `\"hello\"`,\n",
-    "              right: `\"hello\"`"
-);
-assert_eq!(actual, expect);
-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_result/assert_result_err/index.html b/doc/lib/assert_result/assert_result_err/index.html new file mode 100644 index 000000000..4c0ff033a --- /dev/null +++ b/doc/lib/assert_result/assert_result_err/index.html @@ -0,0 +1,47 @@ +lib::assert_result::assert_result_err - Rust

Module lib::assert_result::assert_result_err

source ·
Expand description

Assert expression.is_err() is true.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
let a: Result<(), i8> = Result::Err(1);
+assert_result_err!(a);
+//-> ()
+
+let a: Result<(), i8> = Result::Ok(());
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_result_err!(a);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_result_err!(expr)`\n",
+    "    expr label: `a`,\n",
+    "    expr debug: `Ok(())`,\n",
+    " expr.is_err(): `false`",
+);
+assert_eq!(actual, expect);
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_result_err!(a, "message");
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = "message";
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_set_ne/sidebar-items.js b/doc/lib/assert_result/assert_result_err/sidebar-items.js similarity index 100% rename from doc/lib/assert_set_ne/sidebar-items.js rename to doc/lib/assert_result/assert_result_err/sidebar-items.js diff --git a/doc/lib/assert_result/assert_result_ok/index.html b/doc/lib/assert_result/assert_result_ok/index.html new file mode 100644 index 000000000..9cb60fb54 --- /dev/null +++ b/doc/lib/assert_result/assert_result_ok/index.html @@ -0,0 +1,47 @@ +lib::assert_result::assert_result_ok - Rust

Module lib::assert_result::assert_result_ok

source ·
Expand description

Assert expression.is_ok() is true.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
let a: Result<(), i8> = Result::Ok(());
+assert_result_ok!(a);
+//-> ()
+
+let a: Result<(), i8> = Result::Err(1);
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_result_ok!(a);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_result_ok!(expr)`\n",
+    "   expr label: `a`,\n",
+    "   expr debug: `Err(1)`,\n",
+    " expr.is_ok(): `false`",
+);
+assert_eq!(actual, expect);
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+assert_result_ok!(a, "message");
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = "message";
+assert_eq!(actual, expect);
+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_set_subset/sidebar-items.js b/doc/lib/assert_result/assert_result_ok/sidebar-items.js similarity index 100% rename from doc/lib/assert_set_subset/sidebar-items.js rename to doc/lib/assert_result/assert_result_ok/sidebar-items.js diff --git a/doc/lib/assert_result/index.html b/doc/lib/assert_result/index.html new file mode 100644 index 000000000..954cc0628 --- /dev/null +++ b/doc/lib/assert_result/index.html @@ -0,0 +1,30 @@ +lib::assert_result - Rust

Module lib::assert_result

source ·
Expand description

Assert macros for Result (Ok or Err)

+

These macros help compare a Result that is either Ok, Err.

+

The macros use these capabilities:

+
    +
  • +

    implements .is_ok() -> boolean

    +
  • +
  • +

    implements .unwrap_ok() -> comparable

    +
  • +
  • +

    implements .is_err() -> boolean

    +
  • +
  • +

    implements .unwrap_err() -> comparable

    +
  • +
+

§Macros

+ +

§Example

+
let a: Result<(), i8> = Result::Ok(());
+assert_result_ok!(a);
+

Modules§

\ No newline at end of file diff --git a/doc/lib/assert_result/sidebar-items.js b/doc/lib/assert_result/sidebar-items.js new file mode 100644 index 000000000..36cea2f80 --- /dev/null +++ b/doc/lib/assert_result/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"mod":["assert_result_err","assert_result_ok"]}; \ No newline at end of file diff --git a/doc/lib/assert_set/assert_set_disjoint/index.html b/doc/lib/assert_set/assert_set_disjoint/index.html new file mode 100644 index 000000000..b9469295d --- /dev/null +++ b/doc/lib/assert_set/assert_set_disjoint/index.html @@ -0,0 +1,44 @@ +lib::assert_set::assert_set_disjoint - Rust

Module lib::assert_set::assert_set_disjoint

source ·
Expand description

Assert a set is disjoint with another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
// Return Ok
+let a = [1, 2];
+let b = [3, 4];
+assert_set_disjoint!(&a, &b);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let a = [1, 2];
+let b = [2, 3];
+assert_set_disjoint!(&a, &b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_set_disjoint!(left_set, right_set)`\n",
+    "  left_set label: `&a`,\n",
+    "  left_set debug: `[1, 2]`,\n",
+    " right_set label: `&b`,\n",
+    " right_set debug: `[2, 3]`,\n",
+    "            left: `{1, 2}`,\n",
+    "           right: `{2, 3}`"
+);
+assert_eq!(actual, expect);
+

This implementation uses std::collections::BTreeSet to count items and sort them.

+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_set_superset/sidebar-items.js b/doc/lib/assert_set/assert_set_disjoint/sidebar-items.js similarity index 100% rename from doc/lib/assert_set_superset/sidebar-items.js rename to doc/lib/assert_set/assert_set_disjoint/sidebar-items.js diff --git a/doc/lib/assert_set/assert_set_eq/index.html b/doc/lib/assert_set/assert_set_eq/index.html new file mode 100644 index 000000000..178d074ec --- /dev/null +++ b/doc/lib/assert_set/assert_set_eq/index.html @@ -0,0 +1,44 @@ +lib::assert_set::assert_set_eq - Rust

Module lib::assert_set::assert_set_eq

source ·
Expand description

Assert a set is equal to another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
// Return Ok
+let a = [1, 2];
+let b = [2, 1];
+assert_set_eq!(&a, &b);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let a = [1, 2];
+let b = [3, 4];
+assert_set_eq!(&a, &b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_set_eq!(left_set, right_set)`\n",
+    "  left_set label: `&a`,\n",
+    "  left_set debug: `[1, 2]`,\n",
+    " right_set label: `&b`,\n",
+    " right_set debug: `[3, 4]`,\n",
+    "            left: `{1, 2}`,\n",
+    "           right: `{3, 4}`"
+);
+assert_eq!(actual, expect);
+

This implementation uses std::collections::BTreeSet to count items and sort them.

+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_set/assert_set_eq/sidebar-items.js b/doc/lib/assert_set/assert_set_eq/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/doc/lib/assert_set/assert_set_eq/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/doc/lib/assert_set/assert_set_joint/index.html b/doc/lib/assert_set/assert_set_joint/index.html new file mode 100644 index 000000000..81f9bd290 --- /dev/null +++ b/doc/lib/assert_set/assert_set_joint/index.html @@ -0,0 +1,44 @@ +lib::assert_set::assert_set_joint - Rust

Module lib::assert_set::assert_set_joint

source ·
Expand description

Assert a set is joint with another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
// Return Ok
+let a = [1, 2];
+let b = [2, 3];
+assert_set_joint!(&a, &b);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let a = [1, 2];
+let b = [3, 4];
+assert_set_joint!(&a, &b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_set_joint!(left_set, right_set)`\n",
+    "  left_set label: `&a`,\n",
+    "  left_set debug: `[1, 2]`,\n",
+    " right_set label: `&b`,\n",
+    " right_set debug: `[3, 4]`,\n",
+    "            left: `{1, 2}`,\n",
+    "           right: `{3, 4}`"
+);
+assert_eq!(actual, expect);
+

This implementation uses std::collections::BTreeSet to count items and sort them.

+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_set/assert_set_joint/sidebar-items.js b/doc/lib/assert_set/assert_set_joint/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/doc/lib/assert_set/assert_set_joint/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/doc/lib/assert_set/assert_set_ne/index.html b/doc/lib/assert_set/assert_set_ne/index.html new file mode 100644 index 000000000..46aabdad3 --- /dev/null +++ b/doc/lib/assert_set/assert_set_ne/index.html @@ -0,0 +1,38 @@ +lib::assert_set::assert_set_ne - Rust

Module lib::assert_set::assert_set_ne

source ·
Expand description

Assert a set is not equal to another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
// Return Ok
+let a = [1, 2];
+let b = [3, 4];
+assert_set_ne!(&a, &b);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let a = [1, 2];
+let b = [1, 2];
+assert_set_ne!(&a, &b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_set_ne!(left_set, right_set)`\n",
+);
+assert_eq!(actual, expect);
+

This implementation uses std::collections::BTreeSet to count items and sort them.

+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_set/assert_set_ne/sidebar-items.js b/doc/lib/assert_set/assert_set_ne/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/doc/lib/assert_set/assert_set_ne/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/doc/lib/assert_set/assert_set_subset/index.html b/doc/lib/assert_set/assert_set_subset/index.html new file mode 100644 index 000000000..40977b357 --- /dev/null +++ b/doc/lib/assert_set/assert_set_subset/index.html @@ -0,0 +1,44 @@ +lib::assert_set::assert_set_subset - Rust

Module lib::assert_set::assert_set_subset

source ·
Expand description

Assert a set is a subset of another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
// Return Ok
+let a = [1, 2];
+let b = [1, 2, 3];
+assert_set_subset!(&a, &b);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let a = [1, 2, 3];
+let b = [1, 2];
+assert_set_subset!(&a, &b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_set_subset!(left_set, right_set)`\n",
+    "  left_set label: `&a`,\n",
+    "  left_set debug: `[1, 2, 3]`,\n",
+    " right_set label: `&b`,\n",
+    " right_set debug: `[1, 2]`,\n",
+    "            left: `{1, 2, 3}`,\n",
+    "           right: `{1, 2}`"
+);
+assert_eq!(actual, expect);
+

This implementation uses std::collections::BTreeSet to count items and sort them.

+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_set/assert_set_subset/sidebar-items.js b/doc/lib/assert_set/assert_set_subset/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/doc/lib/assert_set/assert_set_subset/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/doc/lib/assert_set/assert_set_superset/index.html b/doc/lib/assert_set/assert_set_superset/index.html new file mode 100644 index 000000000..65c80b598 --- /dev/null +++ b/doc/lib/assert_set/assert_set_superset/index.html @@ -0,0 +1,44 @@ +lib::assert_set::assert_set_superset - Rust

Module lib::assert_set::assert_set_superset

source ·
Expand description

Assert a set is a superset of another.

+
    +
  • +

    If true, return ().

    +
  • +
  • +

    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

    +
  • +
+

§Examples

+
// Return Ok
+let a = [1, 2, 3];
+let b = [1, 2];
+assert_set_superset!(&a, &b);
+//-> ()
+
+// Panic with error message
+let result = panic::catch_unwind(|| {
+let a = [1, 2];
+let b = [1, 2, 3];
+assert_set_superset!(&a, &b);
+//-> panic!
+});
+assert!(result.is_err());
+let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
+let expect = concat!(
+    "assertion failed: `assert_set_superset!(left_set, right_set)`\n",
+    "  left_set label: `&a`,\n",
+    "  left_set debug: `[1, 2]`,\n",
+    " right_set label: `&b`,\n",
+    " right_set debug: `[1, 2, 3]`,\n",
+    "            left: `{1, 2}`,\n",
+    "           right: `{1, 2, 3}`"
+);
+assert_eq!(actual, expect);
+

This implementation uses std::collections::BTreeSet to count items and sort them.

+

§Module macros

+ +
\ No newline at end of file diff --git a/doc/lib/assert_set/assert_set_superset/sidebar-items.js b/doc/lib/assert_set/assert_set_superset/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/doc/lib/assert_set/assert_set_superset/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/doc/lib/assert_set/index.html b/doc/lib/assert_set/index.html new file mode 100644 index 000000000..7c86c4e12 --- /dev/null +++ b/doc/lib/assert_set/index.html @@ -0,0 +1,36 @@ +lib::assert_set - Rust

Module lib::assert_set

source ·
Expand description

Assert macros for comparing set collections.

+

These macros help with comparison of set parameters, such as two arrays or +two vectors. where the item order does not matter, and the item count does +not matter. These macros convert their inputs into HashSet iterators.

+

For eq & ne:

+ +

For subset & superset:

+ +

For joint & disjoint:

+ +

§Example

+
let a = [1, 2];
+let b = [2, 1];
+assert_set_eq!(&a, &b);
+

Modules§

\ No newline at end of file diff --git a/doc/lib/assert_set/sidebar-items.js b/doc/lib/assert_set/sidebar-items.js new file mode 100644 index 000000000..2932e3b70 --- /dev/null +++ b/doc/lib/assert_set/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"mod":["assert_set_disjoint","assert_set_eq","assert_set_joint","assert_set_ne","assert_set_subset","assert_set_superset"]}; \ No newline at end of file diff --git a/doc/lib/assert_set_disjoint/index.html b/doc/lib/assert_set_disjoint/index.html deleted file mode 100644 index 3a3f41866..000000000 --- a/doc/lib/assert_set_disjoint/index.html +++ /dev/null @@ -1,44 +0,0 @@ -lib::assert_set_disjoint - Rust

Module lib::assert_set_disjoint

source ·
Expand description

Assert a set is disjoint with another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
// Return Ok
-let a = [1, 2];
-let b = [3, 4];
-assert_set_disjoint!(&a, &b);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let a = [1, 2];
-let b = [2, 3];
-assert_set_disjoint!(&a, &b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_set_disjoint!(left_set, right_set)`\n",
-    "  left_set label: `&a`,\n",
-    "  left_set debug: `[1, 2]`,\n",
-    " right_set label: `&b`,\n",
-    " right_set debug: `[2, 3]`,\n",
-    "            left: `{1, 2}`,\n",
-    "           right: `{2, 3}`"
-);
-assert_eq!(actual, expect);
-

This implementation uses std::collections::BTreeSet to count items and sort them.

-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_set_eq/index.html b/doc/lib/assert_set_eq/index.html deleted file mode 100644 index ba5dbb79b..000000000 --- a/doc/lib/assert_set_eq/index.html +++ /dev/null @@ -1,44 +0,0 @@ -lib::assert_set_eq - Rust

Module lib::assert_set_eq

source ·
Expand description

Assert a set is equal to another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
// Return Ok
-let a = [1, 2];
-let b = [2, 1];
-assert_set_eq!(&a, &b);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let a = [1, 2];
-let b = [3, 4];
-assert_set_eq!(&a, &b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_set_eq!(left_set, right_set)`\n",
-    "  left_set label: `&a`,\n",
-    "  left_set debug: `[1, 2]`,\n",
-    " right_set label: `&b`,\n",
-    " right_set debug: `[3, 4]`,\n",
-    "            left: `{1, 2}`,\n",
-    "           right: `{3, 4}`"
-);
-assert_eq!(actual, expect);
-

This implementation uses std::collections::BTreeSet to count items and sort them.

-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_set_joint/index.html b/doc/lib/assert_set_joint/index.html deleted file mode 100644 index 86efc9eab..000000000 --- a/doc/lib/assert_set_joint/index.html +++ /dev/null @@ -1,44 +0,0 @@ -lib::assert_set_joint - Rust

Module lib::assert_set_joint

source ·
Expand description

Assert a set is joint with another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
// Return Ok
-let a = [1, 2];
-let b = [2, 3];
-assert_set_joint!(&a, &b);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let a = [1, 2];
-let b = [3, 4];
-assert_set_joint!(&a, &b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_set_joint!(left_set, right_set)`\n",
-    "  left_set label: `&a`,\n",
-    "  left_set debug: `[1, 2]`,\n",
-    " right_set label: `&b`,\n",
-    " right_set debug: `[3, 4]`,\n",
-    "            left: `{1, 2}`,\n",
-    "           right: `{3, 4}`"
-);
-assert_eq!(actual, expect);
-

This implementation uses std::collections::BTreeSet to count items and sort them.

-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_set_ne/index.html b/doc/lib/assert_set_ne/index.html deleted file mode 100644 index 693621c6d..000000000 --- a/doc/lib/assert_set_ne/index.html +++ /dev/null @@ -1,38 +0,0 @@ -lib::assert_set_ne - Rust

Module lib::assert_set_ne

source ·
Expand description

Assert a set is not equal to another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
// Return Ok
-let a = [1, 2];
-let b = [3, 4];
-assert_set_ne!(&a, &b);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let a = [1, 2];
-let b = [1, 2];
-assert_set_ne!(&a, &b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_set_ne!(left_set, right_set)`\n",
-);
-assert_eq!(actual, expect);
-

This implementation uses std::collections::BTreeSet to count items and sort them.

-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_set_subset/index.html b/doc/lib/assert_set_subset/index.html deleted file mode 100644 index 5605b68d4..000000000 --- a/doc/lib/assert_set_subset/index.html +++ /dev/null @@ -1,44 +0,0 @@ -lib::assert_set_subset - Rust

Module lib::assert_set_subset

source ·
Expand description

Assert a set is a subset of another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
// Return Ok
-let a = [1, 2];
-let b = [1, 2, 3];
-assert_set_subset!(&a, &b);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let a = [1, 2, 3];
-let b = [1, 2];
-assert_set_subset!(&a, &b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_set_subset!(left_set, right_set)`\n",
-    "  left_set label: `&a`,\n",
-    "  left_set debug: `[1, 2, 3]`,\n",
-    " right_set label: `&b`,\n",
-    " right_set debug: `[1, 2]`,\n",
-    "            left: `{1, 2, 3}`,\n",
-    "           right: `{1, 2}`"
-);
-assert_eq!(actual, expect);
-

This implementation uses std::collections::BTreeSet to count items and sort them.

-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/assert_set_superset/index.html b/doc/lib/assert_set_superset/index.html deleted file mode 100644 index 2d27b442f..000000000 --- a/doc/lib/assert_set_superset/index.html +++ /dev/null @@ -1,44 +0,0 @@ -lib::assert_set_superset - Rust

Module lib::assert_set_superset

source ·
Expand description

Assert a set is a superset of another.

-
    -
  • -

    If true, return ().

    -
  • -
  • -

    Otherwise, call panic! with a message and the values of the -expressions with their debug representations.

    -
  • -
-

§Examples

-
// Return Ok
-let a = [1, 2, 3];
-let b = [1, 2];
-assert_set_superset!(&a, &b);
-//-> ()
-
-// Panic with error message
-let result = panic::catch_unwind(|| {
-let a = [1, 2];
-let b = [1, 2, 3];
-assert_set_superset!(&a, &b);
-//-> panic!
-});
-assert!(result.is_err());
-let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
-let expect = concat!(
-    "assertion failed: `assert_set_superset!(left_set, right_set)`\n",
-    "  left_set label: `&a`,\n",
-    "  left_set debug: `[1, 2]`,\n",
-    " right_set label: `&b`,\n",
-    " right_set debug: `[1, 2, 3]`,\n",
-    "            left: `{1, 2}`,\n",
-    "           right: `{1, 2, 3}`"
-);
-assert_eq!(actual, expect);
-

This implementation uses std::collections::BTreeSet to count items and sort them.

-

§Module macros

- -
\ No newline at end of file diff --git a/doc/lib/index.html b/doc/lib/index.html index c67928ac8..1d39eedcf 100644 --- a/doc/lib/index.html +++ b/doc/lib/index.html @@ -1,54 +1,59 @@ -lib - Rust

Crate lib

source ·
Expand description

§Assertables: Rust crate of assert macros for testing

+lib - Rust

Crate lib

source ·
Expand description

§Assertables: Rust crate of assert macros for testing

The assertables Rust crate provides many assert macros to improve your compile-time tests and run-time reliability.

-

Crate: -https://crates.io/crates/assertables

-

Docs: https://docs.rs/assertables/

-

Repo: -https://github.com/sixarm/assertables-rust-crate/

-

§Why use this?

-

When you write Rust tests, then you can use Rust assert macros, such as:

- -
assert_eq!(value1, value2)
-

The assertables Rust crate provides many more assert macros for values, -strings, vectors, paths, readers, commands, and more, such as:

+ +

§Introduction

+

The Rust programming language provides a few built-in assert macros to test code:

-
// value1 greater than value2
-assert_gt!(value1, value2);
+
assert!()
+assert_eq!(a, b)
+assert_ne!(a, b)
+

The assertables crate provides many more, so you can write smarter tests.

+

For values:

-// string1 starts with string2 -assert_starts_with!(string1, string2); +
assert_gt!(a, b)
+assert_lt!(a, b)
+

For numbers:

-// regex is match of string -assert_is_match!(regex, string); +
assert_in_delta!(a, b, delta)
+assert_in_epsilon!(a, b, epsilon)
+

For strings:

-// vector1 as set ⊆ vector2 as set -assert_set_subset!(vector1, vector2); +
assert_starts_with!(a, b)
+assert_ends_with!(a, b)
+

For matching:

-// function1 ok = function2 ok -assert_fn_ok_eq!(function1, function2); +
assert_contains!(a, b)
+assert_is_match!(a, b)
+

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

-// path1 as string = path2 as string -assert_fs_read_to_string_eq!(path1, path2); +
assert_set_subset!(a, b)
+assert_set_disjoint!(a, b)
+

For file system paths and input/output readers:

-// reader1 as string = reader2 as string -assert_io_read_to_string_eq!(reader1, reader2); +
assert_fs_read_to_string_eq!(path1, path2)
+assert_io_read_to_string_eq!(reader1, reader2)
+

For command capture of standard output and standard error:

-// command1 standard output = command2 standard output -assert_command_stdout_eq!(command1, command2);
-

See below for the complete list of all the assert macros.

+
assert_command_stdout_eq!(command1 stdout = command2 stdout);
+assert_command_stderr_eq!(command1, command2);

§Benefits

  • -

    Your tests are more purposeful and powerful, which helps your code be more +

    Your tests are more purposeful and powerful. This helps your code be more reliable.

  • -

    Your assert failures provide more information, which helps you +

    Your assert failures provide more information. This helps you troubleshoot faster.

  • -

    You gain runtime asserts, which helps you with validations and +

    You gain runtime asserts. This helps you with validations and verifications.

@@ -63,494 +68,256 @@

§Features

your code.

  • -

    Three forms: assert_* for development, debug_assert_* for debugging, -and assert_*_as_result for production.

    -
  • - -

    §Complete list of assert macros

    §assert_* for values

    -

    Compare values:

    -
      -
    • -

      assert_eq!(a, b) ≈ a = b

      -
    • -
    • -

      assert_ne!(a, b) ≈ a ≠ b

      -
    • -
    • -

      assert_ge!(a, b) ≈ a ≥ b

      -
    • -
    • -

      assert_gt!(a, b) ≈ a > b

      -
    • -
    • -

      assert_le!(a, b) ≈ a ≤ b

      -
    • -
    • -

      assert_lt!(a, b) ≈ a < b

      -
    • -
    -

    Compare values by using nearness:

    -
      -
    • -

      assert_in_delta!(a, b, delta) ≈ | a - b | ≤ delta

      -
    • -
    • -

      assert_in_epsilon(a, b, epsilon) ≈ | a - b | ≤ epsilon * min(a, b)

      -
    • -
    -

    §assert_* for strings and matchers

    -

    These macros help with strings and also other structures that provide -matchers such as starts_with, ends_width, contains, and is_match.

    -
      -
    • -

      assert_starts_with(a, b) ≈ a.starts_with(b)

      -
    • -
    • -

      assert_not_starts_with(a, b) ≈ !a.starts_with(b)

      -
    • -
    • -

      assert_ends_with(a, b) ≈ a.ends_with(b)

      -
    • -
    • -

      assert_not_ends_with(a, b) ≈ !a.ends_with(b)

      -
    • -
    • -

      assert_contains(container, containee) ≈ container.contains(containee)

      -
    • -
    • -

      assert_not_contains(container, containee) ≈ -!container.contains(containee)

      -
    • -
    • -

      assert_is_match(matcher, matchee) ≈ matcher.is_match(matchee)

      -
    • -
    • -

      assert_not_match(matcher, matchee) ≈ !matcher.is_match(matchee)

      -
    • -
    -

    §assert_set_* for set collection comparisons

    -

    These macros help with comparison of set parameters, such as two arrays or -two vectors. where the item order does not matter, and the item count does -not matter. These macros convert their inputs into HashSet iterators.

    -
      -
    • -

      assert_set_eq!(a, b) ≈ set a = set b

      -
    • -
    • -

      assert_set_ne!(a, b) ≈ set a ≠ set b

      -
    • -
    • -

      assert_set_subset!(a, b) ≈ set a ⊆ set b

      -
    • -
    • -

      assert_set_superset!(a, b) ≈ set a ⊇ set b

      -
    • -
    • -

      assert_set_joint!(a, b) ≈ set a ∩ set b ≠ ∅

      -
    • -
    • -

      assert_set_disjoint!(a, b) ≈ set a ∩ set b = ∅

      -
    • -
    -

    §assert_bag_* for bag collection comparisons

    -

    These macros help with comparison of bag parameters, such as comparison of -two arrays or two vectors, where the item order does not matter, and the -item count does matter. These macros convert their inputs into HashMap -iterators.

    -
      -
    • -

      assert_bag_eq(a, b) ≈ bag a = bag b

      -
    • -
    • -

      assert_bag_ne(a, b) ≈ bag a ≠ bag b

      -
    • -
    • -

      assert_bag_subbag(a, b) ≈ bag a ⊆ bag b

      -
    • -
    • -

      assert_bag_superbag(a, b) ≈ bag a ⊇ bag b

      -
    • -
    -

    §assert_fn_* for function return-value comparisons

    -

    Compare a function with another function:

    -
      -
    • -

      assert_fn_eq!(function1, function2) ≈ function1() = function2()

      -
    • -
    • -

      assert_fn_ne!(function1, function2) ≈ function1() ≠ function2()

      -
    • -
    • -

      assert_fn_ge!(function1, function2) ≈ function1() ≥ function2()

      -
    • -
    • -

      assert_fn_gt!(function1, function2) ≈ function1() > function2()

      -
    • -
    • -

      assert_fn_le!(function1, function2) ≈ function1() ≤ function2()

      -
    • -
    • -

      assert_fn_lt!(function1, function2) ≈ function1() < function2()

      +

      Zero dependencies: the crate has no release dependencies, and just a short list of development dependencies.

    -

    Compare a function with an expression:

    +

    §Forms

    +

    Assertables macros come in three forms:

    • -

      assert_fn_eq_expr!(function, expr) ≈ function() = expr

      +

      Panic macro: assert_* is for typical test uses with cargo test.

    • -

      assert_fn_ne_expr!(function, expr) ≈ function() ≠ expr

      +

      Debug macro: debug_assert_* is for runtime diagnostic configuration.

    • -

      assert_fn_ge_expr!(function, expr) ≈ function() ≥ expr

      -
    • -
    • -

      assert_fn_gt_expr!(function, expr) ≈ function() > expr

      -
    • -
    • -

      assert_fn_le_expr!(function, expr) ≈ function() ≤ expr

      -
    • -
    • -

      assert_fn_lt_expr!(function, expr) ≈ function() < expr

      +

      Result macro: assert_*_as_result is for runtime production configuration, such as for site reliability engineering, chaos engineering, validations, verifications, sanitizations, and more.

    -

    §assert_fn_ok_* for Result Ok() comparisons

    -

    Compare a function Ok() with another function Ok():

    -
      -
    • -

      assert_fn_ok_eq!(function1, function2) ≈ function1().ok().unwrap() = function2().ok().unwrap()

      -
    • -
    • -

      assert_fn_ok_ne!(function1, function2) ≈ function1().ok().unwrap() ≠ function2().ok().unwrap()

      -
    • -
    • -

      assert_fn_ok_ge!(function1, function2) ≈ function1().ok().unwrap() ≥ function2().ok().unwrap()

      -
    • -
    • -

      assert_fn_ok_gt!(function1, function2) ≈ function1().ok().unwrap() > function2().ok().unwrap()

      -
    • -
    • -

      assert_fn_ok_le!(function1, function2) ≈ function1().ok().unwrap() ≤ function2().ok().unwrap()

      -
    • -
    • -

      assert_fn_ok_lt!(function1, function2) ≈ function1().ok().unwrap() < function2().ok().unwrap()

      -
    • -
    -

    Compare a function Ok() with an expression:

    -
      -
    • -

      assert_fn_ok_eq_expr!(function, expr) ≈ function().ok().unwrap() = expr

      -
    • -
    • -

      assert_fn_ok_ne_expr!(function, expr) ≈ function().ok().unwrap() ≠ expr

      -
    • -
    • -

      assert_fn_ok_ge_expr!(function, expr) ≈ function().ok().unwrap() ≥ expr

      -
    • -
    • -

      assert_fn_ok_gt_expr!(function, expr) ≈ function().ok().unwrap() > expr

      -
    • -
    • -

      assert_fn_ok_le_expr!(function, expr) ≈ function().ok().unwrap() ≤ expr

      -
    • -
    • -

      assert_fn_ok_lt_expr!(function, expr) ≈ function().ok().unwrap() < expr

      -
    • -
    -

    §assert_fn_err_* for function Err() comparisons

    -

    Compare a function Err() with another function Err():

    -
      -
    • -

      assert_fn_err_eq!(function1, function2) ≈ function1().unwrap_err() = function2().unwrap_err()

      -
    • -
    • -

      assert_fn_err_ne!(function1, function2) ≈ function1().unwrap_err() ≠ function2().unwrap_err()

      -
    • -
    • -

      assert_fn_err_ge!(function1, function2) ≈ function1().unwrap_err() ≥ function2().unwrap_err()

      -
    • -
    • -

      assert_fn_err_gt!(function1, function2) ≈ function1().unwrap_err() > function2().unwrap_err()

      -
    • -
    • -

      assert_fn_err_le!(function1, function2) ≈ function1().unwrap_err() ≤ function2().unwrap_err()

      -
    • -
    • -

      assert_fn_err_lt!(function1, function2) ≈ function1().unwrap_err() < function2().unwrap_err()

      -
    • -
    -

    Compare a function Err() with an expression:

    +

    §Naming conventions

    +

    Abbreviations:

    • -

      assert_fn_err_eq!(function, expr) ≈ function().unwrap_err() = expr

      +

      eq ≈ equal

    • -

      assert_fn_err_ne!(function, expr) ≈ function().unwrap_err() ≠ expr

      +

      ne ≈ not equal.

    • -

      assert_fn_err_ge!(function, expr) ≈ function().unwrap_err() ≥ expr

      +

      lt ≈ less than

    • -

      assert_fn_err_gt!(function, expr) ≈ function().unwrap_err() > expr

      +

      le ≈ less than or equal.

    • -

      assert_fn_err_le!(function, expr) ≈ function().unwrap_err() ≤ expr

      +

      gt ≈ greater than

    • -

      assert_fn_err_lt!(function, expr) ≈ function().unwrap_err() < expr

      +

      ge ≈ greater than or equal.

    -

    §assert_fs_read_to_string_* for std::fs path comparisons

    -

    These macros help with file system paths, such as disk files, Path, PathBuf, -the trait AsRef<Path>, and anything that is readable via -std::fs::read_to_string(…).

    -

    Compare a path with another path:

    +

    Shorthands:

    • -

      assert_fs_read_to_string_eq!(path1, path2) ≈ std::fs::read_to_string(path1) = std::fs::read_to_string(path2)

      +

      path ≈ implements AsRef<Path> such as std::path::PathBuf.

    • -

      assert_fs_read_to_string_ne!(path1, path2) ≈ std::fs::read_to_string(path1) ≠ std::fs::read_to_string(path2)

      +

      reader ≈ implements method .read_to_string() such as std::io::Read.

    • -

      assert_fs_read_to_string_ge!(path1, path2) ≈ std::fs::read_to_string(path1) ≥ std::fs::read_to_string(path2)

      +

      matcher ≈ implements .is_match(…) such as regex::Regex.

    • -

      assert_fs_read_to_string_gt!(path1, path2) ≈ std::fs::read_to_string(path1) > std::fs::read_to_string(path2)

      +

      containee ≈ usable inside .contains(…) such as a +std::string::String substring.

    • -

      assert_fs_read_to_string_le!(path1, path2) ≈ std::fs::read_to_string(path1) ≤ std::fs::read_to_string(path2)

      +

      set ≈ a collection such as ::std::collections::BTreeSet.

    • -

      assert_fs_read_to_string_lt!(path1, path2) ≈ std::fs::read_to_string(path1) < std::fs::read_to_string(path2)

      +

      bag ≈ a collection such as ::std::collections::BTreeMap which has +key counts.

    -

    Compare a path with an expression:

    +

    §Complete list of assert macros

    §assert_* for values

    +

    Compare values:

    • -

      assert_fs_read_to_string_eq_expr(path, expr) ≈ std::fs::read_to_string(path) = expr

      -
    • -
    • -

      assert_fs_read_to_string_ne_expr(path, expr) ≈ std::fs::read_to_string(path) ≠ expr

      -
    • -
    • -

      assert_fs_read_to_string_ge_expr(path, expr) ≈ std::fs::read_to_string(path) ≥ expr

      +

      assert_eq!(a, b) ≈ a = b

    • -

      assert_fs_read_to_string_gt_expr(path, expr) ≈ std::fs::read_to_string(path) > expr

      +

      assert_ne!(a, b) ≈ a ≠ b

    • -

      assert_fs_read_to_string_le_expr(path, expr) ≈ std::fs::read_to_string(path) ≤ expr

      +

      assert_ge!(a, b) ≈ a ≥ b

    • -

      assert_fs_read_to_string_lt_expr(path, expr) ≈ std::fs::read_to_string(path) < expr

      +

      assert_gt!(a, b) ≈ a > b

    • -
    -

    Compare a path with its contents:

    -
    • -

      assert_fs_read_to_string_contains(path, containee) ≈ std::fs::read_to_string(path).contains(containee)

      +

      assert_le!(a, b) ≈ a ≤ b

    • -

      assert_fs_read_to_string_matches(path, matcher) ≈ matcher.is_match(std::fs::read_to_string(path))

      +

      assert_lt!(a, b) ≈ a < b

    -

    §assert_io_read_to_string_* for std::io::Read comparisons

    -

    These macros help with readers, such as file handles, byte arrays, input -streams, and the trait std::io::Read.

    -

    Compare a reader with another reader:

    +

    §For infix operators

    +

    Compare values by using an infix value operator:

    • -

      assert_io_read_to_string_eq!(reader1, reader2) ≈ reader1.read_to_string() = reader2.read_to_string()

      +

      assert_infix!(a == b) ≈ a == b

    • -

      assert_io_read_to_string_ne!(reader1, reader2) ≈ reader1.read_to_string() ≠ reader2.read_to_string()

      +

      assert_infix!(a != b) ≈ a ≠ b

    • -

      assert_io_read_to_string_ge!(reader1, reader2) ≈ reader1.read_to_string() ≥ reader2.read_to_string()

      +

      assert_infix!(a < b) ≈ a < b

    • -

      assert_io_read_to_string_gt!(reader1, reader2) ≈ reader1.read_to_string() > reader2.read_to_string()

      +

      assert_infix!(a <= b) ≈ a ≤ b

    • -

      assert_io_read_to_string_le!(reader1, reader2) ≈ reader1.read_to_string() ≤ reader2.read_to_string()

      +

      assert_infix!(a > b) ≈ a > b

    • -

      assert_io_read_to_string_lt!(reader1, reader2) ≈ reader1.read_to_string() < reader2.read_to_string()

      +

      assert_infix!(a >= b) ≈ a ≥ b

    -

    Compare a reader with an expression:

    +

    Relate values by using an infix logical operator:

    • -

      assert_io_read_to_string_eq_expr(reader, expr) ≈ reader.read_to_string() = expr

      -
    • -
    • -

      assert_io_read_to_string_ne_expr(reader, expr) ≈ reader.read_to_string() ≠ expr

      +

      assert_infix!(a & b) ≈ a ∧ b ≈ a AND b

    • -

      assert_io_read_to_string_ge_expr(reader, expr) ≈ reader.read_to_string() ≥ expr

      +

      assert_infix!(a | b) ≈ a ∨ b ≈ a OR b

    • -

      assert_io_read_to_string_gt_expr(reader, expr) ≈ reader.read_to_string() > expr

      +

      assert_infix!(a ^ b) ≈ a ⊻ b ≈ a XOR b

    • -

      assert_io_read_to_string_le_expr(reader, expr) ≈ reader.read_to_string() ≤ expr

      +

      assert_infix!(a && b) ≈ a …∧ b ≈ a lazy AND b

    • -

      assert_io_read_to_string_lt_expr(reader, expr) ≈ reader.read_to_string() < expr

      +

      assert_infix!(a || b) ≈ a …∨ b ≈ a lazy OR b

    -

    Compare a reader with its contents:

    +

    §For nearness

    +

    Compare values by using nearness math conventions:

    • -

      assert_io_read_to_string_contains(reader, containee) ≈ reader.read_to_string().contains(containee)

      +

      assert_in_delta!(a, b, delta) ≈ | a - b | ≤ delta

    • -

      assert_io_read_to_string_matches(reader, matcher) ≈ matcher.is_match(reader.read_to_string())

      +

      assert_in_epsilon(a, b, epsilon) ≈ | a - b | ≤ epsilon * min(a, b)

    -

    §assert_command_* for process command comparisons

    -

    Compare command standard output string:

    +

    §For strings

    +

    These macros help with strings and also other structures that provide +matchers such as starts_with, ends_width, contains, and is_match. +Each macro also has a corresponding not version.

    • -

      assert_command_stdout_eq!(command1, command2) ≈ command1 stdout = command2 stdout

      +

      assert_starts_with(a, b) ≈ a.starts_with(b)

    • -

      assert_command_stdout_eq_expr!(command, expr) ≈ command stdout = expr

      +

      assert_ends_with(a, b) ≈ a.ends_with(b)

    • -

      assert_command_stdout_contains!(command, containee) ≈ command stdout contains containee

      +

      assert_contains(container, containee) ≈ container.contains(containee)

    • -

      assert_command_stdout_is_match!(command, matcher) ≈ command stdout is a matcher match

      +

      assert_is_match(matcher, matchee) ≈ matcher.is_match(matchee)

    -

    Compare command standard error string:

    +

    §For much more

    +

    There are many more macros that are conveniently grouped into modules.

    +

    For enums:

    • -

      assert_command_stderr_eq!(command1, command2) ≈ command1 stderr = command2 stderr

      -
    • -
    • -

      assert_command_stderr_eq_expr!(command, expr) ≈ command stderr = expr

      -
    • -
    • -

      assert_command_stderr_contains!(command, containee) ≈ command stderr contains containee

      +

      assert_option for Option (Some, None)

    • -

      assert_command_stderr_is_match!(command, matcher) ≈ command stderr is a matcher match

      +

      assert_result for Result (Ok, Err)

    -

    §assert_program_args_* for process command comparisons created via program name and args interator

    -

    Compare command using program and arguments to standard output:

    +

    For collections, such as arrays, vectors, lists, maps:

    • -

      assert_program_args_stdout_eq!(program1, args1, program2, args2) ≈ command using program1 and args1 to stdout = command2 with program2 and args2 to stdout

      +

      assert_set for set collections

    • -

      assert_program_args_stdout_eq_expr!(program, args, expr) ≈ command using program and args to stdout = expr

      -
    • -
    • -

      assert_program_args_stdout_contains!(program, args, containee) ≈ command using program and args to stdout contains containee

      -
    • -
    • -

      assert_program_args_stdout_is_match!(program, args, matcher) ≈ matcher is match with command using program and args

      +

      assert_bag for bag collections

    -

    Compare command using program and arguments to standard output:

    +

    For functions:

    • -

      assert_program_args_stderr_eq!(program1, args1, program2, args2) ≈ command using program1 and args1 to stderr = command2 with program2 and args2 to stderr

      +

      assert_fn for functions in general.

    • -

      assert_program_args_stderr_eq_expr!(program, args, expr) ≈ command using program and args to stderr = expr

      +

      assert_fn_ok for functions that return Result::Ok.

    • -

      assert_program_args_stderr_contains!(program, args, containee) ≈ command using program and args to stderr contains containee

      -
    • -
    • -

      assert_program_args_stderr_is_match!(program, args, matcher) ≈ matcher is match with command using program and args

      +

      assert_fn_err for functions that return Result::Err.

    -

    §Naming conventions

    -

    Abbreviations:

    +

    For readers:

    • -

      eq ≈ equal

      +

      assert_fs_read_to_string for file system path contents.

    • -

      ne ≈ not equal.

      -
    • -
    • -

      ge ≈ greater than or equal.

      -
    • -
    • -

      gt ≈ greater than

      -
    • -
    • -

      le ≈ less than or equal.

      -
    • -
    • -

      lt ≈ less than

      +

      assert_io_read_to_string for input/output reader streams.

    -

    Shorthands:

    +

    For external calls:

    • -

      path ≈ implements AsRef<Path> such as std::path::PathBuf.

      -
    • -
    • -

      reader ≈ implements method .read_to_string() such as std::io::Read.

      -
    • -
    • -

      matcher ≈ implements .is_match(…) such as regex::Regex.

      +

      assert_command for commands and their stdout & stderr.

    • -

      containee ≈ usable inside .contains(…) such as a std::string::String -substring.

      -
    • -
    • -

      set ≈ a collection such as ::std::collections::BTreeSet.

      -
    • -
    • -

      bag ≈ a collection such as ::std::collections::BTreeMap which has key -counts.

      +

      assert_program_args for programs with args and their stdout & stderr.

    -

    §Forms

    §Forms for panic! versus Err()

    +

    §Forms

    §Forms for panic! versus Err()

    The assert macros have three forms that you can use depending on your goals:

    assert_gt!(a, b); // return () or panic!(…), for typical compile-time testing
    -
    + 
     debug_assert_gt!(a, b); // return () or panic!(…), for a non-optimized runtime
    -
    + 
     assert_gt_as_result!(a, b); // return Result Ok(()) or Err(…), for any runtime

    §Forms for messages

    The assert macros have forms for default messages versus custom messages.

    assert_gt!(1, 2); // panic!("assertion failed: assert_gt(1, 2)…")
    -
    + 
     assert_gt!(1, 2, "message"); // panic!("message")

    §Forms for comparing an other versus an expression

    Some assert macros have forms for comparing an other versus an expression:

    assert_io_read_to_string_eq!(reader1, reader2); // reader1.read_to_string() = reader2.read_to_string()
    -
    + 
     assert_io_read_to_string_eq_expr!(reader, expr); // reader1.read_to_string() = expr
    -

    §Changes summary

    §Version 8.x top changes

    +

    §Change highlights

    §Version 8

    +

    8.2:

    • -

      Add assert_fs_read_to_string_* macros for comparing files.

      +

      Add assert_infix

      +
    • +
    • +

      Refactor into submodules for better discoverability and testability.

      +
    • +
    +

    8.1:

    +
      +
    • +

      Add Result macros assert_result_ok and assert_result_err

    • -

      Rename assert_read_to_string_* macros to assert_io_read_to_string_*. -If you use these macros, then please update your code to use the new -naming convention.

      +

      Add Option macros assert_option_some and assert_option_none

      +
    • +
    +

    8.0:

    +
      +
    • +

      Add assert_fs_read_to_string_* macros for comparing files.

    • -

      Add rustdoc documentation for all modules.

      +

      Breaking change: rename assert_read_to_string_* macros to assert_io_read_to_string_*. If you use these macros, then please update your code to use the new naming convention.

    -

    §Version 7.x top changes

    +

    §Version 7

    • Add assert_in_delta, assert_in_epsilon.

      @@ -562,11 +329,10 @@

      §Version 6.x top changes

      +

      §Version 6

      • -

        Add assert_starts_with, assert_ends_with, assert_contains, -assert_is_match.

        +

        Add assert_starts_with, assert_ends_with, assert_contains, assert_is_match.

      • Add debug_assert_* macros everywhere.

        @@ -578,10 +344,10 @@

        §Tracking

        • Package: assertables-rust-crate
        • -
        • Version: 8.0.2
        • +
        • Version: 8.2.0
        • Created: 2021-03-30T15:47:49Z
        • -
        • Updated: 2024-09-03T13:39:09Z
        • +
        • Updated: 2024-09-04T20:21:53Z
        • License: MIT or Apache-2.0 or GPL-2.0 or GPL-3.0 or contact us for more
        • Contact: Joel Parker Henderson (joel@sixarm.com)
        -

    Modules§

    Macros§

    \ No newline at end of file +

    Modules§

    • Assert a condition is true.
    • Assert macros for comparing bags.
    • Assert macros for comparing commands and their stdout & stderr.
    • Assert a container is a match for an expression.
    • Assert an expression (such as a string) ends with an expression (such as a string).
    • Assert an expression is equal to another.
    • Assert macros for comparing functions.
    • Assert macros for comparing functions that return errors.
    • Assert macros for comparing functions that return Result::Ok.
    • Assert macros for comparing file system path contents.
    • Assert a value is greater than or equal to an expression.
    • Assert a value is greater than an expression.
    • Assert a number is within delta of another number.
    • Assert a number is within epsilon of another number.
    • Assert a infix operator, such as assert_infix!(a == b).
    • Assert macros for comparing input/output reader streams.
    • Assert a matcher is a match for an expression.
    • Assert a value is less than or equal to an expression.
    • Assert a value is less than an expression.
    • Assert an expression is not equal to an expression.
    • Assert an expression (such as a string) does not contain an expression (such as a substring).
    • Assert an expression (such as a string) does not end with an expression (such as a string).
    • Assert an expression (such as a regex) is not a match for an expression (such as a string).
    • Assert an expression (such as a string) does not start with an expression (such as a string).
    • Assert macros for Option (Some or None)
    • Assert macros for comparing programs with arguments.
    • Assert macros for Result (Ok or Err)
    • Assert macros for comparing set collections.
    • Assert an expression (such as a string) starts with an expression (such as a string).

    Macros§

    \ No newline at end of file diff --git a/doc/lib/macro.assert_bag_eq.html b/doc/lib/macro.assert_bag_eq.html index 53e1036b9..8c41ff862 100644 --- a/doc/lib/macro.assert_bag_eq.html +++ b/doc/lib/macro.assert_bag_eq.html @@ -1,4 +1,4 @@ -assert_bag_eq in lib - Rust

    Macro lib::assert_bag_eq

    source ·
    macro_rules! assert_bag_eq {
    +assert_bag_eq in lib - Rust

    Macro lib::assert_bag_eq

    source ·
    macro_rules! assert_bag_eq {
         ($a:expr, $b:expr $(,)?) => { ... };
         ($a:expr, $b:expr, $($message:tt)+) => { ... };
     }
    Expand description

    Assert a bag is equal to another.

    diff --git a/doc/lib/macro.assert_bag_eq_as_result.html b/doc/lib/macro.assert_bag_eq_as_result.html index f79141d81..add893353 100644 --- a/doc/lib/macro.assert_bag_eq_as_result.html +++ b/doc/lib/macro.assert_bag_eq_as_result.html @@ -1,4 +1,4 @@ -assert_bag_eq_as_result in lib - Rust

    Macro lib::assert_bag_eq_as_result

    source ·
    macro_rules! assert_bag_eq_as_result {
    +assert_bag_eq_as_result in lib - Rust

    Macro lib::assert_bag_eq_as_result

    source ·
    macro_rules! assert_bag_eq_as_result {
         ($a:expr, $b:expr $(,)?) => { ... };
     }
    Expand description

    Assert a bag is equal to another.

      diff --git a/doc/lib/macro.assert_bag_ne.html b/doc/lib/macro.assert_bag_ne.html index 873ed547c..009da36fe 100644 --- a/doc/lib/macro.assert_bag_ne.html +++ b/doc/lib/macro.assert_bag_ne.html @@ -1,4 +1,4 @@ -assert_bag_ne in lib - Rust

      Macro lib::assert_bag_ne

      source ·
      macro_rules! assert_bag_ne {
      +assert_bag_ne in lib - Rust

      Macro lib::assert_bag_ne

      source ·
      macro_rules! assert_bag_ne {
           ($a:expr, $b:expr $(,)?) => { ... };
           ($a:expr, $b:expr, $($message:tt)+) => { ... };
       }
      Expand description

      Assert a bag is not equal to another.

      diff --git a/doc/lib/macro.assert_bag_ne_as_result.html b/doc/lib/macro.assert_bag_ne_as_result.html index 1bc096f72..4b3729278 100644 --- a/doc/lib/macro.assert_bag_ne_as_result.html +++ b/doc/lib/macro.assert_bag_ne_as_result.html @@ -1,4 +1,4 @@ -assert_bag_ne_as_result in lib - Rust

      Macro lib::assert_bag_ne_as_result

      source ·
      macro_rules! assert_bag_ne_as_result {
      +assert_bag_ne_as_result in lib - Rust

      Macro lib::assert_bag_ne_as_result

      source ·
      macro_rules! assert_bag_ne_as_result {
           ($a:expr, $b:expr $(,)?) => { ... };
       }
      Expand description

      Assert a bag is not equal to another.

        diff --git a/doc/lib/macro.assert_bag_subbag.html b/doc/lib/macro.assert_bag_subbag.html index 258efbdc0..6032c5697 100644 --- a/doc/lib/macro.assert_bag_subbag.html +++ b/doc/lib/macro.assert_bag_subbag.html @@ -1,4 +1,4 @@ -assert_bag_subbag in lib - Rust

        Macro lib::assert_bag_subbag

        source ·
        macro_rules! assert_bag_subbag {
        +assert_bag_subbag in lib - Rust

        Macro lib::assert_bag_subbag

        source ·
        macro_rules! assert_bag_subbag {
             ($a:expr, $b:expr $(,)?) => { ... };
             ($a:expr, $b:expr, $($message:tt)+) => { ... };
         }
        Expand description

        Assert a bag is a subbag of another.

        diff --git a/doc/lib/macro.assert_bag_subbag_as_result.html b/doc/lib/macro.assert_bag_subbag_as_result.html index b10cba966..4d38972fb 100644 --- a/doc/lib/macro.assert_bag_subbag_as_result.html +++ b/doc/lib/macro.assert_bag_subbag_as_result.html @@ -1,4 +1,4 @@ -assert_bag_subbag_as_result in lib - Rust

        Macro lib::assert_bag_subbag_as_result

        source ·
        macro_rules! assert_bag_subbag_as_result {
        +assert_bag_subbag_as_result in lib - Rust

        Macro lib::assert_bag_subbag_as_result

        source ·
        macro_rules! assert_bag_subbag_as_result {
             ($a:expr, $b:expr $(,)?) => { ... };
         }
        Expand description

        Assert a bag is a subbag of another.

          diff --git a/doc/lib/macro.assert_bag_superbag.html b/doc/lib/macro.assert_bag_superbag.html index 84ee37855..1528db1a3 100644 --- a/doc/lib/macro.assert_bag_superbag.html +++ b/doc/lib/macro.assert_bag_superbag.html @@ -1,4 +1,4 @@ -assert_bag_superbag in lib - Rust

          Macro lib::assert_bag_superbag

          source ·
          macro_rules! assert_bag_superbag {
          +assert_bag_superbag in lib - Rust

          Macro lib::assert_bag_superbag

          source ·
          macro_rules! assert_bag_superbag {
               ($a:expr, $b:expr $(,)?) => { ... };
               ($a:expr, $b:expr, $($message:tt)+) => { ... };
           }
          Expand description

          Assert a bag is a superbag of another.

          diff --git a/doc/lib/macro.assert_bag_superbag_as_result.html b/doc/lib/macro.assert_bag_superbag_as_result.html index 8e693f37c..3460ef825 100644 --- a/doc/lib/macro.assert_bag_superbag_as_result.html +++ b/doc/lib/macro.assert_bag_superbag_as_result.html @@ -1,4 +1,4 @@ -assert_bag_superbag_as_result in lib - Rust

          Macro lib::assert_bag_superbag_as_result

          source ·
          macro_rules! assert_bag_superbag_as_result {
          +assert_bag_superbag_as_result in lib - Rust

          Macro lib::assert_bag_superbag_as_result

          source ·
          macro_rules! assert_bag_superbag_as_result {
               ($a:expr, $b:expr $(,)?) => { ... };
           }
          Expand description

          Assert a bag is a superbag of another.

            diff --git a/doc/lib/macro.assert_command_stderr_contains.html b/doc/lib/macro.assert_command_stderr_contains.html index 0374ea4bb..ada6e9fed 100644 --- a/doc/lib/macro.assert_command_stderr_contains.html +++ b/doc/lib/macro.assert_command_stderr_contains.html @@ -1,4 +1,4 @@ -assert_command_stderr_contains in lib - Rust

            Macro lib::assert_command_stderr_contains

            source ·
            macro_rules! assert_command_stderr_contains {
            +assert_command_stderr_contains in lib - Rust

            Macro lib::assert_command_stderr_contains

            source ·
            macro_rules! assert_command_stderr_contains {
                 ($a_command:expr, $b:expr $(,)?) => { ... };
                 ($a_command:expr, $b:expr, $($message:tt)+) => { ... };
             }
            Expand description

            Assert a command stderr string contains a given containee.

            diff --git a/doc/lib/macro.assert_command_stderr_contains_as_result.html b/doc/lib/macro.assert_command_stderr_contains_as_result.html index 531b55358..078e16a01 100644 --- a/doc/lib/macro.assert_command_stderr_contains_as_result.html +++ b/doc/lib/macro.assert_command_stderr_contains_as_result.html @@ -1,4 +1,4 @@ -assert_command_stderr_contains_as_result in lib - Rust
            macro_rules! assert_command_stderr_contains_as_result {
            +assert_command_stderr_contains_as_result in lib - Rust
            macro_rules! assert_command_stderr_contains_as_result {
                 ($a_command:expr, $b_containee:expr $(,)?) => { ... };
             }
            Expand description

            Assert a command stderr string contains a given containee.

              diff --git a/doc/lib/macro.assert_command_stderr_eq.html b/doc/lib/macro.assert_command_stderr_eq.html index 6d3729212..7fc0cc56c 100644 --- a/doc/lib/macro.assert_command_stderr_eq.html +++ b/doc/lib/macro.assert_command_stderr_eq.html @@ -1,4 +1,4 @@ -assert_command_stderr_eq in lib - Rust

              Macro lib::assert_command_stderr_eq

              source ·
              macro_rules! assert_command_stderr_eq {
              +assert_command_stderr_eq in lib - Rust

              Macro lib::assert_command_stderr_eq

              source ·
              macro_rules! assert_command_stderr_eq {
                   ($a_command:expr, $b_command:expr $(,)?) => { ... };
                   ($a_command:expr, $b_command:expr, $($message:tt)+) => { ... };
               }
              Expand description

              Assert a command stderr string is equal to another.

              diff --git a/doc/lib/macro.assert_command_stderr_eq_as_result.html b/doc/lib/macro.assert_command_stderr_eq_as_result.html index 24c31e98f..f98243fb3 100644 --- a/doc/lib/macro.assert_command_stderr_eq_as_result.html +++ b/doc/lib/macro.assert_command_stderr_eq_as_result.html @@ -1,4 +1,4 @@ -assert_command_stderr_eq_as_result in lib - Rust

              Macro lib::assert_command_stderr_eq_as_result

              source ·
              macro_rules! assert_command_stderr_eq_as_result {
              +assert_command_stderr_eq_as_result in lib - Rust

              Macro lib::assert_command_stderr_eq_as_result

              source ·
              macro_rules! assert_command_stderr_eq_as_result {
                   ($a_command:expr, $b_command:expr $(,)?) => { ... };
               }
              Expand description

              Assert a command stderr string is equal to another.

                diff --git a/doc/lib/macro.assert_command_stderr_eq_expr.html b/doc/lib/macro.assert_command_stderr_eq_expr.html index d17e2c1fd..2d95db972 100644 --- a/doc/lib/macro.assert_command_stderr_eq_expr.html +++ b/doc/lib/macro.assert_command_stderr_eq_expr.html @@ -1,4 +1,4 @@ -assert_command_stderr_eq_expr in lib - Rust

                Macro lib::assert_command_stderr_eq_expr

                source ·
                macro_rules! assert_command_stderr_eq_expr {
                +assert_command_stderr_eq_expr in lib - Rust

                Macro lib::assert_command_stderr_eq_expr

                source ·
                macro_rules! assert_command_stderr_eq_expr {
                     ($a_command:expr, $b_expr:expr $(,)?) => { ... };
                     ($a_command:expr, $b_expr:expr, $($message:tt)+) => { ... };
                 }
                Expand description

                Assert a command stderr string is equal to an expression.

                diff --git a/doc/lib/macro.assert_command_stderr_eq_expr_as_result.html b/doc/lib/macro.assert_command_stderr_eq_expr_as_result.html index 3ee7dae25..d990f7394 100644 --- a/doc/lib/macro.assert_command_stderr_eq_expr_as_result.html +++ b/doc/lib/macro.assert_command_stderr_eq_expr_as_result.html @@ -1,4 +1,4 @@ -assert_command_stderr_eq_expr_as_result in lib - Rust
                macro_rules! assert_command_stderr_eq_expr_as_result {
                +assert_command_stderr_eq_expr_as_result in lib - Rust
                macro_rules! assert_command_stderr_eq_expr_as_result {
                     ($a_command:expr, $b_expr:expr $(,)?) => { ... };
                 }
                Expand description

                Assert a command stderr string is equal to an expression.

                  diff --git a/doc/lib/macro.assert_command_stderr_is_match.html b/doc/lib/macro.assert_command_stderr_is_match.html index 314035831..7d9891fb2 100644 --- a/doc/lib/macro.assert_command_stderr_is_match.html +++ b/doc/lib/macro.assert_command_stderr_is_match.html @@ -1,4 +1,4 @@ -assert_command_stderr_is_match in lib - Rust

                  Macro lib::assert_command_stderr_is_match

                  source ·
                  macro_rules! assert_command_stderr_is_match {
                  +assert_command_stderr_is_match in lib - Rust

                  Macro lib::assert_command_stderr_is_match

                  source ·
                  macro_rules! assert_command_stderr_is_match {
                       ($a_command:expr, $b_matcher:expr $(,)?) => { ... };
                       ($a_command:expr, $b_matcher:expr, $($message:tt)+) => { ... };
                   }
                  Expand description

                  Assert a command stderr string is a match to a regex.

                  diff --git a/doc/lib/macro.assert_command_stderr_is_match_as_result.html b/doc/lib/macro.assert_command_stderr_is_match_as_result.html index 0339ed2ae..432efcbbc 100644 --- a/doc/lib/macro.assert_command_stderr_is_match_as_result.html +++ b/doc/lib/macro.assert_command_stderr_is_match_as_result.html @@ -1,4 +1,4 @@ -assert_command_stderr_is_match_as_result in lib - Rust
                  macro_rules! assert_command_stderr_is_match_as_result {
                  +assert_command_stderr_is_match_as_result in lib - Rust
                  macro_rules! assert_command_stderr_is_match_as_result {
                       ($a_command:expr, $b_matcher:expr $(,)?) => { ... };
                   }
                  Expand description

                  Assert a command stderr string is a match to a regex.

                    diff --git a/doc/lib/macro.assert_command_stdout_contains.html b/doc/lib/macro.assert_command_stdout_contains.html index 145aa86e6..fe77883fc 100644 --- a/doc/lib/macro.assert_command_stdout_contains.html +++ b/doc/lib/macro.assert_command_stdout_contains.html @@ -1,4 +1,4 @@ -assert_command_stdout_contains in lib - Rust

                    Macro lib::assert_command_stdout_contains

                    source ·
                    macro_rules! assert_command_stdout_contains {
                    +assert_command_stdout_contains in lib - Rust

                    Macro lib::assert_command_stdout_contains

                    source ·
                    macro_rules! assert_command_stdout_contains {
                         ($a_command:expr, $b:expr $(,)?) => { ... };
                         ($a_command:expr, $b:expr, $($message:tt)+) => { ... };
                     }
                    Expand description

                    Assert a command stdout string contains a given containee.

                    diff --git a/doc/lib/macro.assert_command_stdout_contains_as_result.html b/doc/lib/macro.assert_command_stdout_contains_as_result.html index 98507a7b7..55005253d 100644 --- a/doc/lib/macro.assert_command_stdout_contains_as_result.html +++ b/doc/lib/macro.assert_command_stdout_contains_as_result.html @@ -1,4 +1,4 @@ -assert_command_stdout_contains_as_result in lib - Rust
                    macro_rules! assert_command_stdout_contains_as_result {
                    +assert_command_stdout_contains_as_result in lib - Rust
                    macro_rules! assert_command_stdout_contains_as_result {
                         ($a_command:expr, $b_containee:expr $(,)?) => { ... };
                     }
                    Expand description

                    Assert a command stdout string contains a given containee.

                      diff --git a/doc/lib/macro.assert_command_stdout_eq.html b/doc/lib/macro.assert_command_stdout_eq.html index cf042b3f7..16d735b7b 100644 --- a/doc/lib/macro.assert_command_stdout_eq.html +++ b/doc/lib/macro.assert_command_stdout_eq.html @@ -1,4 +1,4 @@ -assert_command_stdout_eq in lib - Rust

                      Macro lib::assert_command_stdout_eq

                      source ·
                      macro_rules! assert_command_stdout_eq {
                      +assert_command_stdout_eq in lib - Rust

                      Macro lib::assert_command_stdout_eq

                      source ·
                      macro_rules! assert_command_stdout_eq {
                           ($a_command:expr, $b_command:expr $(,)?) => { ... };
                           ($a_command:expr, $b_command:expr, $($message:tt)+) => { ... };
                       }
                      Expand description

                      Assert a command stdout string is equal to another.

                      diff --git a/doc/lib/macro.assert_command_stdout_eq_as_result.html b/doc/lib/macro.assert_command_stdout_eq_as_result.html index 0ce2fcd4c..f330f569a 100644 --- a/doc/lib/macro.assert_command_stdout_eq_as_result.html +++ b/doc/lib/macro.assert_command_stdout_eq_as_result.html @@ -1,4 +1,4 @@ -assert_command_stdout_eq_as_result in lib - Rust

                      Macro lib::assert_command_stdout_eq_as_result

                      source ·
                      macro_rules! assert_command_stdout_eq_as_result {
                      +assert_command_stdout_eq_as_result in lib - Rust

                      Macro lib::assert_command_stdout_eq_as_result

                      source ·
                      macro_rules! assert_command_stdout_eq_as_result {
                           ($a_command:expr, $b_command:expr $(,)?) => { ... };
                       }
                      Expand description

                      Assert a command stdout string is equal to another.

                        diff --git a/doc/lib/macro.assert_command_stdout_eq_expr.html b/doc/lib/macro.assert_command_stdout_eq_expr.html index 45570d8c9..d6a873995 100644 --- a/doc/lib/macro.assert_command_stdout_eq_expr.html +++ b/doc/lib/macro.assert_command_stdout_eq_expr.html @@ -1,4 +1,4 @@ -assert_command_stdout_eq_expr in lib - Rust

                        Macro lib::assert_command_stdout_eq_expr

                        source ·
                        macro_rules! assert_command_stdout_eq_expr {
                        +assert_command_stdout_eq_expr in lib - Rust

                        Macro lib::assert_command_stdout_eq_expr

                        source ·
                        macro_rules! assert_command_stdout_eq_expr {
                             ($a_command:expr, $b_expr:expr $(,)?) => { ... };
                             ($a_command:expr, $b_expr:expr, $($message:tt)+) => { ... };
                         }
                        Expand description

                        Assert a command stdout string is equal to an expression.

                        diff --git a/doc/lib/macro.assert_command_stdout_eq_expr_as_result.html b/doc/lib/macro.assert_command_stdout_eq_expr_as_result.html index a4a384d58..a5a15768e 100644 --- a/doc/lib/macro.assert_command_stdout_eq_expr_as_result.html +++ b/doc/lib/macro.assert_command_stdout_eq_expr_as_result.html @@ -1,4 +1,4 @@ -assert_command_stdout_eq_expr_as_result in lib - Rust
                        macro_rules! assert_command_stdout_eq_expr_as_result {
                        +assert_command_stdout_eq_expr_as_result in lib - Rust
                        macro_rules! assert_command_stdout_eq_expr_as_result {
                             ($a_command:expr, $b_expr:expr $(,)?) => { ... };
                         }
                        Expand description

                        Assert a command stdout string is equal to an expression.

                          diff --git a/doc/lib/macro.assert_command_stdout_is_match.html b/doc/lib/macro.assert_command_stdout_is_match.html index 6f5e54794..625c11abb 100644 --- a/doc/lib/macro.assert_command_stdout_is_match.html +++ b/doc/lib/macro.assert_command_stdout_is_match.html @@ -1,4 +1,4 @@ -assert_command_stdout_is_match in lib - Rust

                          Macro lib::assert_command_stdout_is_match

                          source ·
                          macro_rules! assert_command_stdout_is_match {
                          +assert_command_stdout_is_match in lib - Rust

                          Macro lib::assert_command_stdout_is_match

                          source ·
                          macro_rules! assert_command_stdout_is_match {
                               ($a_command:expr, $b_matcher:expr $(,)?) => { ... };
                               ($a_command:expr, $b_matcher:expr, $($message:tt)+) => { ... };
                           }
                          Expand description

                          Assert a command stdout string is a match to a regex.

                          diff --git a/doc/lib/macro.assert_command_stdout_is_match_as_result.html b/doc/lib/macro.assert_command_stdout_is_match_as_result.html index 2ed336827..e2a69c597 100644 --- a/doc/lib/macro.assert_command_stdout_is_match_as_result.html +++ b/doc/lib/macro.assert_command_stdout_is_match_as_result.html @@ -1,4 +1,4 @@ -assert_command_stdout_is_match_as_result in lib - Rust
                          macro_rules! assert_command_stdout_is_match_as_result {
                          +assert_command_stdout_is_match_as_result in lib - Rust
                          macro_rules! assert_command_stdout_is_match_as_result {
                               ($a_command:expr, $b_matcher:expr $(,)?) => { ... };
                           }
                          Expand description

                          Assert a command stdout string is a match to a regex.

                            diff --git a/doc/lib/macro.assert_fn_eq.html b/doc/lib/macro.assert_fn_eq.html index 007f8e736..6afad99ac 100644 --- a/doc/lib/macro.assert_fn_eq.html +++ b/doc/lib/macro.assert_fn_eq.html @@ -1,5 +1,5 @@ -assert_fn_eq in lib - Rust

                            Macro lib::assert_fn_eq

                            source ·
                            macro_rules! assert_fn_eq {
                            -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                            +assert_fn_eq in lib - Rust

                            Macro lib::assert_fn_eq

                            source ·
                            macro_rules! assert_fn_eq {
                            +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                 ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => { ... };
                                 ($a_function:path, $b_function:path) => { ... };
                                 ($a_function:path, $b_function:path, $($message:tt)+) => { ... };
                            @@ -15,26 +15,26 @@
                             

                          §Examples

                          // Return Ok
                          -let a: i32 = -1;
                          -let b: i32 = 1;
                          -assert_fn_eq!(i32::abs, a, i32::abs, b);
                          +let a: i8 = -1;
                          +let b: i8 = 1;
                          +assert_fn_eq!(i8::abs, a, i8::abs, b);
                           //-> ()
                           
                           // Panic with error message
                           let result = panic::catch_unwind(|| {
                          -let a: i32 = -1;
                          -let b: i32 = 2;
                          -assert_fn_eq!(i32::abs, a, i32::abs, b);
                          +let a: i8 = -1;
                          +let b: i8 = 2;
                          +assert_fn_eq!(i8::abs, a, i8::abs, b);
                           //-> panic!
                           });
                           assert!(result.is_err());
                           let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                           let expect = concat!(
                               "assertion failed: `assert_fn_eq!(left_function, left_param, right_function, right_param)`\n",
                          -    "  left_function label: `i32::abs`,\n",
                          +    "  left_function label: `i8::abs`,\n",
                               "     left_param label: `a`,\n",
                               "     left_param debug: `-1`,\n",
                          -    " right_function label: `i32::abs`,\n",
                          +    " right_function label: `i8::abs`,\n",
                               "    right_param label: `b`,\n",
                               "    right_param debug: `2`,\n",
                               "                 left: `1`,\n",
                          @@ -44,9 +44,9 @@ 

                          §Examples

                          // Panic with error message let result = panic::catch_unwind(|| { -let a: i32 = -1; -let b: i32 = 2; -assert_fn_eq!(i32::abs, a, i32::abs, b, "message"); +let a: i8 = -1; +let b: i8 = 2; +assert_fn_eq!(i8::abs, a, i8::abs, b, "message"); //-> panic! }); assert!(result.is_err()); diff --git a/doc/lib/macro.assert_fn_eq_as_result.html b/doc/lib/macro.assert_fn_eq_as_result.html index 7c071f65f..a59d2232c 100644 --- a/doc/lib/macro.assert_fn_eq_as_result.html +++ b/doc/lib/macro.assert_fn_eq_as_result.html @@ -1,5 +1,5 @@ -assert_fn_eq_as_result in lib - Rust

                          Macro lib::assert_fn_eq_as_result

                          source ·
                          macro_rules! assert_fn_eq_as_result {
                          -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                          +assert_fn_eq_as_result in lib - Rust

                          Macro lib::assert_fn_eq_as_result

                          source ·
                          macro_rules! assert_fn_eq_as_result {
                          +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                               ($a_function:path, $b_function:path) => { ... };
                           }
                          Expand description

                          Assert a function output is equal to another function output.

                            diff --git a/doc/lib/macro.assert_fn_eq_expr.html b/doc/lib/macro.assert_fn_eq_expr.html index 5769f97e9..069b5cf2b 100644 --- a/doc/lib/macro.assert_fn_eq_expr.html +++ b/doc/lib/macro.assert_fn_eq_expr.html @@ -1,7 +1,7 @@ -assert_fn_eq_expr in lib - Rust

                            Macro lib::assert_fn_eq_expr

                            source ·
                            macro_rules! assert_fn_eq_expr {
                            -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                            +assert_fn_eq_expr in lib - Rust

                            Macro lib::assert_fn_eq_expr

                            source ·
                            macro_rules! assert_fn_eq_expr {
                            +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                 ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => { ... };
                            -    ($a_function:path, $b_expr:expr) => { ... };
                            +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                 ($a_function:path, $b_expr:expr, $($message:tt)+) => { ... };
                             }
                            Expand description

                            Assert a function output is equal to an expression.

                              @@ -15,23 +15,23 @@

                            §Examples

                            // Return Ok
                            -let a: i32 = -1;
                            -let b: i32 = 1;
                            -assert_fn_eq_expr!(i32::abs, a, b);
                            +let a: i8 = -1;
                            +let b: i8 = 1;
                            +assert_fn_eq_expr!(i8::abs, a, b);
                             //-> ()
                             
                            -let a: i32 = -1;
                            -let b: i32 = 2;
                            +let a: i8 = -1;
                            +let b: i8 = 2;
                             // Panic with error message
                             let result = panic::catch_unwind(|| {
                            -assert_fn_eq_expr!(i32::abs, a, b);
                            +assert_fn_eq_expr!(i8::abs, a, b);
                             //-> panic!
                             });
                             assert!(result.is_err());
                             let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                             let expect = concat!(
                                 "assertion failed: `assert_fn_eq_expr!(left_function, left_param, right_expr)`\n",
                            -    " left_function label: `i32::abs`,\n",
                            +    " left_function label: `i8::abs`,\n",
                                 "    left_param label: `a`,\n",
                                 "    left_param debug: `-1`,\n",
                                 "    right_expr label: `b`,\n",
                            @@ -43,7 +43,7 @@ 

                            §Examples

                            // Panic with error message let result = panic::catch_unwind(|| { -assert_fn_eq_expr!(i32::abs, a, b, "message"); +assert_fn_eq_expr!(i8::abs, a, b, "message"); //-> panic! }); assert!(result.is_err()); diff --git a/doc/lib/macro.assert_fn_eq_expr_as_result.html b/doc/lib/macro.assert_fn_eq_expr_as_result.html index 900040e17..bce80811c 100644 --- a/doc/lib/macro.assert_fn_eq_expr_as_result.html +++ b/doc/lib/macro.assert_fn_eq_expr_as_result.html @@ -1,6 +1,6 @@ -assert_fn_eq_expr_as_result in lib - Rust

                            Macro lib::assert_fn_eq_expr_as_result

                            source ·
                            macro_rules! assert_fn_eq_expr_as_result {
                            -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                            -    ($a_function:path, $b_expr:expr) => { ... };
                            +assert_fn_eq_expr_as_result in lib - Rust

                            Macro lib::assert_fn_eq_expr_as_result

                            source ·
                            macro_rules! assert_fn_eq_expr_as_result {
                            +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                            +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                             }
                            Expand description

                            Assert a function output is equal to an expression.

                            • diff --git a/doc/lib/macro.assert_fn_err_eq.html b/doc/lib/macro.assert_fn_err_eq.html index c5c829ec2..41633fc27 100644 --- a/doc/lib/macro.assert_fn_err_eq.html +++ b/doc/lib/macro.assert_fn_err_eq.html @@ -1,5 +1,5 @@ -assert_fn_err_eq in lib - Rust

                              Macro lib::assert_fn_err_eq

                              source ·
                              macro_rules! assert_fn_err_eq {
                              -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                              +assert_fn_err_eq in lib - Rust

                              Macro lib::assert_fn_err_eq

                              source ·
                              macro_rules! assert_fn_err_eq {
                              +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                   ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => { ... };
                                   ($a_function:path, $b_function:path) => { ... };
                                   ($a_function:path, $b_function:path, $($message:tt)+) => { ... };
                              diff --git a/doc/lib/macro.assert_fn_err_eq_as_result.html b/doc/lib/macro.assert_fn_err_eq_as_result.html
                              index e28063400..61e15cde4 100644
                              --- a/doc/lib/macro.assert_fn_err_eq_as_result.html
                              +++ b/doc/lib/macro.assert_fn_err_eq_as_result.html
                              @@ -1,5 +1,5 @@
                              -assert_fn_err_eq_as_result in lib - Rust

                              Macro lib::assert_fn_err_eq_as_result

                              source ·
                              macro_rules! assert_fn_err_eq_as_result {
                              -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                              +assert_fn_err_eq_as_result in lib - Rust

                              Macro lib::assert_fn_err_eq_as_result

                              source ·
                              macro_rules! assert_fn_err_eq_as_result {
                              +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                   ($a_function:path, $b_function:path) => { ... };
                               }
                              Expand description

                              Assert a function err() is equal to another.

                                diff --git a/doc/lib/macro.assert_fn_err_eq_expr.html b/doc/lib/macro.assert_fn_err_eq_expr.html index 19bdc0dc5..4e8a95d85 100644 --- a/doc/lib/macro.assert_fn_err_eq_expr.html +++ b/doc/lib/macro.assert_fn_err_eq_expr.html @@ -1,7 +1,7 @@ -assert_fn_err_eq_expr in lib - Rust

                                Macro lib::assert_fn_err_eq_expr

                                source ·
                                macro_rules! assert_fn_err_eq_expr {
                                -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                +assert_fn_err_eq_expr in lib - Rust

                                Macro lib::assert_fn_err_eq_expr

                                source ·
                                macro_rules! assert_fn_err_eq_expr {
                                +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                     ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                -    ($a_function:path, $b_expr:expr) => { ... };
                                +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                     ($a_function:path, $b_expr:expr, $($message:tt)+) => { ... };
                                 }
                                Expand description

                                Assert a function err() is equal to an expression.

                                  diff --git a/doc/lib/macro.assert_fn_err_eq_expr_as_result.html b/doc/lib/macro.assert_fn_err_eq_expr_as_result.html index c50bd99bd..8ddc43650 100644 --- a/doc/lib/macro.assert_fn_err_eq_expr_as_result.html +++ b/doc/lib/macro.assert_fn_err_eq_expr_as_result.html @@ -1,6 +1,6 @@ -assert_fn_err_eq_expr_as_result in lib - Rust

                                  Macro lib::assert_fn_err_eq_expr_as_result

                                  source ·
                                  macro_rules! assert_fn_err_eq_expr_as_result {
                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                  -    ($a_function:path, $b_expr:expr) => { ... };
                                  +assert_fn_err_eq_expr_as_result in lib - Rust

                                  Macro lib::assert_fn_err_eq_expr_as_result

                                  source ·
                                  macro_rules! assert_fn_err_eq_expr_as_result {
                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                  +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                   }
                                  Expand description

                                  Assert a function err() is equal to an expression.

                                  • diff --git a/doc/lib/macro.assert_fn_err_ge.html b/doc/lib/macro.assert_fn_err_ge.html index cbec8753d..707962bc8 100644 --- a/doc/lib/macro.assert_fn_err_ge.html +++ b/doc/lib/macro.assert_fn_err_ge.html @@ -1,5 +1,5 @@ -assert_fn_err_ge in lib - Rust

                                    Macro lib::assert_fn_err_ge

                                    source ·
                                    macro_rules! assert_fn_err_ge {
                                    -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                    +assert_fn_err_ge in lib - Rust

                                    Macro lib::assert_fn_err_ge

                                    source ·
                                    macro_rules! assert_fn_err_ge {
                                    +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                         ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => { ... };
                                         ($a_function:path, $b_function:path) => { ... };
                                         ($a_function:path, $b_function:path, $($message:tt)+) => { ... };
                                    diff --git a/doc/lib/macro.assert_fn_err_ge_as_result.html b/doc/lib/macro.assert_fn_err_ge_as_result.html
                                    index 26a2061e9..b535f9fdd 100644
                                    --- a/doc/lib/macro.assert_fn_err_ge_as_result.html
                                    +++ b/doc/lib/macro.assert_fn_err_ge_as_result.html
                                    @@ -1,5 +1,5 @@
                                    -assert_fn_err_ge_as_result in lib - Rust

                                    Macro lib::assert_fn_err_ge_as_result

                                    source ·
                                    macro_rules! assert_fn_err_ge_as_result {
                                    -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                    +assert_fn_err_ge_as_result in lib - Rust

                                    Macro lib::assert_fn_err_ge_as_result

                                    source ·
                                    macro_rules! assert_fn_err_ge_as_result {
                                    +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                         ($a_function:path, $b_function:path) => { ... };
                                     }
                                    Expand description

                                    Assert a function err() is greater than or equal to another.

                                      diff --git a/doc/lib/macro.assert_fn_err_ge_expr.html b/doc/lib/macro.assert_fn_err_ge_expr.html index 58e340073..151b35a83 100644 --- a/doc/lib/macro.assert_fn_err_ge_expr.html +++ b/doc/lib/macro.assert_fn_err_ge_expr.html @@ -1,7 +1,7 @@ -assert_fn_err_ge_expr in lib - Rust

                                      Macro lib::assert_fn_err_ge_expr

                                      source ·
                                      macro_rules! assert_fn_err_ge_expr {
                                      -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                      +assert_fn_err_ge_expr in lib - Rust

                                      Macro lib::assert_fn_err_ge_expr

                                      source ·
                                      macro_rules! assert_fn_err_ge_expr {
                                      +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                           ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                      -    ($a_function:path, $b_expr:expr) => { ... };
                                      +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                           ($a_function:path, $b_expr:expr, $($message:tt)+) => { ... };
                                       }
                                      Expand description

                                      Assert a function err() is greater than or equal to an expression.

                                        diff --git a/doc/lib/macro.assert_fn_err_ge_expr_as_result.html b/doc/lib/macro.assert_fn_err_ge_expr_as_result.html index d4f0c13ce..31c7b1038 100644 --- a/doc/lib/macro.assert_fn_err_ge_expr_as_result.html +++ b/doc/lib/macro.assert_fn_err_ge_expr_as_result.html @@ -1,6 +1,6 @@ -assert_fn_err_ge_expr_as_result in lib - Rust

                                        Macro lib::assert_fn_err_ge_expr_as_result

                                        source ·
                                        macro_rules! assert_fn_err_ge_expr_as_result {
                                        -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                        -    ($a_function:path, $b_expr:expr) => { ... };
                                        +assert_fn_err_ge_expr_as_result in lib - Rust

                                        Macro lib::assert_fn_err_ge_expr_as_result

                                        source ·
                                        macro_rules! assert_fn_err_ge_expr_as_result {
                                        +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                        +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                         }
                                        Expand description

                                        Assert a function err() is greater than or equal to an expression.

                                        • diff --git a/doc/lib/macro.assert_fn_err_gt.html b/doc/lib/macro.assert_fn_err_gt.html index c2a05bd5b..8e64819ce 100644 --- a/doc/lib/macro.assert_fn_err_gt.html +++ b/doc/lib/macro.assert_fn_err_gt.html @@ -1,5 +1,5 @@ -assert_fn_err_gt in lib - Rust

                                          Macro lib::assert_fn_err_gt

                                          source ·
                                          macro_rules! assert_fn_err_gt {
                                          -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                          +assert_fn_err_gt in lib - Rust

                                          Macro lib::assert_fn_err_gt

                                          source ·
                                          macro_rules! assert_fn_err_gt {
                                          +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                               ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => { ... };
                                               ($a_function:path, $b_function:path) => { ... };
                                               ($a_function:path, $b_function:path, $($message:tt)+) => { ... };
                                          diff --git a/doc/lib/macro.assert_fn_err_gt_as_result.html b/doc/lib/macro.assert_fn_err_gt_as_result.html
                                          index 78cacdc4b..80688e653 100644
                                          --- a/doc/lib/macro.assert_fn_err_gt_as_result.html
                                          +++ b/doc/lib/macro.assert_fn_err_gt_as_result.html
                                          @@ -1,5 +1,5 @@
                                          -assert_fn_err_gt_as_result in lib - Rust

                                          Macro lib::assert_fn_err_gt_as_result

                                          source ·
                                          macro_rules! assert_fn_err_gt_as_result {
                                          -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                          +assert_fn_err_gt_as_result in lib - Rust

                                          Macro lib::assert_fn_err_gt_as_result

                                          source ·
                                          macro_rules! assert_fn_err_gt_as_result {
                                          +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                               ($a_function:path, $b_function:path) => { ... };
                                           }
                                          Expand description

                                          Assert a function err() is greater than another.

                                            diff --git a/doc/lib/macro.assert_fn_err_gt_expr.html b/doc/lib/macro.assert_fn_err_gt_expr.html index 27b3433ea..ce0a986f2 100644 --- a/doc/lib/macro.assert_fn_err_gt_expr.html +++ b/doc/lib/macro.assert_fn_err_gt_expr.html @@ -1,7 +1,7 @@ -assert_fn_err_gt_expr in lib - Rust

                                            Macro lib::assert_fn_err_gt_expr

                                            source ·
                                            macro_rules! assert_fn_err_gt_expr {
                                            -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                            +assert_fn_err_gt_expr in lib - Rust

                                            Macro lib::assert_fn_err_gt_expr

                                            source ·
                                            macro_rules! assert_fn_err_gt_expr {
                                            +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                 ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                            -    ($a_function:path, $b_expr:expr) => { ... };
                                            +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                 ($a_function:path, $b_expr:expr, $($message:tt)+) => { ... };
                                             }
                                            Expand description

                                            Assert a function err() is greater than an expression.

                                              diff --git a/doc/lib/macro.assert_fn_err_gt_expr_as_result.html b/doc/lib/macro.assert_fn_err_gt_expr_as_result.html index 07fbba23f..a4f1e5565 100644 --- a/doc/lib/macro.assert_fn_err_gt_expr_as_result.html +++ b/doc/lib/macro.assert_fn_err_gt_expr_as_result.html @@ -1,6 +1,6 @@ -assert_fn_err_gt_expr_as_result in lib - Rust

                                              Macro lib::assert_fn_err_gt_expr_as_result

                                              source ·
                                              macro_rules! assert_fn_err_gt_expr_as_result {
                                              -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                              -    ($a_function:path, $b_expr:expr) => { ... };
                                              +assert_fn_err_gt_expr_as_result in lib - Rust

                                              Macro lib::assert_fn_err_gt_expr_as_result

                                              source ·
                                              macro_rules! assert_fn_err_gt_expr_as_result {
                                              +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                              +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                               }
                                              Expand description

                                              Assert a function err() is greater than an expression.

                                              • diff --git a/doc/lib/macro.assert_fn_err_le.html b/doc/lib/macro.assert_fn_err_le.html index 21611874a..c4d578dc0 100644 --- a/doc/lib/macro.assert_fn_err_le.html +++ b/doc/lib/macro.assert_fn_err_le.html @@ -1,5 +1,5 @@ -assert_fn_err_le in lib - Rust

                                                Macro lib::assert_fn_err_le

                                                source ·
                                                macro_rules! assert_fn_err_le {
                                                -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                +assert_fn_err_le in lib - Rust

                                                Macro lib::assert_fn_err_le

                                                source ·
                                                macro_rules! assert_fn_err_le {
                                                +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                     ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => { ... };
                                                     ($a_function:path, $b_function:path) => { ... };
                                                     ($a_function:path, $b_function:path, $($message:tt)+) => { ... };
                                                diff --git a/doc/lib/macro.assert_fn_err_le_as_result.html b/doc/lib/macro.assert_fn_err_le_as_result.html
                                                index 22ad5a52b..53c44646c 100644
                                                --- a/doc/lib/macro.assert_fn_err_le_as_result.html
                                                +++ b/doc/lib/macro.assert_fn_err_le_as_result.html
                                                @@ -1,5 +1,5 @@
                                                -assert_fn_err_le_as_result in lib - Rust

                                                Macro lib::assert_fn_err_le_as_result

                                                source ·
                                                macro_rules! assert_fn_err_le_as_result {
                                                -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                +assert_fn_err_le_as_result in lib - Rust

                                                Macro lib::assert_fn_err_le_as_result

                                                source ·
                                                macro_rules! assert_fn_err_le_as_result {
                                                +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                     ($a_function:path, $b_function:path) => { ... };
                                                 }
                                                Expand description

                                                Assert a function err() is less than or equal to another.

                                                  diff --git a/doc/lib/macro.assert_fn_err_le_expr.html b/doc/lib/macro.assert_fn_err_le_expr.html index dc6103555..907c26ddc 100644 --- a/doc/lib/macro.assert_fn_err_le_expr.html +++ b/doc/lib/macro.assert_fn_err_le_expr.html @@ -1,7 +1,7 @@ -assert_fn_err_le_expr in lib - Rust

                                                  Macro lib::assert_fn_err_le_expr

                                                  source ·
                                                  macro_rules! assert_fn_err_le_expr {
                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                  +assert_fn_err_le_expr in lib - Rust

                                                  Macro lib::assert_fn_err_le_expr

                                                  source ·
                                                  macro_rules! assert_fn_err_le_expr {
                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                       ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                  -    ($a_function:path, $b_expr:expr) => { ... };
                                                  +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                       ($a_function:path, $b_expr:expr, $($message:tt)+) => { ... };
                                                   }
                                                  Expand description

                                                  Assert a function err() is less than or equal to an expression.

                                                    diff --git a/doc/lib/macro.assert_fn_err_le_expr_as_result.html b/doc/lib/macro.assert_fn_err_le_expr_as_result.html index 92d442dc8..492fd6cf8 100644 --- a/doc/lib/macro.assert_fn_err_le_expr_as_result.html +++ b/doc/lib/macro.assert_fn_err_le_expr_as_result.html @@ -1,6 +1,6 @@ -assert_fn_err_le_expr_as_result in lib - Rust

                                                    Macro lib::assert_fn_err_le_expr_as_result

                                                    source ·
                                                    macro_rules! assert_fn_err_le_expr_as_result {
                                                    -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                    -    ($a_function:path, $b_expr:expr) => { ... };
                                                    +assert_fn_err_le_expr_as_result in lib - Rust

                                                    Macro lib::assert_fn_err_le_expr_as_result

                                                    source ·
                                                    macro_rules! assert_fn_err_le_expr_as_result {
                                                    +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                    +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                     }
                                                    Expand description

                                                    Assert a function err() is less than or equal to an expression.

                                                    • diff --git a/doc/lib/macro.assert_fn_err_lt.html b/doc/lib/macro.assert_fn_err_lt.html index 27acc4ff9..a7d345997 100644 --- a/doc/lib/macro.assert_fn_err_lt.html +++ b/doc/lib/macro.assert_fn_err_lt.html @@ -1,5 +1,5 @@ -assert_fn_err_lt in lib - Rust

                                                      Macro lib::assert_fn_err_lt

                                                      source ·
                                                      macro_rules! assert_fn_err_lt {
                                                      -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                      +assert_fn_err_lt in lib - Rust

                                                      Macro lib::assert_fn_err_lt

                                                      source ·
                                                      macro_rules! assert_fn_err_lt {
                                                      +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                           ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => { ... };
                                                           ($a_function:path, $b_function:path) => { ... };
                                                           ($a_function:path, $b_function:path, $($message:tt)+) => { ... };
                                                      diff --git a/doc/lib/macro.assert_fn_err_lt_as_result.html b/doc/lib/macro.assert_fn_err_lt_as_result.html
                                                      index fbe0d910e..3d76a1898 100644
                                                      --- a/doc/lib/macro.assert_fn_err_lt_as_result.html
                                                      +++ b/doc/lib/macro.assert_fn_err_lt_as_result.html
                                                      @@ -1,5 +1,5 @@
                                                      -assert_fn_err_lt_as_result in lib - Rust

                                                      Macro lib::assert_fn_err_lt_as_result

                                                      source ·
                                                      macro_rules! assert_fn_err_lt_as_result {
                                                      -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                      +assert_fn_err_lt_as_result in lib - Rust

                                                      Macro lib::assert_fn_err_lt_as_result

                                                      source ·
                                                      macro_rules! assert_fn_err_lt_as_result {
                                                      +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                           ($a_function:path, $b_function:path) => { ... };
                                                       }
                                                      Expand description

                                                      Assert a function err() is less than another.

                                                        diff --git a/doc/lib/macro.assert_fn_err_lt_expr.html b/doc/lib/macro.assert_fn_err_lt_expr.html index abacac520..804c27fd2 100644 --- a/doc/lib/macro.assert_fn_err_lt_expr.html +++ b/doc/lib/macro.assert_fn_err_lt_expr.html @@ -1,7 +1,7 @@ -assert_fn_err_lt_expr in lib - Rust

                                                        Macro lib::assert_fn_err_lt_expr

                                                        source ·
                                                        macro_rules! assert_fn_err_lt_expr {
                                                        -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                        +assert_fn_err_lt_expr in lib - Rust

                                                        Macro lib::assert_fn_err_lt_expr

                                                        source ·
                                                        macro_rules! assert_fn_err_lt_expr {
                                                        +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                             ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                        -    ($a_function:path, $b_expr:expr) => { ... };
                                                        +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                             ($a_function:path, $b_expr:expr, $($message:tt)+) => { ... };
                                                         }
                                                        Expand description

                                                        Assert a function err() is less than an expression.

                                                          diff --git a/doc/lib/macro.assert_fn_err_lt_expr_as_result.html b/doc/lib/macro.assert_fn_err_lt_expr_as_result.html index ddac419ea..9a1f39f9f 100644 --- a/doc/lib/macro.assert_fn_err_lt_expr_as_result.html +++ b/doc/lib/macro.assert_fn_err_lt_expr_as_result.html @@ -1,6 +1,6 @@ -assert_fn_err_lt_expr_as_result in lib - Rust

                                                          Macro lib::assert_fn_err_lt_expr_as_result

                                                          source ·
                                                          macro_rules! assert_fn_err_lt_expr_as_result {
                                                          -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                          -    ($a_function:path, $b_expr:expr) => { ... };
                                                          +assert_fn_err_lt_expr_as_result in lib - Rust

                                                          Macro lib::assert_fn_err_lt_expr_as_result

                                                          source ·
                                                          macro_rules! assert_fn_err_lt_expr_as_result {
                                                          +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                          +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                           }
                                                          Expand description

                                                          Assert a function err() is less than an expression.

                                                          • diff --git a/doc/lib/macro.assert_fn_err_ne.html b/doc/lib/macro.assert_fn_err_ne.html index 5b7ae8f35..9deaf4547 100644 --- a/doc/lib/macro.assert_fn_err_ne.html +++ b/doc/lib/macro.assert_fn_err_ne.html @@ -1,5 +1,5 @@ -assert_fn_err_ne in lib - Rust

                                                            Macro lib::assert_fn_err_ne

                                                            source ·
                                                            macro_rules! assert_fn_err_ne {
                                                            -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                            +assert_fn_err_ne in lib - Rust

                                                            Macro lib::assert_fn_err_ne

                                                            source ·
                                                            macro_rules! assert_fn_err_ne {
                                                            +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                                 ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => { ... };
                                                                 ($a_function:path, $b_function:path) => { ... };
                                                                 ($a_function:path, $b_function:path, $($message:tt)+) => { ... };
                                                            diff --git a/doc/lib/macro.assert_fn_err_ne_as_result.html b/doc/lib/macro.assert_fn_err_ne_as_result.html
                                                            index a5ac3b167..662d85da4 100644
                                                            --- a/doc/lib/macro.assert_fn_err_ne_as_result.html
                                                            +++ b/doc/lib/macro.assert_fn_err_ne_as_result.html
                                                            @@ -1,5 +1,5 @@
                                                            -assert_fn_err_ne_as_result in lib - Rust

                                                            Macro lib::assert_fn_err_ne_as_result

                                                            source ·
                                                            macro_rules! assert_fn_err_ne_as_result {
                                                            -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                            +assert_fn_err_ne_as_result in lib - Rust

                                                            Macro lib::assert_fn_err_ne_as_result

                                                            source ·
                                                            macro_rules! assert_fn_err_ne_as_result {
                                                            +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                                 ($a_function:path, $b_function:path) => { ... };
                                                             }
                                                            Expand description

                                                            Assert a function err() is not equal to another.

                                                              diff --git a/doc/lib/macro.assert_fn_err_ne_expr.html b/doc/lib/macro.assert_fn_err_ne_expr.html index 259da2e20..f9d96d355 100644 --- a/doc/lib/macro.assert_fn_err_ne_expr.html +++ b/doc/lib/macro.assert_fn_err_ne_expr.html @@ -1,7 +1,7 @@ -assert_fn_err_ne_expr in lib - Rust

                                                              Macro lib::assert_fn_err_ne_expr

                                                              source ·
                                                              macro_rules! assert_fn_err_ne_expr {
                                                              -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                              +assert_fn_err_ne_expr in lib - Rust

                                                              Macro lib::assert_fn_err_ne_expr

                                                              source ·
                                                              macro_rules! assert_fn_err_ne_expr {
                                                              +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                                   ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                              -    ($a_function:path, $b_expr:expr) => { ... };
                                                              +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                                   ($a_function:path, $b_expr:expr, $($message:tt)+) => { ... };
                                                               }
                                                              Expand description

                                                              Assert a function err() is not equal to an expression.

                                                                diff --git a/doc/lib/macro.assert_fn_err_ne_expr_as_result.html b/doc/lib/macro.assert_fn_err_ne_expr_as_result.html index 5831b0ab2..a97954654 100644 --- a/doc/lib/macro.assert_fn_err_ne_expr_as_result.html +++ b/doc/lib/macro.assert_fn_err_ne_expr_as_result.html @@ -1,6 +1,6 @@ -assert_fn_err_ne_expr_as_result in lib - Rust

                                                                Macro lib::assert_fn_err_ne_expr_as_result

                                                                source ·
                                                                macro_rules! assert_fn_err_ne_expr_as_result {
                                                                -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                                -    ($a_function:path, $b_expr:expr) => { ... };
                                                                +assert_fn_err_ne_expr_as_result in lib - Rust

                                                                Macro lib::assert_fn_err_ne_expr_as_result

                                                                source ·
                                                                macro_rules! assert_fn_err_ne_expr_as_result {
                                                                +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                                +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                                 }
                                                                Expand description

                                                                Assert a function err() is not equal to an expression.

                                                                • diff --git a/doc/lib/macro.assert_fn_ge.html b/doc/lib/macro.assert_fn_ge.html index 16d732814..bb271f4d7 100644 --- a/doc/lib/macro.assert_fn_ge.html +++ b/doc/lib/macro.assert_fn_ge.html @@ -1,7 +1,7 @@ -assert_fn_ge in lib - Rust

                                                                  Macro lib::assert_fn_ge

                                                                  source ·
                                                                  macro_rules! assert_fn_ge {
                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                                  +assert_fn_ge in lib - Rust

                                                                  Macro lib::assert_fn_ge

                                                                  source ·
                                                                  macro_rules! assert_fn_ge {
                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                                       ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => { ... };
                                                                  -    ($a_function:path, $b_function:path, $(,)?) => { ... };
                                                                  +    ($a_function:path, $b_function:path $(,)?) => { ... };
                                                                       ($a_function:path, $b_function:path, $($message:tt)+) => { ... };
                                                                   }
                                                                  Expand description

                                                                  Assert a function output is greater than or equal to another.

                                                                    @@ -15,26 +15,26 @@

                                                                  §Examples

                                                                  // Return Ok
                                                                  -let a: i32 = -2;
                                                                  -let b: i32 = 1;
                                                                  -assert_fn_ge!(i32::abs, a, i32::abs, b);
                                                                  +let a: i8 = -2;
                                                                  +let b: i8 = 1;
                                                                  +assert_fn_ge!(i8::abs, a, i8::abs, b);
                                                                   //-> ()
                                                                   
                                                                   // Panic with error message
                                                                   let result = panic::catch_unwind(|| {
                                                                  -let a: i32 = 1;
                                                                  -let b: i32 = -2;
                                                                  -assert_fn_ge!(i32::abs, a, i32::abs, b);
                                                                  +let a: i8 = 1;
                                                                  +let b: i8 = -2;
                                                                  +assert_fn_ge!(i8::abs, a, i8::abs, b);
                                                                   //-> panic!
                                                                   });
                                                                   assert!(result.is_err());
                                                                   let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                   let expect = concat!(
                                                                       "assertion failed: `assert_fn_ge!(left_function, left_param, right_function, right_param)`\n",
                                                                  -    "  left_function label: `i32::abs`,\n",
                                                                  +    "  left_function label: `i8::abs`,\n",
                                                                       "     left_param label: `a`,\n",
                                                                       "     left_param debug: `1`,\n",
                                                                  -    " right_function label: `i32::abs`,\n",
                                                                  +    " right_function label: `i8::abs`,\n",
                                                                       "    right_param label: `b`,\n",
                                                                       "    right_param debug: `-2`,\n",
                                                                       "                 left: `1`,\n",
                                                                  diff --git a/doc/lib/macro.assert_fn_ge_as_result.html b/doc/lib/macro.assert_fn_ge_as_result.html
                                                                  index 7c2836469..269699f08 100644
                                                                  --- a/doc/lib/macro.assert_fn_ge_as_result.html
                                                                  +++ b/doc/lib/macro.assert_fn_ge_as_result.html
                                                                  @@ -1,6 +1,6 @@
                                                                  -assert_fn_ge_as_result in lib - Rust

                                                                  Macro lib::assert_fn_ge_as_result

                                                                  source ·
                                                                  macro_rules! assert_fn_ge_as_result {
                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                                  -    ($a_function:path, $b_function:path) => { ... };
                                                                  +assert_fn_ge_as_result in lib - Rust

                                                                  Macro lib::assert_fn_ge_as_result

                                                                  source ·
                                                                  macro_rules! assert_fn_ge_as_result {
                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                                  +    ($a_function:path, $b_function:path $(,)?) => { ... };
                                                                   }
                                                                  Expand description

                                                                  Assert a function output is greater than or equal to another.

                                                                  • diff --git a/doc/lib/macro.assert_fn_ge_expr.html b/doc/lib/macro.assert_fn_ge_expr.html index f510352c3..1cbefe120 100644 --- a/doc/lib/macro.assert_fn_ge_expr.html +++ b/doc/lib/macro.assert_fn_ge_expr.html @@ -1,7 +1,7 @@ -assert_fn_ge_expr in lib - Rust

                                                                    Macro lib::assert_fn_ge_expr

                                                                    source ·
                                                                    macro_rules! assert_fn_ge_expr {
                                                                    -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                                    +assert_fn_ge_expr in lib - Rust

                                                                    Macro lib::assert_fn_ge_expr

                                                                    source ·
                                                                    macro_rules! assert_fn_ge_expr {
                                                                    +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                                         ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                    -    ($a_function:path, $b_expr:expr) => { ... };
                                                                    +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                                         ($a_function:path, $b_expr:expr, $($message:tt)+) => { ... };
                                                                     }
                                                                    Expand description

                                                                    Assert a function output is greater than or equal to an expression.

                                                                      @@ -15,23 +15,23 @@

                                                                    §Examples

                                                                    // Return Ok
                                                                    -let a: i32 = -2;
                                                                    -let b: i32 = 1;
                                                                    -assert_fn_ge_expr!(i32::abs, a, b);
                                                                    +let a: i8 = -2;
                                                                    +let b: i8 = 1;
                                                                    +assert_fn_ge_expr!(i8::abs, a, b);
                                                                     //-> ()
                                                                     
                                                                     // Panic with error message
                                                                     let result = panic::catch_unwind(|| {
                                                                    -let a: i32 = -1;
                                                                    -let b: i32 = 2;
                                                                    -assert_fn_ge_expr!(i32::abs, a, b);
                                                                    +let a: i8 = -1;
                                                                    +let b: i8 = 2;
                                                                    +assert_fn_ge_expr!(i8::abs, a, b);
                                                                     //-> panic!
                                                                     });
                                                                     assert!(result.is_err());
                                                                     let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                     let expect = concat!(
                                                                         "assertion failed: `assert_fn_ge_expr!(left_function, left_param, right_expr)`\n",
                                                                    -    " left_function label: `i32::abs`,\n",
                                                                    +    " left_function label: `i8::abs`,\n",
                                                                         "    left_param label: `a`,\n",
                                                                         "    left_param debug: `-1`,\n",
                                                                         "    right_expr label: `b`,\n",
                                                                    diff --git a/doc/lib/macro.assert_fn_ge_expr_as_result.html b/doc/lib/macro.assert_fn_ge_expr_as_result.html
                                                                    index d32e7be2b..c73dfa259 100644
                                                                    --- a/doc/lib/macro.assert_fn_ge_expr_as_result.html
                                                                    +++ b/doc/lib/macro.assert_fn_ge_expr_as_result.html
                                                                    @@ -1,6 +1,6 @@
                                                                    -assert_fn_ge_expr_as_result in lib - Rust

                                                                    Macro lib::assert_fn_ge_expr_as_result

                                                                    source ·
                                                                    macro_rules! assert_fn_ge_expr_as_result {
                                                                    -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                                    -    ($a_function:path, $b_expr:expr) => { ... };
                                                                    +assert_fn_ge_expr_as_result in lib - Rust

                                                                    Macro lib::assert_fn_ge_expr_as_result

                                                                    source ·
                                                                    macro_rules! assert_fn_ge_expr_as_result {
                                                                    +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                                    +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                                     }
                                                                    Expand description

                                                                    Assert a function output is greater than or equal to an expression.

                                                                    • diff --git a/doc/lib/macro.assert_fn_gt.html b/doc/lib/macro.assert_fn_gt.html index b8299166d..10a65f760 100644 --- a/doc/lib/macro.assert_fn_gt.html +++ b/doc/lib/macro.assert_fn_gt.html @@ -1,5 +1,5 @@ -assert_fn_gt in lib - Rust

                                                                      Macro lib::assert_fn_gt

                                                                      source ·
                                                                      macro_rules! assert_fn_gt {
                                                                      -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                                      +assert_fn_gt in lib - Rust

                                                                      Macro lib::assert_fn_gt

                                                                      source ·
                                                                      macro_rules! assert_fn_gt {
                                                                      +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                                           ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => { ... };
                                                                           ($a_function:path, $b_function:path) => { ... };
                                                                           ($a_function:path, $b_function:path, $($message:tt)+) => { ... };
                                                                      diff --git a/doc/lib/macro.assert_fn_gt_as_result.html b/doc/lib/macro.assert_fn_gt_as_result.html
                                                                      index 922852922..4336f9d96 100644
                                                                      --- a/doc/lib/macro.assert_fn_gt_as_result.html
                                                                      +++ b/doc/lib/macro.assert_fn_gt_as_result.html
                                                                      @@ -1,5 +1,5 @@
                                                                      -assert_fn_gt_as_result in lib - Rust

                                                                      Macro lib::assert_fn_gt_as_result

                                                                      source ·
                                                                      macro_rules! assert_fn_gt_as_result {
                                                                      -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                                      +assert_fn_gt_as_result in lib - Rust

                                                                      Macro lib::assert_fn_gt_as_result

                                                                      source ·
                                                                      macro_rules! assert_fn_gt_as_result {
                                                                      +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                                           ($a_function:path, $b_function:path) => { ... };
                                                                       }
                                                                      Expand description

                                                                      Assert a function output is greater than another.

                                                                        diff --git a/doc/lib/macro.assert_fn_gt_expr.html b/doc/lib/macro.assert_fn_gt_expr.html index 0d1508ed2..2ef1b8686 100644 --- a/doc/lib/macro.assert_fn_gt_expr.html +++ b/doc/lib/macro.assert_fn_gt_expr.html @@ -1,7 +1,7 @@ -assert_fn_gt_expr in lib - Rust

                                                                        Macro lib::assert_fn_gt_expr

                                                                        source ·
                                                                        macro_rules! assert_fn_gt_expr {
                                                                        -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                                        +assert_fn_gt_expr in lib - Rust

                                                                        Macro lib::assert_fn_gt_expr

                                                                        source ·
                                                                        macro_rules! assert_fn_gt_expr {
                                                                        +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                                             ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                        -    ($a_function:path, $b_expr:expr) => { ... };
                                                                        +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                                             ($a_function:path, $b_expr:expr, $($message:tt)+) => { ... };
                                                                         }
                                                                        Expand description

                                                                        Assert a function output is greater than an expression.

                                                                          @@ -15,23 +15,23 @@

                                                                        §Examples

                                                                        // Return Ok
                                                                        -let a: i32 = -2;
                                                                        -let b: i32 = 1;
                                                                        -assert_fn_gt_expr!(i32::abs, a, b);
                                                                        +let a: i8 = -2;
                                                                        +let b: i8 = 1;
                                                                        +assert_fn_gt_expr!(i8::abs, a, b);
                                                                         //-> ()
                                                                         
                                                                         // Panic with error message
                                                                         let result = panic::catch_unwind(|| {
                                                                        -let a: i32 = -1;
                                                                        -let b: i32 = 2;
                                                                        -assert_fn_gt_expr!(i32::abs, a, b);
                                                                        +let a: i8 = -1;
                                                                        +let b: i8 = 2;
                                                                        +assert_fn_gt_expr!(i8::abs, a, b);
                                                                         //-> panic!
                                                                         });
                                                                         assert!(result.is_err());
                                                                         let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                         let expect = concat!(
                                                                             "assertion failed: `assert_fn_gt_expr!(left_function, left_param, right_expr)`\n",
                                                                        -    " left_function label: `i32::abs`,\n",
                                                                        +    " left_function label: `i8::abs`,\n",
                                                                             "    left_param label: `a`,\n",
                                                                             "    left_param debug: `-1`,\n",
                                                                             "    right_expr label: `b`,\n",
                                                                        diff --git a/doc/lib/macro.assert_fn_gt_expr_as_result.html b/doc/lib/macro.assert_fn_gt_expr_as_result.html
                                                                        index e05e7f007..6009d7f45 100644
                                                                        --- a/doc/lib/macro.assert_fn_gt_expr_as_result.html
                                                                        +++ b/doc/lib/macro.assert_fn_gt_expr_as_result.html
                                                                        @@ -1,6 +1,6 @@
                                                                        -assert_fn_gt_expr_as_result in lib - Rust

                                                                        Macro lib::assert_fn_gt_expr_as_result

                                                                        source ·
                                                                        macro_rules! assert_fn_gt_expr_as_result {
                                                                        -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                                        -    ($a_function:path, $b_expr:expr) => { ... };
                                                                        +assert_fn_gt_expr_as_result in lib - Rust

                                                                        Macro lib::assert_fn_gt_expr_as_result

                                                                        source ·
                                                                        macro_rules! assert_fn_gt_expr_as_result {
                                                                        +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                                        +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                                         }
                                                                        Expand description

                                                                        Assert a function output is greater than an expression.

                                                                        • diff --git a/doc/lib/macro.assert_fn_le.html b/doc/lib/macro.assert_fn_le.html index a94e435ab..e4350a934 100644 --- a/doc/lib/macro.assert_fn_le.html +++ b/doc/lib/macro.assert_fn_le.html @@ -1,7 +1,7 @@ -assert_fn_le in lib - Rust

                                                                          Macro lib::assert_fn_le

                                                                          source ·
                                                                          macro_rules! assert_fn_le {
                                                                          -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                                          +assert_fn_le in lib - Rust

                                                                          Macro lib::assert_fn_le

                                                                          source ·
                                                                          macro_rules! assert_fn_le {
                                                                          +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                                               ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => { ... };
                                                                          -    ($a_function:path, $b_function:path, $(,)?) => { ... };
                                                                          +    ($a_function:path, $b_function:path) => { ... };
                                                                               ($a_function:path, $b_function:path, $($message:tt)+) => { ... };
                                                                           }
                                                                          Expand description

                                                                          Assert a function output is less than or equal to another.

                                                                            @@ -15,26 +15,26 @@

                                                                          §Examples

                                                                          // Return Ok
                                                                          -let a: i32 = 1;
                                                                          -let b: i32 = -2;
                                                                          -assert_fn_le!(i32::abs, a, i32::abs, b);
                                                                          +let a: i8 = 1;
                                                                          +let b: i8 = -2;
                                                                          +assert_fn_le!(i8::abs, a, i8::abs, b);
                                                                           //-> ()
                                                                           
                                                                           // Panic with error message
                                                                           let result = panic::catch_unwind(|| {
                                                                          -let a: i32 = -2;
                                                                          -let b: i32 = 1;
                                                                          -assert_fn_le!(i32::abs, a, i32::abs, b);
                                                                          +let a: i8 = -2;
                                                                          +let b: i8 = 1;
                                                                          +assert_fn_le!(i8::abs, a, i8::abs, b);
                                                                           //-> panic!
                                                                           });
                                                                           assert!(result.is_err());
                                                                           let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                           let expect = concat!(
                                                                               "assertion failed: `assert_fn_le!(left_function, left_param, right_function, right_param)`\n",
                                                                          -    "  left_function label: `i32::abs`,\n",
                                                                          +    "  left_function label: `i8::abs`,\n",
                                                                               "     left_param label: `a`,\n",
                                                                               "     left_param debug: `-2`,\n",
                                                                          -    " right_function label: `i32::abs`,\n",
                                                                          +    " right_function label: `i8::abs`,\n",
                                                                               "    right_param label: `b`,\n",
                                                                               "    right_param debug: `1`,\n",
                                                                               "                 left: `2`,\n",
                                                                          diff --git a/doc/lib/macro.assert_fn_le_as_result.html b/doc/lib/macro.assert_fn_le_as_result.html
                                                                          index 071c7b88c..2453acb04 100644
                                                                          --- a/doc/lib/macro.assert_fn_le_as_result.html
                                                                          +++ b/doc/lib/macro.assert_fn_le_as_result.html
                                                                          @@ -1,5 +1,5 @@
                                                                          -assert_fn_le_as_result in lib - Rust

                                                                          Macro lib::assert_fn_le_as_result

                                                                          source ·
                                                                          macro_rules! assert_fn_le_as_result {
                                                                          -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                                          +assert_fn_le_as_result in lib - Rust

                                                                          Macro lib::assert_fn_le_as_result

                                                                          source ·
                                                                          macro_rules! assert_fn_le_as_result {
                                                                          +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                                               ($a_function:path, $b_function:path) => { ... };
                                                                           }
                                                                          Expand description

                                                                          Assert a function output is less than or equal to another.

                                                                            diff --git a/doc/lib/macro.assert_fn_le_expr.html b/doc/lib/macro.assert_fn_le_expr.html index 71449cad5..71df28471 100644 --- a/doc/lib/macro.assert_fn_le_expr.html +++ b/doc/lib/macro.assert_fn_le_expr.html @@ -1,7 +1,7 @@ -assert_fn_le_expr in lib - Rust

                                                                            Macro lib::assert_fn_le_expr

                                                                            source ·
                                                                            macro_rules! assert_fn_le_expr {
                                                                            -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                                            +assert_fn_le_expr in lib - Rust

                                                                            Macro lib::assert_fn_le_expr

                                                                            source ·
                                                                            macro_rules! assert_fn_le_expr {
                                                                            +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                                                 ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                            -    ($a_function:path, $b_expr:expr) => { ... };
                                                                            +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                                                 ($a_function:path, $b_expr:expr, $($message:tt)+) => { ... };
                                                                             }
                                                                            Expand description

                                                                            Assert a function output is less than or equal to an expression.

                                                                              @@ -15,23 +15,23 @@

                                                                            §Examples

                                                                            // Return Ok
                                                                            -let a: i32 = -1;
                                                                            -let b: i32 = 2;
                                                                            -assert_fn_le_expr!(i32::abs, a, b);
                                                                            +let a: i8 = -1;
                                                                            +let b: i8 = 2;
                                                                            +assert_fn_le_expr!(i8::abs, a, b);
                                                                             //-> ()
                                                                             
                                                                             // Panic with error message
                                                                             let result = panic::catch_unwind(|| {
                                                                            -let a: i32 = -2;
                                                                            -let b: i32 = 1;
                                                                            -assert_fn_le_expr!(i32::abs, a, b);
                                                                            +let a: i8 = -2;
                                                                            +let b: i8 = 1;
                                                                            +assert_fn_le_expr!(i8::abs, a, b);
                                                                             //-> panic!
                                                                             });
                                                                             assert!(result.is_err());
                                                                             let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                             let expect = concat!(
                                                                                 "assertion failed: `assert_fn_le_expr!(left_function, left_param, right_expr)`\n",
                                                                            -    " left_function label: `i32::abs`,\n",
                                                                            +    " left_function label: `i8::abs`,\n",
                                                                                 "    left_param label: `a`,\n",
                                                                                 "    left_param debug: `-2`,\n",
                                                                                 "    right_expr label: `b`,\n",
                                                                            diff --git a/doc/lib/macro.assert_fn_le_expr_as_result.html b/doc/lib/macro.assert_fn_le_expr_as_result.html
                                                                            index bc42effb3..ed9b55ca0 100644
                                                                            --- a/doc/lib/macro.assert_fn_le_expr_as_result.html
                                                                            +++ b/doc/lib/macro.assert_fn_le_expr_as_result.html
                                                                            @@ -1,6 +1,6 @@
                                                                            -assert_fn_le_expr_as_result in lib - Rust

                                                                            Macro lib::assert_fn_le_expr_as_result

                                                                            source ·
                                                                            macro_rules! assert_fn_le_expr_as_result {
                                                                            -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                                            -    ($a_function:path, $b_expr:expr) => { ... };
                                                                            +assert_fn_le_expr_as_result in lib - Rust

                                                                            Macro lib::assert_fn_le_expr_as_result

                                                                            source ·
                                                                            macro_rules! assert_fn_le_expr_as_result {
                                                                            +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                                            +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                                             }
                                                                            Expand description

                                                                            Assert a function output is less than or equal to an expression.

                                                                            • diff --git a/doc/lib/macro.assert_fn_lt.html b/doc/lib/macro.assert_fn_lt.html index b36fc2142..9e5babb2e 100644 --- a/doc/lib/macro.assert_fn_lt.html +++ b/doc/lib/macro.assert_fn_lt.html @@ -1,5 +1,5 @@ -assert_fn_lt in lib - Rust

                                                                              Macro lib::assert_fn_lt

                                                                              source ·
                                                                              macro_rules! assert_fn_lt {
                                                                              -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                                              +assert_fn_lt in lib - Rust

                                                                              Macro lib::assert_fn_lt

                                                                              source ·
                                                                              macro_rules! assert_fn_lt {
                                                                              +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                                                   ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => { ... };
                                                                                   ($a_function:path, $b_function:path) => { ... };
                                                                                   ($a_function:path, $b_function:path, $($message:tt)+) => { ... };
                                                                              @@ -15,26 +15,26 @@
                                                                               

                                                                            §Examples

                                                                            // Return Ok
                                                                            -let a: i32 = 1;
                                                                            -let b: i32 = -2;
                                                                            -assert_fn_lt!(i32::abs, a, i32::abs, b);
                                                                            +let a: i8 = 1;
                                                                            +let b: i8 = -2;
                                                                            +assert_fn_lt!(i8::abs, a, i8::abs, b);
                                                                             //-> ()
                                                                             
                                                                            -let a: i32 = -2;
                                                                            -let b: i32 = 1;
                                                                            +let a: i8 = -2;
                                                                            +let b: i8 = 1;
                                                                             // Panic with error message
                                                                             let result = panic::catch_unwind(|| {
                                                                            -assert_fn_lt!(i32::abs, a, i32::abs, b);
                                                                            +assert_fn_lt!(i8::abs, a, i8::abs, b);
                                                                             //-> panic!
                                                                             });
                                                                             assert!(result.is_err());
                                                                             let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                             let expect = concat!(
                                                                                 "assertion failed: `assert_fn_lt!(left_function, left_param, right_function, right_param)`\n",
                                                                            -    "  left_function label: `i32::abs`,\n",
                                                                            +    "  left_function label: `i8::abs`,\n",
                                                                                 "     left_param label: `a`,\n",
                                                                                 "     left_param debug: `-2`,\n",
                                                                            -    " right_function label: `i32::abs`,\n",
                                                                            +    " right_function label: `i8::abs`,\n",
                                                                                 "    right_param label: `b`,\n",
                                                                                 "    right_param debug: `1`,\n",
                                                                                 "                 left: `2`,\n",
                                                                            diff --git a/doc/lib/macro.assert_fn_lt_as_result.html b/doc/lib/macro.assert_fn_lt_as_result.html
                                                                            index 7a73e7ed5..5104295a3 100644
                                                                            --- a/doc/lib/macro.assert_fn_lt_as_result.html
                                                                            +++ b/doc/lib/macro.assert_fn_lt_as_result.html
                                                                            @@ -1,5 +1,5 @@
                                                                            -assert_fn_lt_as_result in lib - Rust

                                                                            Macro lib::assert_fn_lt_as_result

                                                                            source ·
                                                                            macro_rules! assert_fn_lt_as_result {
                                                                            -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                                            +assert_fn_lt_as_result in lib - Rust

                                                                            Macro lib::assert_fn_lt_as_result

                                                                            source ·
                                                                            macro_rules! assert_fn_lt_as_result {
                                                                            +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                                                 ($a_function:path, $b_function:path) => { ... };
                                                                             }
                                                                            Expand description

                                                                            Assert a function output is less than another.

                                                                              diff --git a/doc/lib/macro.assert_fn_lt_expr.html b/doc/lib/macro.assert_fn_lt_expr.html index 82eb2b05a..9d8f0f6ed 100644 --- a/doc/lib/macro.assert_fn_lt_expr.html +++ b/doc/lib/macro.assert_fn_lt_expr.html @@ -1,7 +1,7 @@ -assert_fn_lt_expr in lib - Rust

                                                                              Macro lib::assert_fn_lt_expr

                                                                              source ·
                                                                              macro_rules! assert_fn_lt_expr {
                                                                              -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                                              +assert_fn_lt_expr in lib - Rust

                                                                              Macro lib::assert_fn_lt_expr

                                                                              source ·
                                                                              macro_rules! assert_fn_lt_expr {
                                                                              +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                                                   ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                              -    ($a_function:path, $b_expr:expr) => { ... };
                                                                              +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                                                   ($a_function:path, $b_expr:expr, $($message:tt)+) => { ... };
                                                                               }
                                                                              Expand description

                                                                              Assert a function output is less than an expression.

                                                                                @@ -15,23 +15,23 @@

                                                                              §Examples

                                                                              // Return Ok
                                                                              -let a: i32 = -1;
                                                                              -let b: i32 = 2;
                                                                              -assert_fn_lt_expr!(i32::abs, a, b);
                                                                              +let a: i8 = -1;
                                                                              +let b: i8 = 2;
                                                                              +assert_fn_lt_expr!(i8::abs, a, b);
                                                                               //-> ()
                                                                               
                                                                               // Panic with error message
                                                                               let result = panic::catch_unwind(|| {
                                                                              -let a: i32 = -2;
                                                                              -let b: i32 = 1;
                                                                              -assert_fn_lt_expr!(i32::abs, a, b);
                                                                              +let a: i8 = -2;
                                                                              +let b: i8 = 1;
                                                                              +assert_fn_lt_expr!(i8::abs, a, b);
                                                                               //-> panic!
                                                                               });
                                                                               assert!(result.is_err());
                                                                               let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                               let expect = concat!(
                                                                                   "assertion failed: `assert_fn_lt_expr!(left_function, left_param, right_expr)`\n",
                                                                              -    " left_function label: `i32::abs`,\n",
                                                                              +    " left_function label: `i8::abs`,\n",
                                                                                   "    left_param label: `a`,\n",
                                                                                   "    left_param debug: `-2`,\n",
                                                                                   "    right_expr label: `b`,\n",
                                                                              diff --git a/doc/lib/macro.assert_fn_lt_expr_as_result.html b/doc/lib/macro.assert_fn_lt_expr_as_result.html
                                                                              index 8dcc2f0a5..a0b0a02c3 100644
                                                                              --- a/doc/lib/macro.assert_fn_lt_expr_as_result.html
                                                                              +++ b/doc/lib/macro.assert_fn_lt_expr_as_result.html
                                                                              @@ -1,6 +1,6 @@
                                                                              -assert_fn_lt_expr_as_result in lib - Rust

                                                                              Macro lib::assert_fn_lt_expr_as_result

                                                                              source ·
                                                                              macro_rules! assert_fn_lt_expr_as_result {
                                                                              -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                                              -    ($a_function:path, $b_expr:expr) => { ... };
                                                                              +assert_fn_lt_expr_as_result in lib - Rust

                                                                              Macro lib::assert_fn_lt_expr_as_result

                                                                              source ·
                                                                              macro_rules! assert_fn_lt_expr_as_result {
                                                                              +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                                              +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                                               }
                                                                              Expand description

                                                                              Assert a function output is less than an expression.

                                                                              • diff --git a/doc/lib/macro.assert_fn_ne.html b/doc/lib/macro.assert_fn_ne.html index 2dbf2d578..f7a7db97a 100644 --- a/doc/lib/macro.assert_fn_ne.html +++ b/doc/lib/macro.assert_fn_ne.html @@ -1,5 +1,5 @@ -assert_fn_ne in lib - Rust

                                                                                Macro lib::assert_fn_ne

                                                                                source ·
                                                                                macro_rules! assert_fn_ne {
                                                                                -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                                                +assert_fn_ne in lib - Rust

                                                                                Macro lib::assert_fn_ne

                                                                                source ·
                                                                                macro_rules! assert_fn_ne {
                                                                                +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                                                     ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => { ... };
                                                                                     ($a_function:path, $b_function:path) => { ... };
                                                                                     ($a_function:path, $b_function:path, $($message:tt)+) => { ... };
                                                                                @@ -15,26 +15,26 @@
                                                                                 

                                                                              §Examples

                                                                              // Return Ok
                                                                              -let a: i32 = -1;
                                                                              -let b: i32 = 2;
                                                                              -assert_fn_ne!(i32::abs, a, i32::abs, b);
                                                                              +let a: i8 = -1;
                                                                              +let b: i8 = 2;
                                                                              +assert_fn_ne!(i8::abs, a, i8::abs, b);
                                                                               //-> ()
                                                                               
                                                                               // Panic with error message
                                                                               let result = panic::catch_unwind(|| {
                                                                              -let a: i32 = -1;
                                                                              -let b: i32 = 1;
                                                                              -assert_fn_ne!(i32::abs, a, i32::abs, b);
                                                                              +let a: i8 = -1;
                                                                              +let b: i8 = 1;
                                                                              +assert_fn_ne!(i8::abs, a, i8::abs, b);
                                                                               //-> panic!
                                                                               });
                                                                               assert!(result.is_err());
                                                                               let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                               let expect = concat!(
                                                                                   "assertion failed: `assert_fn_ne!(left_function, left_param, right_function, right_param)`\n",
                                                                              -    "  left_function label: `i32::abs`,\n",
                                                                              +    "  left_function label: `i8::abs`,\n",
                                                                                   "     left_param label: `a`,\n",
                                                                                   "     left_param debug: `-1`,\n",
                                                                              -    " right_function label: `i32::abs`,\n",
                                                                              +    " right_function label: `i8::abs`,\n",
                                                                                   "    right_param label: `b`,\n",
                                                                                   "    right_param debug: `1`,\n",
                                                                                   "                 left: `1`,\n",
                                                                              diff --git a/doc/lib/macro.assert_fn_ne_as_result.html b/doc/lib/macro.assert_fn_ne_as_result.html
                                                                              index 72fa60d0c..5aa3ad4db 100644
                                                                              --- a/doc/lib/macro.assert_fn_ne_as_result.html
                                                                              +++ b/doc/lib/macro.assert_fn_ne_as_result.html
                                                                              @@ -1,5 +1,5 @@
                                                                              -assert_fn_ne_as_result in lib - Rust

                                                                              Macro lib::assert_fn_ne_as_result

                                                                              source ·
                                                                              macro_rules! assert_fn_ne_as_result {
                                                                              -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                                              +assert_fn_ne_as_result in lib - Rust

                                                                              Macro lib::assert_fn_ne_as_result

                                                                              source ·
                                                                              macro_rules! assert_fn_ne_as_result {
                                                                              +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                                                   ($a_function:path, $b_function:path) => { ... };
                                                                               }
                                                                              Expand description

                                                                              Assert a function output is not equal to another.

                                                                                diff --git a/doc/lib/macro.assert_fn_ne_expr.html b/doc/lib/macro.assert_fn_ne_expr.html index f396a37ca..ff99bdcc2 100644 --- a/doc/lib/macro.assert_fn_ne_expr.html +++ b/doc/lib/macro.assert_fn_ne_expr.html @@ -1,7 +1,7 @@ -assert_fn_ne_expr in lib - Rust

                                                                                Macro lib::assert_fn_ne_expr

                                                                                source ·
                                                                                macro_rules! assert_fn_ne_expr {
                                                                                -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                                                +assert_fn_ne_expr in lib - Rust

                                                                                Macro lib::assert_fn_ne_expr

                                                                                source ·
                                                                                macro_rules! assert_fn_ne_expr {
                                                                                +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                                                     ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                -    ($a_function:path, $b_expr:expr) => { ... };
                                                                                +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                                                     ($a_function:path, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                 }
                                                                                Expand description

                                                                                Assert a function output is not equal to an expression.

                                                                                  @@ -15,23 +15,23 @@

                                                                                §Examples

                                                                                // Return Ok
                                                                                -let a: i32 = 1;
                                                                                -let b: i32 = -2;
                                                                                -assert_fn_ne_expr!(i32::abs, a, b);
                                                                                +let a: i8 = 1;
                                                                                +let b: i8 = -2;
                                                                                +assert_fn_ne_expr!(i8::abs, a, b);
                                                                                 //-> ()
                                                                                 
                                                                                 // Panic with error message
                                                                                 let result = panic::catch_unwind(|| {
                                                                                -let a: i32 = -1;
                                                                                -let b: i32 = 1;
                                                                                -assert_fn_ne_expr!(i32::abs, a, b);
                                                                                +let a: i8 = -1;
                                                                                +let b: i8 = 1;
                                                                                +assert_fn_ne_expr!(i8::abs, a, b);
                                                                                 //-> panic!
                                                                                 });
                                                                                 assert!(result.is_err());
                                                                                 let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                 let expect = concat!(
                                                                                     "assertion failed: `assert_fn_ne_expr!(left_function, left_param, right_expr)`\n",
                                                                                -    " left_function label: `i32::abs`,\n",
                                                                                +    " left_function label: `i8::abs`,\n",
                                                                                     "    left_param label: `a`,\n",
                                                                                     "    left_param debug: `-1`,\n",
                                                                                     "    right_expr label: `b`,\n",
                                                                                diff --git a/doc/lib/macro.assert_fn_ne_expr_as_result.html b/doc/lib/macro.assert_fn_ne_expr_as_result.html
                                                                                index 0c1a874d3..f89e5a053 100644
                                                                                --- a/doc/lib/macro.assert_fn_ne_expr_as_result.html
                                                                                +++ b/doc/lib/macro.assert_fn_ne_expr_as_result.html
                                                                                @@ -1,6 +1,6 @@
                                                                                -assert_fn_ne_expr_as_result in lib - Rust

                                                                                Macro lib::assert_fn_ne_expr_as_result

                                                                                source ·
                                                                                macro_rules! assert_fn_ne_expr_as_result {
                                                                                -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                                                -    ($a_function:path, $b_expr:expr) => { ... };
                                                                                +assert_fn_ne_expr_as_result in lib - Rust

                                                                                Macro lib::assert_fn_ne_expr_as_result

                                                                                source ·
                                                                                macro_rules! assert_fn_ne_expr_as_result {
                                                                                +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                                                +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                                                 }
                                                                                Expand description

                                                                                Assert a function output is not equal to an expression.

                                                                                • diff --git a/doc/lib/macro.assert_fn_ok_eq.html b/doc/lib/macro.assert_fn_ok_eq.html index 1af56fff3..634755adf 100644 --- a/doc/lib/macro.assert_fn_ok_eq.html +++ b/doc/lib/macro.assert_fn_ok_eq.html @@ -1,5 +1,5 @@ -assert_fn_ok_eq in lib - Rust

                                                                                  Macro lib::assert_fn_ok_eq

                                                                                  source ·
                                                                                  macro_rules! assert_fn_ok_eq {
                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                                                  +assert_fn_ok_eq in lib - Rust

                                                                                  Macro lib::assert_fn_ok_eq

                                                                                  source ·
                                                                                  macro_rules! assert_fn_ok_eq {
                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                                                       ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => { ... };
                                                                                       ($a_function:path, $b_function:path) => { ... };
                                                                                       ($a_function:path, $b_function:path, $($message:tt)+) => { ... };
                                                                                  diff --git a/doc/lib/macro.assert_fn_ok_eq_as_result.html b/doc/lib/macro.assert_fn_ok_eq_as_result.html
                                                                                  index 0726e54df..81af9a11c 100644
                                                                                  --- a/doc/lib/macro.assert_fn_ok_eq_as_result.html
                                                                                  +++ b/doc/lib/macro.assert_fn_ok_eq_as_result.html
                                                                                  @@ -1,5 +1,5 @@
                                                                                  -assert_fn_ok_eq_as_result in lib - Rust

                                                                                  Macro lib::assert_fn_ok_eq_as_result

                                                                                  source ·
                                                                                  macro_rules! assert_fn_ok_eq_as_result {
                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                                                  +assert_fn_ok_eq_as_result in lib - Rust

                                                                                  Macro lib::assert_fn_ok_eq_as_result

                                                                                  source ·
                                                                                  macro_rules! assert_fn_ok_eq_as_result {
                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                                                       ($a_function:path, $b_function:path) => { ... };
                                                                                   }
                                                                                  Expand description

                                                                                  Assert a function ok() is equal to another.

                                                                                    diff --git a/doc/lib/macro.assert_fn_ok_eq_expr.html b/doc/lib/macro.assert_fn_ok_eq_expr.html index 1179a1367..7e5ff6941 100644 --- a/doc/lib/macro.assert_fn_ok_eq_expr.html +++ b/doc/lib/macro.assert_fn_ok_eq_expr.html @@ -1,7 +1,7 @@ -assert_fn_ok_eq_expr in lib - Rust

                                                                                    Macro lib::assert_fn_ok_eq_expr

                                                                                    source ·
                                                                                    macro_rules! assert_fn_ok_eq_expr {
                                                                                    -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                                                    +assert_fn_ok_eq_expr in lib - Rust

                                                                                    Macro lib::assert_fn_ok_eq_expr

                                                                                    source ·
                                                                                    macro_rules! assert_fn_ok_eq_expr {
                                                                                    +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                                                         ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                    -    ($a_function:path, $b_expr:expr) => { ... };
                                                                                    +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                                                         ($a_function:path, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                     }
                                                                                    Expand description

                                                                                    Assert a function ok() is equal to an expression.

                                                                                      diff --git a/doc/lib/macro.assert_fn_ok_eq_expr_as_result.html b/doc/lib/macro.assert_fn_ok_eq_expr_as_result.html index 00e97d373..13f8ffb0a 100644 --- a/doc/lib/macro.assert_fn_ok_eq_expr_as_result.html +++ b/doc/lib/macro.assert_fn_ok_eq_expr_as_result.html @@ -1,6 +1,6 @@ -assert_fn_ok_eq_expr_as_result in lib - Rust

                                                                                      Macro lib::assert_fn_ok_eq_expr_as_result

                                                                                      source ·
                                                                                      macro_rules! assert_fn_ok_eq_expr_as_result {
                                                                                      -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                                                      -    ($a_function:path, $b_expr:expr) => { ... };
                                                                                      +assert_fn_ok_eq_expr_as_result in lib - Rust

                                                                                      Macro lib::assert_fn_ok_eq_expr_as_result

                                                                                      source ·
                                                                                      macro_rules! assert_fn_ok_eq_expr_as_result {
                                                                                      +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                                                      +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                                                       }
                                                                                      Expand description

                                                                                      Assert a function ok() is equal to an expression.

                                                                                      • diff --git a/doc/lib/macro.assert_fn_ok_ge.html b/doc/lib/macro.assert_fn_ok_ge.html index e64c437c2..01aca3445 100644 --- a/doc/lib/macro.assert_fn_ok_ge.html +++ b/doc/lib/macro.assert_fn_ok_ge.html @@ -1,5 +1,5 @@ -assert_fn_ok_ge in lib - Rust

                                                                                        Macro lib::assert_fn_ok_ge

                                                                                        source ·
                                                                                        macro_rules! assert_fn_ok_ge {
                                                                                        -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                                                        +assert_fn_ok_ge in lib - Rust

                                                                                        Macro lib::assert_fn_ok_ge

                                                                                        source ·
                                                                                        macro_rules! assert_fn_ok_ge {
                                                                                        +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                                                             ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => { ... };
                                                                                             ($a_function:path, $b_function:path) => { ... };
                                                                                             ($a_function:path, $b_function:path, $($message:tt)+) => { ... };
                                                                                        diff --git a/doc/lib/macro.assert_fn_ok_ge_as_result.html b/doc/lib/macro.assert_fn_ok_ge_as_result.html
                                                                                        index 7b658d59c..9e9cb3a0d 100644
                                                                                        --- a/doc/lib/macro.assert_fn_ok_ge_as_result.html
                                                                                        +++ b/doc/lib/macro.assert_fn_ok_ge_as_result.html
                                                                                        @@ -1,5 +1,5 @@
                                                                                        -assert_fn_ok_ge_as_result in lib - Rust

                                                                                        Macro lib::assert_fn_ok_ge_as_result

                                                                                        source ·
                                                                                        macro_rules! assert_fn_ok_ge_as_result {
                                                                                        -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                                                        +assert_fn_ok_ge_as_result in lib - Rust

                                                                                        Macro lib::assert_fn_ok_ge_as_result

                                                                                        source ·
                                                                                        macro_rules! assert_fn_ok_ge_as_result {
                                                                                        +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                                                             ($a_function:path, $b_function:path) => { ... };
                                                                                         }
                                                                                        Expand description

                                                                                        Assert a function ok() is greater than or equal to another.

                                                                                          diff --git a/doc/lib/macro.assert_fn_ok_ge_expr.html b/doc/lib/macro.assert_fn_ok_ge_expr.html index 041aea743..e8e2730ce 100644 --- a/doc/lib/macro.assert_fn_ok_ge_expr.html +++ b/doc/lib/macro.assert_fn_ok_ge_expr.html @@ -1,7 +1,7 @@ -assert_fn_ok_ge_expr in lib - Rust

                                                                                          Macro lib::assert_fn_ok_ge_expr

                                                                                          source ·
                                                                                          macro_rules! assert_fn_ok_ge_expr {
                                                                                          -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                                                          +assert_fn_ok_ge_expr in lib - Rust

                                                                                          Macro lib::assert_fn_ok_ge_expr

                                                                                          source ·
                                                                                          macro_rules! assert_fn_ok_ge_expr {
                                                                                          +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                                                               ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                          -    ($a_function:path, $b_expr:expr) => { ... };
                                                                                          +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                                                               ($a_function:path, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                           }
                                                                                          Expand description

                                                                                          Assert a function ok() is greater than or equal to an expression.

                                                                                            diff --git a/doc/lib/macro.assert_fn_ok_ge_expr_as_result.html b/doc/lib/macro.assert_fn_ok_ge_expr_as_result.html index a38087f97..23c1e5477 100644 --- a/doc/lib/macro.assert_fn_ok_ge_expr_as_result.html +++ b/doc/lib/macro.assert_fn_ok_ge_expr_as_result.html @@ -1,6 +1,6 @@ -assert_fn_ok_ge_expr_as_result in lib - Rust

                                                                                            Macro lib::assert_fn_ok_ge_expr_as_result

                                                                                            source ·
                                                                                            macro_rules! assert_fn_ok_ge_expr_as_result {
                                                                                            -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                                                            -    ($a_function:path, $b_expr:expr) => { ... };
                                                                                            +assert_fn_ok_ge_expr_as_result in lib - Rust

                                                                                            Macro lib::assert_fn_ok_ge_expr_as_result

                                                                                            source ·
                                                                                            macro_rules! assert_fn_ok_ge_expr_as_result {
                                                                                            +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                                                            +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                                                             }
                                                                                            Expand description

                                                                                            Assert a function ok() is greater than or equal to an expression.

                                                                                            • diff --git a/doc/lib/macro.assert_fn_ok_gt.html b/doc/lib/macro.assert_fn_ok_gt.html index abb18fe97..a81bf6776 100644 --- a/doc/lib/macro.assert_fn_ok_gt.html +++ b/doc/lib/macro.assert_fn_ok_gt.html @@ -1,5 +1,5 @@ -assert_fn_ok_gt in lib - Rust

                                                                                              Macro lib::assert_fn_ok_gt

                                                                                              source ·
                                                                                              macro_rules! assert_fn_ok_gt {
                                                                                              -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                                                              +assert_fn_ok_gt in lib - Rust

                                                                                              Macro lib::assert_fn_ok_gt

                                                                                              source ·
                                                                                              macro_rules! assert_fn_ok_gt {
                                                                                              +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                                                                   ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => { ... };
                                                                                                   ($a_function:path, $b_function:path) => { ... };
                                                                                                   ($a_function:path, $b_function:path, $($message:tt)+) => { ... };
                                                                                              diff --git a/doc/lib/macro.assert_fn_ok_gt_as_result.html b/doc/lib/macro.assert_fn_ok_gt_as_result.html
                                                                                              index cd71b4ba0..d63a69e4c 100644
                                                                                              --- a/doc/lib/macro.assert_fn_ok_gt_as_result.html
                                                                                              +++ b/doc/lib/macro.assert_fn_ok_gt_as_result.html
                                                                                              @@ -1,5 +1,5 @@
                                                                                              -assert_fn_ok_gt_as_result in lib - Rust

                                                                                              Macro lib::assert_fn_ok_gt_as_result

                                                                                              source ·
                                                                                              macro_rules! assert_fn_ok_gt_as_result {
                                                                                              -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                                                              +assert_fn_ok_gt_as_result in lib - Rust

                                                                                              Macro lib::assert_fn_ok_gt_as_result

                                                                                              source ·
                                                                                              macro_rules! assert_fn_ok_gt_as_result {
                                                                                              +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                                                                   ($a_function:path, $b_function:path) => { ... };
                                                                                               }
                                                                                              Expand description

                                                                                              Assert a function ok() is greater than another.

                                                                                                diff --git a/doc/lib/macro.assert_fn_ok_gt_expr.html b/doc/lib/macro.assert_fn_ok_gt_expr.html index 0ad1d2503..af4fa2277 100644 --- a/doc/lib/macro.assert_fn_ok_gt_expr.html +++ b/doc/lib/macro.assert_fn_ok_gt_expr.html @@ -1,7 +1,7 @@ -assert_fn_ok_gt_expr in lib - Rust

                                                                                                Macro lib::assert_fn_ok_gt_expr

                                                                                                source ·
                                                                                                macro_rules! assert_fn_ok_gt_expr {
                                                                                                -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                                                                +assert_fn_ok_gt_expr in lib - Rust

                                                                                                Macro lib::assert_fn_ok_gt_expr

                                                                                                source ·
                                                                                                macro_rules! assert_fn_ok_gt_expr {
                                                                                                +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                     ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                -    ($a_function:path, $b_expr:expr) => { ... };
                                                                                                +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                                                                     ($a_function:path, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                 }
                                                                                                Expand description

                                                                                                Assert a function ok() is greater than an expression.

                                                                                                  diff --git a/doc/lib/macro.assert_fn_ok_gt_expr_as_result.html b/doc/lib/macro.assert_fn_ok_gt_expr_as_result.html index 35aad0b8c..180f2fd3c 100644 --- a/doc/lib/macro.assert_fn_ok_gt_expr_as_result.html +++ b/doc/lib/macro.assert_fn_ok_gt_expr_as_result.html @@ -1,6 +1,6 @@ -assert_fn_ok_gt_expr_as_result in lib - Rust

                                                                                                  Macro lib::assert_fn_ok_gt_expr_as_result

                                                                                                  source ·
                                                                                                  macro_rules! assert_fn_ok_gt_expr_as_result {
                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                                                                  -    ($a_function:path, $b_expr:expr) => { ... };
                                                                                                  +assert_fn_ok_gt_expr_as_result in lib - Rust

                                                                                                  Macro lib::assert_fn_ok_gt_expr_as_result

                                                                                                  source ·
                                                                                                  macro_rules! assert_fn_ok_gt_expr_as_result {
                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                                                                   }
                                                                                                  Expand description

                                                                                                  Assert a function ok() is greater than an expression.

                                                                                                  • diff --git a/doc/lib/macro.assert_fn_ok_le.html b/doc/lib/macro.assert_fn_ok_le.html index baa2f52ae..2df94af8c 100644 --- a/doc/lib/macro.assert_fn_ok_le.html +++ b/doc/lib/macro.assert_fn_ok_le.html @@ -1,5 +1,5 @@ -assert_fn_ok_le in lib - Rust

                                                                                                    Macro lib::assert_fn_ok_le

                                                                                                    source ·
                                                                                                    macro_rules! assert_fn_ok_le {
                                                                                                    -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                                                                    +assert_fn_ok_le in lib - Rust

                                                                                                    Macro lib::assert_fn_ok_le

                                                                                                    source ·
                                                                                                    macro_rules! assert_fn_ok_le {
                                                                                                    +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                                                                         ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => { ... };
                                                                                                         ($a_function:path, $b_function:path) => { ... };
                                                                                                         ($a_function:path, $b_function:path, $($message:tt)+) => { ... };
                                                                                                    diff --git a/doc/lib/macro.assert_fn_ok_le_as_result.html b/doc/lib/macro.assert_fn_ok_le_as_result.html
                                                                                                    index 7f7080b41..e7ff4f60b 100644
                                                                                                    --- a/doc/lib/macro.assert_fn_ok_le_as_result.html
                                                                                                    +++ b/doc/lib/macro.assert_fn_ok_le_as_result.html
                                                                                                    @@ -1,5 +1,5 @@
                                                                                                    -assert_fn_ok_le_as_result in lib - Rust

                                                                                                    Macro lib::assert_fn_ok_le_as_result

                                                                                                    source ·
                                                                                                    macro_rules! assert_fn_ok_le_as_result {
                                                                                                    -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                                                                    +assert_fn_ok_le_as_result in lib - Rust

                                                                                                    Macro lib::assert_fn_ok_le_as_result

                                                                                                    source ·
                                                                                                    macro_rules! assert_fn_ok_le_as_result {
                                                                                                    +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                                                                         ($a_function:path, $b_function:path) => { ... };
                                                                                                     }
                                                                                                    Expand description

                                                                                                    Assert a function ok() is less than or equal to another.

                                                                                                      diff --git a/doc/lib/macro.assert_fn_ok_le_expr.html b/doc/lib/macro.assert_fn_ok_le_expr.html index 0967012c0..02695de12 100644 --- a/doc/lib/macro.assert_fn_ok_le_expr.html +++ b/doc/lib/macro.assert_fn_ok_le_expr.html @@ -1,7 +1,7 @@ -assert_fn_ok_le_expr in lib - Rust

                                                                                                      Macro lib::assert_fn_ok_le_expr

                                                                                                      source ·
                                                                                                      macro_rules! assert_fn_ok_le_expr {
                                                                                                      -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                                                                      +assert_fn_ok_le_expr in lib - Rust

                                                                                                      Macro lib::assert_fn_ok_le_expr

                                                                                                      source ·
                                                                                                      macro_rules! assert_fn_ok_le_expr {
                                                                                                      +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                           ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                      -    ($a_function:path, $b_expr:expr) => { ... };
                                                                                                      +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                                                                           ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                       }
                                                                                                      Expand description

                                                                                                      Assert a function ok() is less than or equal to an expression.

                                                                                                        diff --git a/doc/lib/macro.assert_fn_ok_le_expr_as_result.html b/doc/lib/macro.assert_fn_ok_le_expr_as_result.html index 30549f4f3..ddf7a2262 100644 --- a/doc/lib/macro.assert_fn_ok_le_expr_as_result.html +++ b/doc/lib/macro.assert_fn_ok_le_expr_as_result.html @@ -1,6 +1,6 @@ -assert_fn_ok_le_expr_as_result in lib - Rust

                                                                                                        Macro lib::assert_fn_ok_le_expr_as_result

                                                                                                        source ·
                                                                                                        macro_rules! assert_fn_ok_le_expr_as_result {
                                                                                                        -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                                                                        -    ($a_function:path, $b_expr:expr) => { ... };
                                                                                                        +assert_fn_ok_le_expr_as_result in lib - Rust

                                                                                                        Macro lib::assert_fn_ok_le_expr_as_result

                                                                                                        source ·
                                                                                                        macro_rules! assert_fn_ok_le_expr_as_result {
                                                                                                        +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                        +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                                                                         }
                                                                                                        Expand description

                                                                                                        Assert a function ok() is less than or equal to an expression.

                                                                                                        • diff --git a/doc/lib/macro.assert_fn_ok_lt.html b/doc/lib/macro.assert_fn_ok_lt.html index 85fdb9dac..e7ab89167 100644 --- a/doc/lib/macro.assert_fn_ok_lt.html +++ b/doc/lib/macro.assert_fn_ok_lt.html @@ -1,5 +1,5 @@ -assert_fn_ok_lt in lib - Rust

                                                                                                          Macro lib::assert_fn_ok_lt

                                                                                                          source ·
                                                                                                          macro_rules! assert_fn_ok_lt {
                                                                                                          -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                                                                          +assert_fn_ok_lt in lib - Rust

                                                                                                          Macro lib::assert_fn_ok_lt

                                                                                                          source ·
                                                                                                          macro_rules! assert_fn_ok_lt {
                                                                                                          +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                                                                               ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => { ... };
                                                                                                               ($a_function:path, $b_function:path) => { ... };
                                                                                                               ($a_function:path, $b_function:path, $($message:tt)+) => { ... };
                                                                                                          diff --git a/doc/lib/macro.assert_fn_ok_lt_as_result.html b/doc/lib/macro.assert_fn_ok_lt_as_result.html
                                                                                                          index 9c0f0e333..9e1033cd1 100644
                                                                                                          --- a/doc/lib/macro.assert_fn_ok_lt_as_result.html
                                                                                                          +++ b/doc/lib/macro.assert_fn_ok_lt_as_result.html
                                                                                                          @@ -1,5 +1,5 @@
                                                                                                          -assert_fn_ok_lt_as_result in lib - Rust

                                                                                                          Macro lib::assert_fn_ok_lt_as_result

                                                                                                          source ·
                                                                                                          macro_rules! assert_fn_ok_lt_as_result {
                                                                                                          -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                                                                          +assert_fn_ok_lt_as_result in lib - Rust

                                                                                                          Macro lib::assert_fn_ok_lt_as_result

                                                                                                          source ·
                                                                                                          macro_rules! assert_fn_ok_lt_as_result {
                                                                                                          +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                                                                               ($a_function:path, $b_function:path) => { ... };
                                                                                                           }
                                                                                                          Expand description

                                                                                                          Assert a function ok() is less than another.

                                                                                                            diff --git a/doc/lib/macro.assert_fn_ok_lt_expr.html b/doc/lib/macro.assert_fn_ok_lt_expr.html index d1a480f5f..1d96866ac 100644 --- a/doc/lib/macro.assert_fn_ok_lt_expr.html +++ b/doc/lib/macro.assert_fn_ok_lt_expr.html @@ -1,7 +1,7 @@ -assert_fn_ok_lt_expr in lib - Rust

                                                                                                            Macro lib::assert_fn_ok_lt_expr

                                                                                                            source ·
                                                                                                            macro_rules! assert_fn_ok_lt_expr {
                                                                                                            -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                                                                            +assert_fn_ok_lt_expr in lib - Rust

                                                                                                            Macro lib::assert_fn_ok_lt_expr

                                                                                                            source ·
                                                                                                            macro_rules! assert_fn_ok_lt_expr {
                                                                                                            +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                 ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                            -    ($a_function:path, $b_expr:expr) => { ... };
                                                                                                            +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                                                                                 ($a_function:path, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                             }
                                                                                                            Expand description

                                                                                                            Assert a function ok() is less than an expression.

                                                                                                              diff --git a/doc/lib/macro.assert_fn_ok_lt_expr_as_result.html b/doc/lib/macro.assert_fn_ok_lt_expr_as_result.html index 86ea30624..018fd22b7 100644 --- a/doc/lib/macro.assert_fn_ok_lt_expr_as_result.html +++ b/doc/lib/macro.assert_fn_ok_lt_expr_as_result.html @@ -1,6 +1,6 @@ -assert_fn_ok_lt_expr_as_result in lib - Rust

                                                                                                              Macro lib::assert_fn_ok_lt_expr_as_result

                                                                                                              source ·
                                                                                                              macro_rules! assert_fn_ok_lt_expr_as_result {
                                                                                                              -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                                                                              -    ($a_function:path, $b_expr:expr) => { ... };
                                                                                                              +assert_fn_ok_lt_expr_as_result in lib - Rust

                                                                                                              Macro lib::assert_fn_ok_lt_expr_as_result

                                                                                                              source ·
                                                                                                              macro_rules! assert_fn_ok_lt_expr_as_result {
                                                                                                              +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                              +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                                                                               }
                                                                                                              Expand description

                                                                                                              Assert a function ok() is less than an expression.

                                                                                                              • diff --git a/doc/lib/macro.assert_fn_ok_ne.html b/doc/lib/macro.assert_fn_ok_ne.html index f51fc020e..ee2362a9e 100644 --- a/doc/lib/macro.assert_fn_ok_ne.html +++ b/doc/lib/macro.assert_fn_ok_ne.html @@ -1,5 +1,5 @@ -assert_fn_ok_ne in lib - Rust

                                                                                                                Macro lib::assert_fn_ok_ne

                                                                                                                source ·
                                                                                                                macro_rules! assert_fn_ok_ne {
                                                                                                                -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                                                                                +assert_fn_ok_ne in lib - Rust

                                                                                                                Macro lib::assert_fn_ok_ne

                                                                                                                source ·
                                                                                                                macro_rules! assert_fn_ok_ne {
                                                                                                                +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                                                                                     ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr, $($message:tt)+) => { ... };
                                                                                                                     ($a_function:path, $b_function:path) => { ... };
                                                                                                                     ($a_function:path, $b_function:path, $($message:tt)+) => { ... };
                                                                                                                diff --git a/doc/lib/macro.assert_fn_ok_ne_as_result.html b/doc/lib/macro.assert_fn_ok_ne_as_result.html
                                                                                                                index c7a42467d..3a9acb5c8 100644
                                                                                                                --- a/doc/lib/macro.assert_fn_ok_ne_as_result.html
                                                                                                                +++ b/doc/lib/macro.assert_fn_ok_ne_as_result.html
                                                                                                                @@ -1,5 +1,5 @@
                                                                                                                -assert_fn_ok_ne_as_result in lib - Rust

                                                                                                                Macro lib::assert_fn_ok_ne_as_result

                                                                                                                source ·
                                                                                                                macro_rules! assert_fn_ok_ne_as_result {
                                                                                                                -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => { ... };
                                                                                                                +assert_fn_ok_ne_as_result in lib - Rust

                                                                                                                Macro lib::assert_fn_ok_ne_as_result

                                                                                                                source ·
                                                                                                                macro_rules! assert_fn_ok_ne_as_result {
                                                                                                                +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => { ... };
                                                                                                                     ($a_function:path, $b_function:path) => { ... };
                                                                                                                 }
                                                                                                                Expand description

                                                                                                                Assert a function ok() is not equal to another.

                                                                                                                  diff --git a/doc/lib/macro.assert_fn_ok_ne_expr.html b/doc/lib/macro.assert_fn_ok_ne_expr.html index abfd984c1..83af29e20 100644 --- a/doc/lib/macro.assert_fn_ok_ne_expr.html +++ b/doc/lib/macro.assert_fn_ok_ne_expr.html @@ -1,7 +1,7 @@ -assert_fn_ok_ne_expr in lib - Rust

                                                                                                                  Macro lib::assert_fn_ok_ne_expr

                                                                                                                  source ·
                                                                                                                  macro_rules! assert_fn_ok_ne_expr {
                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                                                                                  +assert_fn_ok_ne_expr in lib - Rust

                                                                                                                  Macro lib::assert_fn_ok_ne_expr

                                                                                                                  source ·
                                                                                                                  macro_rules! assert_fn_ok_ne_expr {
                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                       ($a_function:path, $a_param:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                  -    ($a_function:path, $b_expr:expr) => { ... };
                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                                                                                       ($a_function:path, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                   }
                                                                                                                  Expand description

                                                                                                                  Assert a function ok() is not equal to an expression.

                                                                                                                    diff --git a/doc/lib/macro.assert_fn_ok_ne_expr_as_result.html b/doc/lib/macro.assert_fn_ok_ne_expr_as_result.html index 923cee21d..bbcb163cd 100644 --- a/doc/lib/macro.assert_fn_ok_ne_expr_as_result.html +++ b/doc/lib/macro.assert_fn_ok_ne_expr_as_result.html @@ -1,6 +1,6 @@ -assert_fn_ok_ne_expr_as_result in lib - Rust

                                                                                                                    Macro lib::assert_fn_ok_ne_expr_as_result

                                                                                                                    source ·
                                                                                                                    macro_rules! assert_fn_ok_ne_expr_as_result {
                                                                                                                    -    ($a_function:path, $a_param:expr, $b_expr:expr) => { ... };
                                                                                                                    -    ($a_function:path, $b_expr:expr) => { ... };
                                                                                                                    +assert_fn_ok_ne_expr_as_result in lib - Rust

                                                                                                                    Macro lib::assert_fn_ok_ne_expr_as_result

                                                                                                                    source ·
                                                                                                                    macro_rules! assert_fn_ok_ne_expr_as_result {
                                                                                                                    +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                    +    ($a_function:path, $b_expr:expr $(,)?) => { ... };
                                                                                                                     }
                                                                                                                    Expand description

                                                                                                                    Assert a function ok() is not equal to an expression.

                                                                                                                    • diff --git a/doc/lib/macro.assert_fs_read_to_string_contains.html b/doc/lib/macro.assert_fs_read_to_string_contains.html index 9c8b68dfa..fc1bd1298 100644 --- a/doc/lib/macro.assert_fs_read_to_string_contains.html +++ b/doc/lib/macro.assert_fs_read_to_string_contains.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_contains in lib - Rust

                                                                                                                      Macro lib::assert_fs_read_to_string_contains

                                                                                                                      source ·
                                                                                                                      macro_rules! assert_fs_read_to_string_contains {
                                                                                                                      +assert_fs_read_to_string_contains in lib - Rust

                                                                                                                      Macro lib::assert_fs_read_to_string_contains

                                                                                                                      source ·
                                                                                                                      macro_rules! assert_fs_read_to_string_contains {
                                                                                                                           ($a_path:expr, $b:expr $(,)?) => { ... };
                                                                                                                           ($a_path:expr, $b:expr, $($message:tt)+) => { ... };
                                                                                                                       }
                                                                                                                      Expand description

                                                                                                                      Assert a std::fs::read_to_string() contains a pattern.

                                                                                                                      diff --git a/doc/lib/macro.assert_fs_read_to_string_contains_as_result.html b/doc/lib/macro.assert_fs_read_to_string_contains_as_result.html index 22256c2d7..ab82b1d1b 100644 --- a/doc/lib/macro.assert_fs_read_to_string_contains_as_result.html +++ b/doc/lib/macro.assert_fs_read_to_string_contains_as_result.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_contains_as_result in lib - Rust
                                                                                                                      macro_rules! assert_fs_read_to_string_contains_as_result {
                                                                                                                      +assert_fs_read_to_string_contains_as_result in lib - Rust
                                                                                                                      macro_rules! assert_fs_read_to_string_contains_as_result {
                                                                                                                           ($a_path:expr, $b_containee:expr $(,)?) => { ... };
                                                                                                                       }
                                                                                                                      Expand description

                                                                                                                      Assert a std::fs::read_to_string() contains a pattern.

                                                                                                                        diff --git a/doc/lib/macro.assert_fs_read_to_string_eq.html b/doc/lib/macro.assert_fs_read_to_string_eq.html index c27c0bf25..3d6b41855 100644 --- a/doc/lib/macro.assert_fs_read_to_string_eq.html +++ b/doc/lib/macro.assert_fs_read_to_string_eq.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_eq in lib - Rust

                                                                                                                        Macro lib::assert_fs_read_to_string_eq

                                                                                                                        source ·
                                                                                                                        macro_rules! assert_fs_read_to_string_eq {
                                                                                                                        +assert_fs_read_to_string_eq in lib - Rust

                                                                                                                        Macro lib::assert_fs_read_to_string_eq

                                                                                                                        source ·
                                                                                                                        macro_rules! assert_fs_read_to_string_eq {
                                                                                                                             ($a_path:expr, $b_path:expr $(,)?) => { ... };
                                                                                                                             ($a_path:expr, $b_path:expr, $($message:tt)+) => { ... };
                                                                                                                         }
                                                                                                                        Expand description

                                                                                                                        Assert a std::fs::read_to_string() value is equal to another.

                                                                                                                        diff --git a/doc/lib/macro.assert_fs_read_to_string_eq_as_result.html b/doc/lib/macro.assert_fs_read_to_string_eq_as_result.html index a9f769629..50a213fb0 100644 --- a/doc/lib/macro.assert_fs_read_to_string_eq_as_result.html +++ b/doc/lib/macro.assert_fs_read_to_string_eq_as_result.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_eq_as_result in lib - Rust

                                                                                                                        Macro lib::assert_fs_read_to_string_eq_as_result

                                                                                                                        source ·
                                                                                                                        macro_rules! assert_fs_read_to_string_eq_as_result {
                                                                                                                        +assert_fs_read_to_string_eq_as_result in lib - Rust

                                                                                                                        Macro lib::assert_fs_read_to_string_eq_as_result

                                                                                                                        source ·
                                                                                                                        macro_rules! assert_fs_read_to_string_eq_as_result {
                                                                                                                             ($a_path:expr, $b_path:expr $(,)?) => { ... };
                                                                                                                         }
                                                                                                                        Expand description

                                                                                                                        Assert a std::fs::read_to_string() is equal to another.

                                                                                                                          diff --git a/doc/lib/macro.assert_fs_read_to_string_eq_expr.html b/doc/lib/macro.assert_fs_read_to_string_eq_expr.html index 7a10d955c..29df0763d 100644 --- a/doc/lib/macro.assert_fs_read_to_string_eq_expr.html +++ b/doc/lib/macro.assert_fs_read_to_string_eq_expr.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_eq_expr in lib - Rust

                                                                                                                          Macro lib::assert_fs_read_to_string_eq_expr

                                                                                                                          source ·
                                                                                                                          macro_rules! assert_fs_read_to_string_eq_expr {
                                                                                                                          +assert_fs_read_to_string_eq_expr in lib - Rust

                                                                                                                          Macro lib::assert_fs_read_to_string_eq_expr

                                                                                                                          source ·
                                                                                                                          macro_rules! assert_fs_read_to_string_eq_expr {
                                                                                                                               ($a_path:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                               ($a_path:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                           }
                                                                                                                          Expand description

                                                                                                                          Assert a std::fs::read_to_string() value is equal to an expression.

                                                                                                                          diff --git a/doc/lib/macro.assert_fs_read_to_string_eq_expr_as_result.html b/doc/lib/macro.assert_fs_read_to_string_eq_expr_as_result.html index 1538a48dc..da2a8bf32 100644 --- a/doc/lib/macro.assert_fs_read_to_string_eq_expr_as_result.html +++ b/doc/lib/macro.assert_fs_read_to_string_eq_expr_as_result.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_eq_expr_as_result in lib - Rust
                                                                                                                          macro_rules! assert_fs_read_to_string_eq_expr_as_result {
                                                                                                                          +assert_fs_read_to_string_eq_expr_as_result in lib - Rust
                                                                                                                          macro_rules! assert_fs_read_to_string_eq_expr_as_result {
                                                                                                                               ($a_path:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                           }
                                                                                                                          Expand description

                                                                                                                          Assert a std::fs::read_to_string() value is equal to an expression.

                                                                                                                            diff --git a/doc/lib/macro.assert_fs_read_to_string_ge.html b/doc/lib/macro.assert_fs_read_to_string_ge.html index ec136ba66..a283651c9 100644 --- a/doc/lib/macro.assert_fs_read_to_string_ge.html +++ b/doc/lib/macro.assert_fs_read_to_string_ge.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_ge in lib - Rust

                                                                                                                            Macro lib::assert_fs_read_to_string_ge

                                                                                                                            source ·
                                                                                                                            macro_rules! assert_fs_read_to_string_ge {
                                                                                                                            +assert_fs_read_to_string_ge in lib - Rust

                                                                                                                            Macro lib::assert_fs_read_to_string_ge

                                                                                                                            source ·
                                                                                                                            macro_rules! assert_fs_read_to_string_ge {
                                                                                                                                 ($a_path:expr, $b_path:expr $(,)?) => { ... };
                                                                                                                                 ($a_path:expr, $b_path:expr, $($message:tt)+) => { ... };
                                                                                                                             }
                                                                                                                            Expand description

                                                                                                                            Assert a std::fs::read_to_string() value is greater than or equal to another.

                                                                                                                            diff --git a/doc/lib/macro.assert_fs_read_to_string_ge_as_result.html b/doc/lib/macro.assert_fs_read_to_string_ge_as_result.html index 47d355f1f..77963a176 100644 --- a/doc/lib/macro.assert_fs_read_to_string_ge_as_result.html +++ b/doc/lib/macro.assert_fs_read_to_string_ge_as_result.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_ge_as_result in lib - Rust

                                                                                                                            Macro lib::assert_fs_read_to_string_ge_as_result

                                                                                                                            source ·
                                                                                                                            macro_rules! assert_fs_read_to_string_ge_as_result {
                                                                                                                            +assert_fs_read_to_string_ge_as_result in lib - Rust

                                                                                                                            Macro lib::assert_fs_read_to_string_ge_as_result

                                                                                                                            source ·
                                                                                                                            macro_rules! assert_fs_read_to_string_ge_as_result {
                                                                                                                                 ($a_path:expr, $b_path:expr $(,)?) => { ... };
                                                                                                                             }
                                                                                                                            Expand description

                                                                                                                            Assert a std::fs::read_to_string() value is greater than or equal to another.

                                                                                                                              diff --git a/doc/lib/macro.assert_fs_read_to_string_ge_expr.html b/doc/lib/macro.assert_fs_read_to_string_ge_expr.html index 4efd27365..aaeae548c 100644 --- a/doc/lib/macro.assert_fs_read_to_string_ge_expr.html +++ b/doc/lib/macro.assert_fs_read_to_string_ge_expr.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_ge_expr in lib - Rust

                                                                                                                              Macro lib::assert_fs_read_to_string_ge_expr

                                                                                                                              source ·
                                                                                                                              macro_rules! assert_fs_read_to_string_ge_expr {
                                                                                                                              +assert_fs_read_to_string_ge_expr in lib - Rust

                                                                                                                              Macro lib::assert_fs_read_to_string_ge_expr

                                                                                                                              source ·
                                                                                                                              macro_rules! assert_fs_read_to_string_ge_expr {
                                                                                                                                   ($a_path:expr,  $b_expr:expr $(,)?) => { ... };
                                                                                                                                   ($a_path:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                               }
                                                                                                                              Expand description

                                                                                                                              Assert a std::fs::read_to_string() value is greater than or equal to an expression.

                                                                                                                              diff --git a/doc/lib/macro.assert_fs_read_to_string_ge_expr_as_result.html b/doc/lib/macro.assert_fs_read_to_string_ge_expr_as_result.html index 58a3bb42a..7b362a84b 100644 --- a/doc/lib/macro.assert_fs_read_to_string_ge_expr_as_result.html +++ b/doc/lib/macro.assert_fs_read_to_string_ge_expr_as_result.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_ge_expr_as_result in lib - Rust
                                                                                                                              macro_rules! assert_fs_read_to_string_ge_expr_as_result {
                                                                                                                              +assert_fs_read_to_string_ge_expr_as_result in lib - Rust
                                                                                                                              macro_rules! assert_fs_read_to_string_ge_expr_as_result {
                                                                                                                                   ($a_path:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                               }
                                                                                                                              Expand description

                                                                                                                              Assert a std::fs::read_to_string() value is greater than or equal to an expression.

                                                                                                                                diff --git a/doc/lib/macro.assert_fs_read_to_string_gt.html b/doc/lib/macro.assert_fs_read_to_string_gt.html index 7cf46a169..3135aabdb 100644 --- a/doc/lib/macro.assert_fs_read_to_string_gt.html +++ b/doc/lib/macro.assert_fs_read_to_string_gt.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_gt in lib - Rust

                                                                                                                                Macro lib::assert_fs_read_to_string_gt

                                                                                                                                source ·
                                                                                                                                macro_rules! assert_fs_read_to_string_gt {
                                                                                                                                +assert_fs_read_to_string_gt in lib - Rust

                                                                                                                                Macro lib::assert_fs_read_to_string_gt

                                                                                                                                source ·
                                                                                                                                macro_rules! assert_fs_read_to_string_gt {
                                                                                                                                     ($a_path:expr, $b_path:expr $(,)?) => { ... };
                                                                                                                                     ($a_path:expr, $b_path:expr, $($message:tt)+) => { ... };
                                                                                                                                 }
                                                                                                                                Expand description

                                                                                                                                Assert a std::fs::read_to_string() value is greater than another.

                                                                                                                                diff --git a/doc/lib/macro.assert_fs_read_to_string_gt_as_result.html b/doc/lib/macro.assert_fs_read_to_string_gt_as_result.html index e0eadc040..0ca6f4324 100644 --- a/doc/lib/macro.assert_fs_read_to_string_gt_as_result.html +++ b/doc/lib/macro.assert_fs_read_to_string_gt_as_result.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_gt_as_result in lib - Rust

                                                                                                                                Macro lib::assert_fs_read_to_string_gt_as_result

                                                                                                                                source ·
                                                                                                                                macro_rules! assert_fs_read_to_string_gt_as_result {
                                                                                                                                +assert_fs_read_to_string_gt_as_result in lib - Rust

                                                                                                                                Macro lib::assert_fs_read_to_string_gt_as_result

                                                                                                                                source ·
                                                                                                                                macro_rules! assert_fs_read_to_string_gt_as_result {
                                                                                                                                     ($a_path:expr, $b_path:expr $(,)?) => { ... };
                                                                                                                                 }
                                                                                                                                Expand description

                                                                                                                                Assert a std::fs::read_to_string() value is greater than another.

                                                                                                                                  diff --git a/doc/lib/macro.assert_fs_read_to_string_gt_expr.html b/doc/lib/macro.assert_fs_read_to_string_gt_expr.html index 29f3295e7..568f515ac 100644 --- a/doc/lib/macro.assert_fs_read_to_string_gt_expr.html +++ b/doc/lib/macro.assert_fs_read_to_string_gt_expr.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_gt_expr in lib - Rust

                                                                                                                                  Macro lib::assert_fs_read_to_string_gt_expr

                                                                                                                                  source ·
                                                                                                                                  macro_rules! assert_fs_read_to_string_gt_expr {
                                                                                                                                  +assert_fs_read_to_string_gt_expr in lib - Rust

                                                                                                                                  Macro lib::assert_fs_read_to_string_gt_expr

                                                                                                                                  source ·
                                                                                                                                  macro_rules! assert_fs_read_to_string_gt_expr {
                                                                                                                                       ($a_path:expr,  $b_expr:expr $(,)?) => { ... };
                                                                                                                                       ($a_path:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                                   }
                                                                                                                                  Expand description

                                                                                                                                  Assert a std::fs::read_to_string() value is greater than an expression.

                                                                                                                                  diff --git a/doc/lib/macro.assert_fs_read_to_string_gt_expr_as_result.html b/doc/lib/macro.assert_fs_read_to_string_gt_expr_as_result.html index e5819ad42..5cbb71c94 100644 --- a/doc/lib/macro.assert_fs_read_to_string_gt_expr_as_result.html +++ b/doc/lib/macro.assert_fs_read_to_string_gt_expr_as_result.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_gt_expr_as_result in lib - Rust
                                                                                                                                  macro_rules! assert_fs_read_to_string_gt_expr_as_result {
                                                                                                                                  +assert_fs_read_to_string_gt_expr_as_result in lib - Rust
                                                                                                                                  macro_rules! assert_fs_read_to_string_gt_expr_as_result {
                                                                                                                                       ($a_path:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                   }
                                                                                                                                  Expand description

                                                                                                                                  Assert a std::fs::read_to_string() value is greater than an expression.

                                                                                                                                    diff --git a/doc/lib/macro.assert_fs_read_to_string_le.html b/doc/lib/macro.assert_fs_read_to_string_le.html index 5c1608adb..bf3f48d34 100644 --- a/doc/lib/macro.assert_fs_read_to_string_le.html +++ b/doc/lib/macro.assert_fs_read_to_string_le.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_le in lib - Rust

                                                                                                                                    Macro lib::assert_fs_read_to_string_le

                                                                                                                                    source ·
                                                                                                                                    macro_rules! assert_fs_read_to_string_le {
                                                                                                                                    +assert_fs_read_to_string_le in lib - Rust

                                                                                                                                    Macro lib::assert_fs_read_to_string_le

                                                                                                                                    source ·
                                                                                                                                    macro_rules! assert_fs_read_to_string_le {
                                                                                                                                         ($a_path:expr, $b_path:expr $(,)?) => { ... };
                                                                                                                                         ($a_path:expr, $b_path:expr, $($message:tt)+) => { ... };
                                                                                                                                     }
                                                                                                                                    Expand description

                                                                                                                                    Assert a std::fs::read_to_string() value is less than or equal to another.

                                                                                                                                    diff --git a/doc/lib/macro.assert_fs_read_to_string_le_as_result.html b/doc/lib/macro.assert_fs_read_to_string_le_as_result.html index f61a3b887..df2380833 100644 --- a/doc/lib/macro.assert_fs_read_to_string_le_as_result.html +++ b/doc/lib/macro.assert_fs_read_to_string_le_as_result.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_le_as_result in lib - Rust

                                                                                                                                    Macro lib::assert_fs_read_to_string_le_as_result

                                                                                                                                    source ·
                                                                                                                                    macro_rules! assert_fs_read_to_string_le_as_result {
                                                                                                                                    +assert_fs_read_to_string_le_as_result in lib - Rust

                                                                                                                                    Macro lib::assert_fs_read_to_string_le_as_result

                                                                                                                                    source ·
                                                                                                                                    macro_rules! assert_fs_read_to_string_le_as_result {
                                                                                                                                         ($a_path:expr, $b_path:expr $(,)?) => { ... };
                                                                                                                                     }
                                                                                                                                    Expand description

                                                                                                                                    Assert a std::fs::read_to_string() value is less than or equal to another.

                                                                                                                                      diff --git a/doc/lib/macro.assert_fs_read_to_string_le_expr.html b/doc/lib/macro.assert_fs_read_to_string_le_expr.html index fc122e12c..c194410a4 100644 --- a/doc/lib/macro.assert_fs_read_to_string_le_expr.html +++ b/doc/lib/macro.assert_fs_read_to_string_le_expr.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_le_expr in lib - Rust

                                                                                                                                      Macro lib::assert_fs_read_to_string_le_expr

                                                                                                                                      source ·
                                                                                                                                      macro_rules! assert_fs_read_to_string_le_expr {
                                                                                                                                      +assert_fs_read_to_string_le_expr in lib - Rust

                                                                                                                                      Macro lib::assert_fs_read_to_string_le_expr

                                                                                                                                      source ·
                                                                                                                                      macro_rules! assert_fs_read_to_string_le_expr {
                                                                                                                                           ($a_path:expr,  $b_expr:expr $(,)?) => { ... };
                                                                                                                                           ($a_path:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                                       }
                                                                                                                                      Expand description

                                                                                                                                      Assert a std::fs::read_to_string() value is less than or equal to an expression.

                                                                                                                                      diff --git a/doc/lib/macro.assert_fs_read_to_string_le_expr_as_result.html b/doc/lib/macro.assert_fs_read_to_string_le_expr_as_result.html index b68dcbba9..4e3a26a9e 100644 --- a/doc/lib/macro.assert_fs_read_to_string_le_expr_as_result.html +++ b/doc/lib/macro.assert_fs_read_to_string_le_expr_as_result.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_le_expr_as_result in lib - Rust
                                                                                                                                      macro_rules! assert_fs_read_to_string_le_expr_as_result {
                                                                                                                                      +assert_fs_read_to_string_le_expr_as_result in lib - Rust
                                                                                                                                      macro_rules! assert_fs_read_to_string_le_expr_as_result {
                                                                                                                                           ($a_path:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                       }
                                                                                                                                      Expand description

                                                                                                                                      Assert a std::fs::read_to_string() value is less than or equal to an expression.

                                                                                                                                        diff --git a/doc/lib/macro.assert_fs_read_to_string_lt.html b/doc/lib/macro.assert_fs_read_to_string_lt.html index 6211408ed..61dc323b8 100644 --- a/doc/lib/macro.assert_fs_read_to_string_lt.html +++ b/doc/lib/macro.assert_fs_read_to_string_lt.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_lt in lib - Rust

                                                                                                                                        Macro lib::assert_fs_read_to_string_lt

                                                                                                                                        source ·
                                                                                                                                        macro_rules! assert_fs_read_to_string_lt {
                                                                                                                                        +assert_fs_read_to_string_lt in lib - Rust

                                                                                                                                        Macro lib::assert_fs_read_to_string_lt

                                                                                                                                        source ·
                                                                                                                                        macro_rules! assert_fs_read_to_string_lt {
                                                                                                                                             ($a_path:expr, $b_path:expr $(,)?) => { ... };
                                                                                                                                             ($a_path:expr, $b_path:expr, $($message:tt)+) => { ... };
                                                                                                                                         }
                                                                                                                                        Expand description

                                                                                                                                        Assert a std::fs::read_to_string() value is less than another.

                                                                                                                                        diff --git a/doc/lib/macro.assert_fs_read_to_string_lt_as_result.html b/doc/lib/macro.assert_fs_read_to_string_lt_as_result.html index b4acb094e..c33dbf77b 100644 --- a/doc/lib/macro.assert_fs_read_to_string_lt_as_result.html +++ b/doc/lib/macro.assert_fs_read_to_string_lt_as_result.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_lt_as_result in lib - Rust

                                                                                                                                        Macro lib::assert_fs_read_to_string_lt_as_result

                                                                                                                                        source ·
                                                                                                                                        macro_rules! assert_fs_read_to_string_lt_as_result {
                                                                                                                                        +assert_fs_read_to_string_lt_as_result in lib - Rust

                                                                                                                                        Macro lib::assert_fs_read_to_string_lt_as_result

                                                                                                                                        source ·
                                                                                                                                        macro_rules! assert_fs_read_to_string_lt_as_result {
                                                                                                                                             ($a_path:expr, $b_path:expr $(,)?) => { ... };
                                                                                                                                         }
                                                                                                                                        Expand description

                                                                                                                                        Assert a std::fs::read_to_string() value is less than another.

                                                                                                                                          diff --git a/doc/lib/macro.assert_fs_read_to_string_lt_expr.html b/doc/lib/macro.assert_fs_read_to_string_lt_expr.html index c69c70cc9..485925979 100644 --- a/doc/lib/macro.assert_fs_read_to_string_lt_expr.html +++ b/doc/lib/macro.assert_fs_read_to_string_lt_expr.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_lt_expr in lib - Rust

                                                                                                                                          Macro lib::assert_fs_read_to_string_lt_expr

                                                                                                                                          source ·
                                                                                                                                          macro_rules! assert_fs_read_to_string_lt_expr {
                                                                                                                                          +assert_fs_read_to_string_lt_expr in lib - Rust

                                                                                                                                          Macro lib::assert_fs_read_to_string_lt_expr

                                                                                                                                          source ·
                                                                                                                                          macro_rules! assert_fs_read_to_string_lt_expr {
                                                                                                                                               ($a_path:expr,  $b_expr:expr $(,)?) => { ... };
                                                                                                                                               ($a_path:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                                           }
                                                                                                                                          Expand description

                                                                                                                                          Assert a std::fs::read_to_string() value is less than an expression.

                                                                                                                                          diff --git a/doc/lib/macro.assert_fs_read_to_string_lt_expr_as_result.html b/doc/lib/macro.assert_fs_read_to_string_lt_expr_as_result.html index 4e89256bd..d56d3c1dc 100644 --- a/doc/lib/macro.assert_fs_read_to_string_lt_expr_as_result.html +++ b/doc/lib/macro.assert_fs_read_to_string_lt_expr_as_result.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_lt_expr_as_result in lib - Rust
                                                                                                                                          macro_rules! assert_fs_read_to_string_lt_expr_as_result {
                                                                                                                                          +assert_fs_read_to_string_lt_expr_as_result in lib - Rust
                                                                                                                                          macro_rules! assert_fs_read_to_string_lt_expr_as_result {
                                                                                                                                               ($a_path:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                           }
                                                                                                                                          Expand description

                                                                                                                                          Assert a std::fs::read_to_string() value is less than an expression.

                                                                                                                                            diff --git a/doc/lib/macro.assert_fs_read_to_string_matches.html b/doc/lib/macro.assert_fs_read_to_string_matches.html index 925804c62..236a6d1e3 100644 --- a/doc/lib/macro.assert_fs_read_to_string_matches.html +++ b/doc/lib/macro.assert_fs_read_to_string_matches.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_matches in lib - Rust

                                                                                                                                            Macro lib::assert_fs_read_to_string_matches

                                                                                                                                            source ·
                                                                                                                                            macro_rules! assert_fs_read_to_string_matches {
                                                                                                                                            +assert_fs_read_to_string_matches in lib - Rust

                                                                                                                                            Macro lib::assert_fs_read_to_string_matches

                                                                                                                                            source ·
                                                                                                                                            macro_rules! assert_fs_read_to_string_matches {
                                                                                                                                                 ($a_path:expr, $b_matcher:expr $(,)?) => { ... };
                                                                                                                                                 ($a_path:expr, $b_matcher:expr, $($message:tt)+) => { ... };
                                                                                                                                             }
                                                                                                                                            Expand description

                                                                                                                                            Assert a std::fs::read_to_string() is a match to a regex.

                                                                                                                                            diff --git a/doc/lib/macro.assert_fs_read_to_string_matches_as_result.html b/doc/lib/macro.assert_fs_read_to_string_matches_as_result.html index 0f2aada8f..11744884e 100644 --- a/doc/lib/macro.assert_fs_read_to_string_matches_as_result.html +++ b/doc/lib/macro.assert_fs_read_to_string_matches_as_result.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_matches_as_result in lib - Rust
                                                                                                                                            macro_rules! assert_fs_read_to_string_matches_as_result {
                                                                                                                                            +assert_fs_read_to_string_matches_as_result in lib - Rust
                                                                                                                                            macro_rules! assert_fs_read_to_string_matches_as_result {
                                                                                                                                                 ($a_path:expr, $b_matcher:expr $(,)?) => { ... };
                                                                                                                                             }
                                                                                                                                            Expand description

                                                                                                                                            Assert a std::fs::read_to_string() is a match to a regex.

                                                                                                                                              diff --git a/doc/lib/macro.assert_fs_read_to_string_ne.html b/doc/lib/macro.assert_fs_read_to_string_ne.html index 56cc2b54b..87806d04b 100644 --- a/doc/lib/macro.assert_fs_read_to_string_ne.html +++ b/doc/lib/macro.assert_fs_read_to_string_ne.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_ne in lib - Rust

                                                                                                                                              Macro lib::assert_fs_read_to_string_ne

                                                                                                                                              source ·
                                                                                                                                              macro_rules! assert_fs_read_to_string_ne {
                                                                                                                                              +assert_fs_read_to_string_ne in lib - Rust

                                                                                                                                              Macro lib::assert_fs_read_to_string_ne

                                                                                                                                              source ·
                                                                                                                                              macro_rules! assert_fs_read_to_string_ne {
                                                                                                                                                   ($a_path:expr, $b_path:expr $(,)?) => { ... };
                                                                                                                                                   ($a_path:expr, $b_path:expr, $($message:tt)+) => { ... };
                                                                                                                                               }
                                                                                                                                              Expand description

                                                                                                                                              Assert a std::fs::read_to_string() is not equal to another.

                                                                                                                                              diff --git a/doc/lib/macro.assert_fs_read_to_string_ne_as_result.html b/doc/lib/macro.assert_fs_read_to_string_ne_as_result.html index f15ab6685..8f09de062 100644 --- a/doc/lib/macro.assert_fs_read_to_string_ne_as_result.html +++ b/doc/lib/macro.assert_fs_read_to_string_ne_as_result.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_ne_as_result in lib - Rust

                                                                                                                                              Macro lib::assert_fs_read_to_string_ne_as_result

                                                                                                                                              source ·
                                                                                                                                              macro_rules! assert_fs_read_to_string_ne_as_result {
                                                                                                                                              +assert_fs_read_to_string_ne_as_result in lib - Rust

                                                                                                                                              Macro lib::assert_fs_read_to_string_ne_as_result

                                                                                                                                              source ·
                                                                                                                                              macro_rules! assert_fs_read_to_string_ne_as_result {
                                                                                                                                                   ($a_path:expr, $b_path:expr $(,)?) => { ... };
                                                                                                                                               }
                                                                                                                                              Expand description

                                                                                                                                              Assert a std::fs::read_to_string() is not equal to another.

                                                                                                                                                diff --git a/doc/lib/macro.assert_fs_read_to_string_ne_expr.html b/doc/lib/macro.assert_fs_read_to_string_ne_expr.html index 09d8707d6..50b135db9 100644 --- a/doc/lib/macro.assert_fs_read_to_string_ne_expr.html +++ b/doc/lib/macro.assert_fs_read_to_string_ne_expr.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_ne_expr in lib - Rust

                                                                                                                                                Macro lib::assert_fs_read_to_string_ne_expr

                                                                                                                                                source ·
                                                                                                                                                macro_rules! assert_fs_read_to_string_ne_expr {
                                                                                                                                                +assert_fs_read_to_string_ne_expr in lib - Rust

                                                                                                                                                Macro lib::assert_fs_read_to_string_ne_expr

                                                                                                                                                source ·
                                                                                                                                                macro_rules! assert_fs_read_to_string_ne_expr {
                                                                                                                                                     ($a_path:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                     ($a_path:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                                                 }
                                                                                                                                                Expand description

                                                                                                                                                Assert a std::fs::read_to_string() is not equal to an expression.

                                                                                                                                                diff --git a/doc/lib/macro.assert_fs_read_to_string_ne_expr_as_result.html b/doc/lib/macro.assert_fs_read_to_string_ne_expr_as_result.html index 381a66550..5364c6249 100644 --- a/doc/lib/macro.assert_fs_read_to_string_ne_expr_as_result.html +++ b/doc/lib/macro.assert_fs_read_to_string_ne_expr_as_result.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_ne_expr_as_result in lib - Rust
                                                                                                                                                macro_rules! assert_fs_read_to_string_ne_expr_as_result {
                                                                                                                                                +assert_fs_read_to_string_ne_expr_as_result in lib - Rust
                                                                                                                                                macro_rules! assert_fs_read_to_string_ne_expr_as_result {
                                                                                                                                                     ($a_path:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                 }
                                                                                                                                                Expand description

                                                                                                                                                Assert a std::fs::read_to_string() is not equal to an expression.

                                                                                                                                                  diff --git a/doc/lib/macro.assert_infix!.html b/doc/lib/macro.assert_infix!.html new file mode 100644 index 000000000..6488ffe4e --- /dev/null +++ b/doc/lib/macro.assert_infix!.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

                                                                                                                                                  Redirecting to macro.assert_infix.html...

                                                                                                                                                  + + + \ No newline at end of file diff --git a/doc/lib/macro.assert_infix.html b/doc/lib/macro.assert_infix.html new file mode 100644 index 000000000..43d5258f3 --- /dev/null +++ b/doc/lib/macro.assert_infix.html @@ -0,0 +1,73 @@ +assert_infix in lib - Rust

                                                                                                                                                  Macro lib::assert_infix

                                                                                                                                                  source ·
                                                                                                                                                  macro_rules! assert_infix {
                                                                                                                                                  +    ($x:tt $infix:tt $y:tt) => { ... };
                                                                                                                                                  +    ($x:tt $infix:tt $y:tt, $($message:tt)+) => { ... };
                                                                                                                                                  +}
                                                                                                                                                  Expand description

                                                                                                                                                  Assert a infix operator, such as assert_infix!(a == b).

                                                                                                                                                  +
                                                                                                                                                    +
                                                                                                                                                  • +

                                                                                                                                                    If true, return ().

                                                                                                                                                    +
                                                                                                                                                  • +
                                                                                                                                                  • +

                                                                                                                                                    Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

                                                                                                                                                    +
                                                                                                                                                  • +
                                                                                                                                                  +

                                                                                                                                                  §Examples

                                                                                                                                                  +
                                                                                                                                                  // Return Ok
                                                                                                                                                  +let a = 1;
                                                                                                                                                  +let b = 1;
                                                                                                                                                  +assert_infix!(a == b);
                                                                                                                                                  +//-> ()
                                                                                                                                                  +
                                                                                                                                                  +let a = 1;
                                                                                                                                                  +let b = 2;
                                                                                                                                                  +// Panic with error message
                                                                                                                                                  +let result = panic::catch_unwind(|| {
                                                                                                                                                  +assert_infix!(a == b);
                                                                                                                                                  +//-> panic!
                                                                                                                                                  +});
                                                                                                                                                  +assert!(result.is_err());
                                                                                                                                                  +let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                  +let expect = concat!(
                                                                                                                                                  +    "assertion failed: `assert_infix!(x == y)`\n",
                                                                                                                                                  +    " x label: `a`,\n",
                                                                                                                                                  +    " x debug: `1`,\n",
                                                                                                                                                  +    " y label: `b`,\n",
                                                                                                                                                  +    " y debug: `2`\n",
                                                                                                                                                  +);
                                                                                                                                                  +assert_eq!(actual, expect);
                                                                                                                                                  +
                                                                                                                                                  +// Panic with error message
                                                                                                                                                  +let result = panic::catch_unwind(|| {
                                                                                                                                                  +assert_infix!(a == b, "message");
                                                                                                                                                  +//-> panic!
                                                                                                                                                  +});
                                                                                                                                                  +assert!(result.is_err());
                                                                                                                                                  +let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                  +let expect = "message";
                                                                                                                                                  +assert_eq!(actual, expect);
                                                                                                                                                  +

                                                                                                                                                  §Infix operators

                                                                                                                                                  +

                                                                                                                                                  For values:

                                                                                                                                                  +
                                                                                                                                                    +
                                                                                                                                                  • == equal
                                                                                                                                                  • +
                                                                                                                                                  • != not equal
                                                                                                                                                  • +
                                                                                                                                                  • < less than
                                                                                                                                                  • +
                                                                                                                                                  • <= less than or equal to
                                                                                                                                                  • +
                                                                                                                                                  • > greater than
                                                                                                                                                  • +
                                                                                                                                                  • >= greater than or equal to
                                                                                                                                                  • +
                                                                                                                                                  +

                                                                                                                                                  For booleans:

                                                                                                                                                  +
                                                                                                                                                    +
                                                                                                                                                  • ^ logical XOR
                                                                                                                                                  • +
                                                                                                                                                  • ! logical NOT
                                                                                                                                                  • +
                                                                                                                                                  • & logical AND
                                                                                                                                                  • +
                                                                                                                                                  • | logical OR
                                                                                                                                                  • +
                                                                                                                                                  • && logical lazy AND
                                                                                                                                                  • +
                                                                                                                                                  • || logical lazy OR
                                                                                                                                                  • +
                                                                                                                                                  +

                                                                                                                                                  §Module macros

                                                                                                                                                  + +
                                                                                                                                                  \ No newline at end of file diff --git a/doc/lib/macro.assert_infix_as_result!.html b/doc/lib/macro.assert_infix_as_result!.html new file mode 100644 index 000000000..c4982e17e --- /dev/null +++ b/doc/lib/macro.assert_infix_as_result!.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

                                                                                                                                                  Redirecting to macro.assert_infix_as_result.html...

                                                                                                                                                  + + + \ No newline at end of file diff --git a/doc/lib/macro.assert_infix_as_result.html b/doc/lib/macro.assert_infix_as_result.html new file mode 100644 index 000000000..1b83786d4 --- /dev/null +++ b/doc/lib/macro.assert_infix_as_result.html @@ -0,0 +1,22 @@ +assert_infix_as_result in lib - Rust

                                                                                                                                                  Macro lib::assert_infix_as_result

                                                                                                                                                  source ·
                                                                                                                                                  macro_rules! assert_infix_as_result {
                                                                                                                                                  +    ($x:tt $infix:tt $y:tt) => { ... };
                                                                                                                                                  +}
                                                                                                                                                  Expand description

                                                                                                                                                  Assert a infix operator, such as assert_infix!(a == b).

                                                                                                                                                  +
                                                                                                                                                    +
                                                                                                                                                  • +

                                                                                                                                                    If true, return Result Ok(()).

                                                                                                                                                    +
                                                                                                                                                  • +
                                                                                                                                                  • +

                                                                                                                                                    Otherwise, return Result Err with a diagnostic message.

                                                                                                                                                    +
                                                                                                                                                  • +
                                                                                                                                                  +

                                                                                                                                                  This macro provides the same statements as assert_infix, +except this macro returns a Result, rather than doing a panic.

                                                                                                                                                  +

                                                                                                                                                  This macro is useful for runtime checks, such as checking parameters, +or sanitizing inputs, or handling different results in different ways.

                                                                                                                                                  +

                                                                                                                                                  §Module macros

                                                                                                                                                  + +
                                                                                                                                                  \ No newline at end of file diff --git a/doc/lib/macro.assert_io_read_to_string_contains.html b/doc/lib/macro.assert_io_read_to_string_contains.html index 52ba7b346..95ef06442 100644 --- a/doc/lib/macro.assert_io_read_to_string_contains.html +++ b/doc/lib/macro.assert_io_read_to_string_contains.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_contains in lib - Rust

                                                                                                                                                  Macro lib::assert_io_read_to_string_contains

                                                                                                                                                  source ·
                                                                                                                                                  macro_rules! assert_io_read_to_string_contains {
                                                                                                                                                  +assert_io_read_to_string_contains in lib - Rust

                                                                                                                                                  Macro lib::assert_io_read_to_string_contains

                                                                                                                                                  source ·
                                                                                                                                                  macro_rules! assert_io_read_to_string_contains {
                                                                                                                                                       ($a_reader:expr, $b:expr $(,)?) => { ... };
                                                                                                                                                       ($a_reader:expr, $b:expr, $($message:tt)+) => { ... };
                                                                                                                                                   }
                                                                                                                                                  Expand description

                                                                                                                                                  Assert a std::io::Read read_to_string() contains a pattern.

                                                                                                                                                  diff --git a/doc/lib/macro.assert_io_read_to_string_contains_as_result.html b/doc/lib/macro.assert_io_read_to_string_contains_as_result.html index 1a770e011..be5b44c3b 100644 --- a/doc/lib/macro.assert_io_read_to_string_contains_as_result.html +++ b/doc/lib/macro.assert_io_read_to_string_contains_as_result.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_contains_as_result in lib - Rust
                                                                                                                                                  macro_rules! assert_io_read_to_string_contains_as_result {
                                                                                                                                                  +assert_io_read_to_string_contains_as_result in lib - Rust
                                                                                                                                                  macro_rules! assert_io_read_to_string_contains_as_result {
                                                                                                                                                       ($a_reader:expr, $b_containee:expr $(,)?) => { ... };
                                                                                                                                                   }
                                                                                                                                                  Expand description

                                                                                                                                                  Assert a std::io::Read read_to_string() contains a pattern.

                                                                                                                                                    diff --git a/doc/lib/macro.assert_io_read_to_string_eq.html b/doc/lib/macro.assert_io_read_to_string_eq.html index 6947e64bf..1abbd7b03 100644 --- a/doc/lib/macro.assert_io_read_to_string_eq.html +++ b/doc/lib/macro.assert_io_read_to_string_eq.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_eq in lib - Rust

                                                                                                                                                    Macro lib::assert_io_read_to_string_eq

                                                                                                                                                    source ·
                                                                                                                                                    macro_rules! assert_io_read_to_string_eq {
                                                                                                                                                    +assert_io_read_to_string_eq in lib - Rust

                                                                                                                                                    Macro lib::assert_io_read_to_string_eq

                                                                                                                                                    source ·
                                                                                                                                                    macro_rules! assert_io_read_to_string_eq {
                                                                                                                                                         ($a_reader:expr, $b_reader:expr $(,)?) => { ... };
                                                                                                                                                         ($a_reader:expr, $b_reader:expr, $($message:tt)+) => { ... };
                                                                                                                                                     }
                                                                                                                                                    Expand description

                                                                                                                                                    Assert a std::io::Read read_to_string() value is equal to another.

                                                                                                                                                    diff --git a/doc/lib/macro.assert_io_read_to_string_eq_as_result.html b/doc/lib/macro.assert_io_read_to_string_eq_as_result.html index ab8b139c3..74667f193 100644 --- a/doc/lib/macro.assert_io_read_to_string_eq_as_result.html +++ b/doc/lib/macro.assert_io_read_to_string_eq_as_result.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_eq_as_result in lib - Rust

                                                                                                                                                    Macro lib::assert_io_read_to_string_eq_as_result

                                                                                                                                                    source ·
                                                                                                                                                    macro_rules! assert_io_read_to_string_eq_as_result {
                                                                                                                                                    +assert_io_read_to_string_eq_as_result in lib - Rust

                                                                                                                                                    Macro lib::assert_io_read_to_string_eq_as_result

                                                                                                                                                    source ·
                                                                                                                                                    macro_rules! assert_io_read_to_string_eq_as_result {
                                                                                                                                                         ($a_reader:expr, $b_reader:expr $(,)?) => { ... };
                                                                                                                                                     }
                                                                                                                                                    Expand description

                                                                                                                                                    Assert a std::io::Read read_to_string() is equal to another.

                                                                                                                                                      diff --git a/doc/lib/macro.assert_io_read_to_string_eq_expr.html b/doc/lib/macro.assert_io_read_to_string_eq_expr.html index 25409f9c3..a443ac89e 100644 --- a/doc/lib/macro.assert_io_read_to_string_eq_expr.html +++ b/doc/lib/macro.assert_io_read_to_string_eq_expr.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_eq_expr in lib - Rust

                                                                                                                                                      Macro lib::assert_io_read_to_string_eq_expr

                                                                                                                                                      source ·
                                                                                                                                                      macro_rules! assert_io_read_to_string_eq_expr {
                                                                                                                                                      +assert_io_read_to_string_eq_expr in lib - Rust

                                                                                                                                                      Macro lib::assert_io_read_to_string_eq_expr

                                                                                                                                                      source ·
                                                                                                                                                      macro_rules! assert_io_read_to_string_eq_expr {
                                                                                                                                                           ($a_reader:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                           ($a_reader:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                                                       }
                                                                                                                                                      Expand description

                                                                                                                                                      Assert a std::io::Read read_to_string() value is equal to an expression.

                                                                                                                                                      diff --git a/doc/lib/macro.assert_io_read_to_string_eq_expr_as_result.html b/doc/lib/macro.assert_io_read_to_string_eq_expr_as_result.html index ab86fa331..841a8ff96 100644 --- a/doc/lib/macro.assert_io_read_to_string_eq_expr_as_result.html +++ b/doc/lib/macro.assert_io_read_to_string_eq_expr_as_result.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_eq_expr_as_result in lib - Rust
                                                                                                                                                      macro_rules! assert_io_read_to_string_eq_expr_as_result {
                                                                                                                                                      +assert_io_read_to_string_eq_expr_as_result in lib - Rust
                                                                                                                                                      macro_rules! assert_io_read_to_string_eq_expr_as_result {
                                                                                                                                                           ($a_reader:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                       }
                                                                                                                                                      Expand description

                                                                                                                                                      Assert a std::io::Read read_to_string() value is equal to an expression.

                                                                                                                                                        diff --git a/doc/lib/macro.assert_io_read_to_string_ge.html b/doc/lib/macro.assert_io_read_to_string_ge.html index 02126935a..7d2e5b5d4 100644 --- a/doc/lib/macro.assert_io_read_to_string_ge.html +++ b/doc/lib/macro.assert_io_read_to_string_ge.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_ge in lib - Rust

                                                                                                                                                        Macro lib::assert_io_read_to_string_ge

                                                                                                                                                        source ·
                                                                                                                                                        macro_rules! assert_io_read_to_string_ge {
                                                                                                                                                        +assert_io_read_to_string_ge in lib - Rust

                                                                                                                                                        Macro lib::assert_io_read_to_string_ge

                                                                                                                                                        source ·
                                                                                                                                                        macro_rules! assert_io_read_to_string_ge {
                                                                                                                                                             ($a_reader:expr, $b_reader:expr $(,)?) => { ... };
                                                                                                                                                             ($a_reader:expr, $b_reader:expr, $($message:tt)+) => { ... };
                                                                                                                                                         }
                                                                                                                                                        Expand description

                                                                                                                                                        Assert a std::io::Read read_to_string() value is greater than or equal to another.

                                                                                                                                                        diff --git a/doc/lib/macro.assert_io_read_to_string_ge_as_result.html b/doc/lib/macro.assert_io_read_to_string_ge_as_result.html index bbdb3d5e3..f6c00cd9e 100644 --- a/doc/lib/macro.assert_io_read_to_string_ge_as_result.html +++ b/doc/lib/macro.assert_io_read_to_string_ge_as_result.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_ge_as_result in lib - Rust

                                                                                                                                                        Macro lib::assert_io_read_to_string_ge_as_result

                                                                                                                                                        source ·
                                                                                                                                                        macro_rules! assert_io_read_to_string_ge_as_result {
                                                                                                                                                        +assert_io_read_to_string_ge_as_result in lib - Rust

                                                                                                                                                        Macro lib::assert_io_read_to_string_ge_as_result

                                                                                                                                                        source ·
                                                                                                                                                        macro_rules! assert_io_read_to_string_ge_as_result {
                                                                                                                                                             ($a_reader:expr, $b_reader:expr $(,)?) => { ... };
                                                                                                                                                         }
                                                                                                                                                        Expand description

                                                                                                                                                        Assert a std::io::Read read_to_string() value is greater than or equal to another.

                                                                                                                                                          diff --git a/doc/lib/macro.assert_io_read_to_string_ge_expr.html b/doc/lib/macro.assert_io_read_to_string_ge_expr.html index e3aea618c..0ac0a7643 100644 --- a/doc/lib/macro.assert_io_read_to_string_ge_expr.html +++ b/doc/lib/macro.assert_io_read_to_string_ge_expr.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_ge_expr in lib - Rust

                                                                                                                                                          Macro lib::assert_io_read_to_string_ge_expr

                                                                                                                                                          source ·
                                                                                                                                                          macro_rules! assert_io_read_to_string_ge_expr {
                                                                                                                                                          +assert_io_read_to_string_ge_expr in lib - Rust

                                                                                                                                                          Macro lib::assert_io_read_to_string_ge_expr

                                                                                                                                                          source ·
                                                                                                                                                          macro_rules! assert_io_read_to_string_ge_expr {
                                                                                                                                                               ($a_reader:expr,  $b_expr:expr $(,)?) => { ... };
                                                                                                                                                               ($a_reader:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                                                           }
                                                                                                                                                          Expand description

                                                                                                                                                          Assert a std::io::Read read_to_string() value is greater than or equal to an expression.

                                                                                                                                                          diff --git a/doc/lib/macro.assert_io_read_to_string_ge_expr_as_result.html b/doc/lib/macro.assert_io_read_to_string_ge_expr_as_result.html index c3b42a188..10b75ab10 100644 --- a/doc/lib/macro.assert_io_read_to_string_ge_expr_as_result.html +++ b/doc/lib/macro.assert_io_read_to_string_ge_expr_as_result.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_ge_expr_as_result in lib - Rust
                                                                                                                                                          macro_rules! assert_io_read_to_string_ge_expr_as_result {
                                                                                                                                                          +assert_io_read_to_string_ge_expr_as_result in lib - Rust
                                                                                                                                                          macro_rules! assert_io_read_to_string_ge_expr_as_result {
                                                                                                                                                               ($a_reader:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                           }
                                                                                                                                                          Expand description

                                                                                                                                                          Assert a std::io::Read read_to_string() value is greater than or equal to an expression.

                                                                                                                                                            diff --git a/doc/lib/macro.assert_io_read_to_string_gt.html b/doc/lib/macro.assert_io_read_to_string_gt.html index 678985e10..2a8efb683 100644 --- a/doc/lib/macro.assert_io_read_to_string_gt.html +++ b/doc/lib/macro.assert_io_read_to_string_gt.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_gt in lib - Rust

                                                                                                                                                            Macro lib::assert_io_read_to_string_gt

                                                                                                                                                            source ·
                                                                                                                                                            macro_rules! assert_io_read_to_string_gt {
                                                                                                                                                            +assert_io_read_to_string_gt in lib - Rust

                                                                                                                                                            Macro lib::assert_io_read_to_string_gt

                                                                                                                                                            source ·
                                                                                                                                                            macro_rules! assert_io_read_to_string_gt {
                                                                                                                                                                 ($a_reader:expr, $b_reader:expr $(,)?) => { ... };
                                                                                                                                                                 ($a_reader:expr, $b_reader:expr, $($message:tt)+) => { ... };
                                                                                                                                                             }
                                                                                                                                                            Expand description

                                                                                                                                                            Assert a std::io::Read read_to_string() value is greater than another.

                                                                                                                                                            diff --git a/doc/lib/macro.assert_io_read_to_string_gt_as_result.html b/doc/lib/macro.assert_io_read_to_string_gt_as_result.html index 4d4e64444..c0ea70506 100644 --- a/doc/lib/macro.assert_io_read_to_string_gt_as_result.html +++ b/doc/lib/macro.assert_io_read_to_string_gt_as_result.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_gt_as_result in lib - Rust

                                                                                                                                                            Macro lib::assert_io_read_to_string_gt_as_result

                                                                                                                                                            source ·
                                                                                                                                                            macro_rules! assert_io_read_to_string_gt_as_result {
                                                                                                                                                            +assert_io_read_to_string_gt_as_result in lib - Rust

                                                                                                                                                            Macro lib::assert_io_read_to_string_gt_as_result

                                                                                                                                                            source ·
                                                                                                                                                            macro_rules! assert_io_read_to_string_gt_as_result {
                                                                                                                                                                 ($a_reader:expr, $b_reader:expr $(,)?) => { ... };
                                                                                                                                                             }
                                                                                                                                                            Expand description

                                                                                                                                                            Assert a std::io::Read read_to_string() value is greater than another.

                                                                                                                                                              diff --git a/doc/lib/macro.assert_io_read_to_string_gt_expr.html b/doc/lib/macro.assert_io_read_to_string_gt_expr.html index 7595b5d91..8c8e48156 100644 --- a/doc/lib/macro.assert_io_read_to_string_gt_expr.html +++ b/doc/lib/macro.assert_io_read_to_string_gt_expr.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_gt_expr in lib - Rust

                                                                                                                                                              Macro lib::assert_io_read_to_string_gt_expr

                                                                                                                                                              source ·
                                                                                                                                                              macro_rules! assert_io_read_to_string_gt_expr {
                                                                                                                                                              +assert_io_read_to_string_gt_expr in lib - Rust

                                                                                                                                                              Macro lib::assert_io_read_to_string_gt_expr

                                                                                                                                                              source ·
                                                                                                                                                              macro_rules! assert_io_read_to_string_gt_expr {
                                                                                                                                                                   ($a_reader:expr,  $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                   ($a_reader:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                                                               }
                                                                                                                                                              Expand description

                                                                                                                                                              Assert a std::io::Read read_to_string() value is greater than an expression.

                                                                                                                                                              diff --git a/doc/lib/macro.assert_io_read_to_string_gt_expr_as_result.html b/doc/lib/macro.assert_io_read_to_string_gt_expr_as_result.html index 71f3f99f6..f6c253ebe 100644 --- a/doc/lib/macro.assert_io_read_to_string_gt_expr_as_result.html +++ b/doc/lib/macro.assert_io_read_to_string_gt_expr_as_result.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_gt_expr_as_result in lib - Rust
                                                                                                                                                              macro_rules! assert_io_read_to_string_gt_expr_as_result {
                                                                                                                                                              +assert_io_read_to_string_gt_expr_as_result in lib - Rust
                                                                                                                                                              macro_rules! assert_io_read_to_string_gt_expr_as_result {
                                                                                                                                                                   ($a_reader:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                               }
                                                                                                                                                              Expand description

                                                                                                                                                              Assert a std::io::Read read_to_string() value is greater than an expression.

                                                                                                                                                                diff --git a/doc/lib/macro.assert_io_read_to_string_le.html b/doc/lib/macro.assert_io_read_to_string_le.html index d6a3e9de4..83782db86 100644 --- a/doc/lib/macro.assert_io_read_to_string_le.html +++ b/doc/lib/macro.assert_io_read_to_string_le.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_le in lib - Rust

                                                                                                                                                                Macro lib::assert_io_read_to_string_le

                                                                                                                                                                source ·
                                                                                                                                                                macro_rules! assert_io_read_to_string_le {
                                                                                                                                                                +assert_io_read_to_string_le in lib - Rust

                                                                                                                                                                Macro lib::assert_io_read_to_string_le

                                                                                                                                                                source ·
                                                                                                                                                                macro_rules! assert_io_read_to_string_le {
                                                                                                                                                                     ($a_reader:expr, $b_reader:expr $(,)?) => { ... };
                                                                                                                                                                     ($a_reader:expr, $b_reader:expr, $($message:tt)+) => { ... };
                                                                                                                                                                 }
                                                                                                                                                                Expand description

                                                                                                                                                                Assert a std::io::Read read_to_string() value is less than or equal to another.

                                                                                                                                                                diff --git a/doc/lib/macro.assert_io_read_to_string_le_as_result.html b/doc/lib/macro.assert_io_read_to_string_le_as_result.html index 9764051bc..4ba53ce2a 100644 --- a/doc/lib/macro.assert_io_read_to_string_le_as_result.html +++ b/doc/lib/macro.assert_io_read_to_string_le_as_result.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_le_as_result in lib - Rust

                                                                                                                                                                Macro lib::assert_io_read_to_string_le_as_result

                                                                                                                                                                source ·
                                                                                                                                                                macro_rules! assert_io_read_to_string_le_as_result {
                                                                                                                                                                +assert_io_read_to_string_le_as_result in lib - Rust

                                                                                                                                                                Macro lib::assert_io_read_to_string_le_as_result

                                                                                                                                                                source ·
                                                                                                                                                                macro_rules! assert_io_read_to_string_le_as_result {
                                                                                                                                                                     ($a_reader:expr, $b_reader:expr $(,)?) => { ... };
                                                                                                                                                                 }
                                                                                                                                                                Expand description

                                                                                                                                                                Assert a std::io::Read read_to_string() value is less than or equal to another.

                                                                                                                                                                  diff --git a/doc/lib/macro.assert_io_read_to_string_le_expr.html b/doc/lib/macro.assert_io_read_to_string_le_expr.html index 4d5b9d1f2..52ced40e9 100644 --- a/doc/lib/macro.assert_io_read_to_string_le_expr.html +++ b/doc/lib/macro.assert_io_read_to_string_le_expr.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_le_expr in lib - Rust

                                                                                                                                                                  Macro lib::assert_io_read_to_string_le_expr

                                                                                                                                                                  source ·
                                                                                                                                                                  macro_rules! assert_io_read_to_string_le_expr {
                                                                                                                                                                  +assert_io_read_to_string_le_expr in lib - Rust

                                                                                                                                                                  Macro lib::assert_io_read_to_string_le_expr

                                                                                                                                                                  source ·
                                                                                                                                                                  macro_rules! assert_io_read_to_string_le_expr {
                                                                                                                                                                       ($a_reader:expr,  $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                       ($a_reader:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                                                                   }
                                                                                                                                                                  Expand description

                                                                                                                                                                  Assert a std::io::Read read_to_string() value is less than or equal to an expression.

                                                                                                                                                                  diff --git a/doc/lib/macro.assert_io_read_to_string_le_expr_as_result.html b/doc/lib/macro.assert_io_read_to_string_le_expr_as_result.html index 45b559202..f7c3eadf1 100644 --- a/doc/lib/macro.assert_io_read_to_string_le_expr_as_result.html +++ b/doc/lib/macro.assert_io_read_to_string_le_expr_as_result.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_le_expr_as_result in lib - Rust
                                                                                                                                                                  macro_rules! assert_io_read_to_string_le_expr_as_result {
                                                                                                                                                                  +assert_io_read_to_string_le_expr_as_result in lib - Rust
                                                                                                                                                                  macro_rules! assert_io_read_to_string_le_expr_as_result {
                                                                                                                                                                       ($a_reader:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                   }
                                                                                                                                                                  Expand description

                                                                                                                                                                  Assert a std::io::Read read_to_string() value is less than or equal to an expression.

                                                                                                                                                                    diff --git a/doc/lib/macro.assert_io_read_to_string_lt.html b/doc/lib/macro.assert_io_read_to_string_lt.html index 91aefa2fc..d6b0cc645 100644 --- a/doc/lib/macro.assert_io_read_to_string_lt.html +++ b/doc/lib/macro.assert_io_read_to_string_lt.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_lt in lib - Rust

                                                                                                                                                                    Macro lib::assert_io_read_to_string_lt

                                                                                                                                                                    source ·
                                                                                                                                                                    macro_rules! assert_io_read_to_string_lt {
                                                                                                                                                                    +assert_io_read_to_string_lt in lib - Rust

                                                                                                                                                                    Macro lib::assert_io_read_to_string_lt

                                                                                                                                                                    source ·
                                                                                                                                                                    macro_rules! assert_io_read_to_string_lt {
                                                                                                                                                                         ($a_reader:expr, $b_reader:expr $(,)?) => { ... };
                                                                                                                                                                         ($a_reader:expr, $b_reader:expr, $($message:tt)+) => { ... };
                                                                                                                                                                     }
                                                                                                                                                                    Expand description

                                                                                                                                                                    Assert a std::io::Read read_to_string() value is less than another.

                                                                                                                                                                    diff --git a/doc/lib/macro.assert_io_read_to_string_lt_as_result.html b/doc/lib/macro.assert_io_read_to_string_lt_as_result.html index 59a9080f5..ecadfe89a 100644 --- a/doc/lib/macro.assert_io_read_to_string_lt_as_result.html +++ b/doc/lib/macro.assert_io_read_to_string_lt_as_result.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_lt_as_result in lib - Rust

                                                                                                                                                                    Macro lib::assert_io_read_to_string_lt_as_result

                                                                                                                                                                    source ·
                                                                                                                                                                    macro_rules! assert_io_read_to_string_lt_as_result {
                                                                                                                                                                    +assert_io_read_to_string_lt_as_result in lib - Rust

                                                                                                                                                                    Macro lib::assert_io_read_to_string_lt_as_result

                                                                                                                                                                    source ·
                                                                                                                                                                    macro_rules! assert_io_read_to_string_lt_as_result {
                                                                                                                                                                         ($a_reader:expr, $b_reader:expr $(,)?) => { ... };
                                                                                                                                                                     }
                                                                                                                                                                    Expand description

                                                                                                                                                                    Assert a std::io::Read read_to_string() value is less than another.

                                                                                                                                                                      diff --git a/doc/lib/macro.assert_io_read_to_string_lt_expr.html b/doc/lib/macro.assert_io_read_to_string_lt_expr.html index ed4f67f88..6f519aa11 100644 --- a/doc/lib/macro.assert_io_read_to_string_lt_expr.html +++ b/doc/lib/macro.assert_io_read_to_string_lt_expr.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_lt_expr in lib - Rust

                                                                                                                                                                      Macro lib::assert_io_read_to_string_lt_expr

                                                                                                                                                                      source ·
                                                                                                                                                                      macro_rules! assert_io_read_to_string_lt_expr {
                                                                                                                                                                      +assert_io_read_to_string_lt_expr in lib - Rust

                                                                                                                                                                      Macro lib::assert_io_read_to_string_lt_expr

                                                                                                                                                                      source ·
                                                                                                                                                                      macro_rules! assert_io_read_to_string_lt_expr {
                                                                                                                                                                           ($a_reader:expr,  $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                           ($a_reader:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                                                                       }
                                                                                                                                                                      Expand description

                                                                                                                                                                      Assert a std::io::Read read_to_string() value is less than an expression.

                                                                                                                                                                      diff --git a/doc/lib/macro.assert_io_read_to_string_lt_expr_as_result.html b/doc/lib/macro.assert_io_read_to_string_lt_expr_as_result.html index 92d595311..3d31f8179 100644 --- a/doc/lib/macro.assert_io_read_to_string_lt_expr_as_result.html +++ b/doc/lib/macro.assert_io_read_to_string_lt_expr_as_result.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_lt_expr_as_result in lib - Rust
                                                                                                                                                                      macro_rules! assert_io_read_to_string_lt_expr_as_result {
                                                                                                                                                                      +assert_io_read_to_string_lt_expr_as_result in lib - Rust
                                                                                                                                                                      macro_rules! assert_io_read_to_string_lt_expr_as_result {
                                                                                                                                                                           ($a_reader:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                       }
                                                                                                                                                                      Expand description

                                                                                                                                                                      Assert a std::io::Read read_to_string() value is less than an expression.

                                                                                                                                                                        diff --git a/doc/lib/macro.assert_io_read_to_string_matches.html b/doc/lib/macro.assert_io_read_to_string_matches.html index e79790fdf..fb9f635bd 100644 --- a/doc/lib/macro.assert_io_read_to_string_matches.html +++ b/doc/lib/macro.assert_io_read_to_string_matches.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_matches in lib - Rust

                                                                                                                                                                        Macro lib::assert_io_read_to_string_matches

                                                                                                                                                                        source ·
                                                                                                                                                                        macro_rules! assert_io_read_to_string_matches {
                                                                                                                                                                        +assert_io_read_to_string_matches in lib - Rust

                                                                                                                                                                        Macro lib::assert_io_read_to_string_matches

                                                                                                                                                                        source ·
                                                                                                                                                                        macro_rules! assert_io_read_to_string_matches {
                                                                                                                                                                             ($a_reader:expr, $b_matcher:expr $(,)?) => { ... };
                                                                                                                                                                             ($a_reader:expr, $b_matcher:expr, $($message:tt)+) => { ... };
                                                                                                                                                                         }
                                                                                                                                                                        Expand description

                                                                                                                                                                        Assert a std::io::Read read_to_string() is a match to a regex.

                                                                                                                                                                        diff --git a/doc/lib/macro.assert_io_read_to_string_matches_as_result.html b/doc/lib/macro.assert_io_read_to_string_matches_as_result.html index 70567eb9d..715ed5671 100644 --- a/doc/lib/macro.assert_io_read_to_string_matches_as_result.html +++ b/doc/lib/macro.assert_io_read_to_string_matches_as_result.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_matches_as_result in lib - Rust
                                                                                                                                                                        macro_rules! assert_io_read_to_string_matches_as_result {
                                                                                                                                                                        +assert_io_read_to_string_matches_as_result in lib - Rust
                                                                                                                                                                        macro_rules! assert_io_read_to_string_matches_as_result {
                                                                                                                                                                             ($a_reader:expr, $b_matcher:expr $(,)?) => { ... };
                                                                                                                                                                         }
                                                                                                                                                                        Expand description

                                                                                                                                                                        Assert a std::io::Read read_to_string() is a match to a regex.

                                                                                                                                                                          diff --git a/doc/lib/macro.assert_io_read_to_string_ne.html b/doc/lib/macro.assert_io_read_to_string_ne.html index 7dda5b7ec..8bc693620 100644 --- a/doc/lib/macro.assert_io_read_to_string_ne.html +++ b/doc/lib/macro.assert_io_read_to_string_ne.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_ne in lib - Rust

                                                                                                                                                                          Macro lib::assert_io_read_to_string_ne

                                                                                                                                                                          source ·
                                                                                                                                                                          macro_rules! assert_io_read_to_string_ne {
                                                                                                                                                                          +assert_io_read_to_string_ne in lib - Rust

                                                                                                                                                                          Macro lib::assert_io_read_to_string_ne

                                                                                                                                                                          source ·
                                                                                                                                                                          macro_rules! assert_io_read_to_string_ne {
                                                                                                                                                                               ($a_reader:expr, $b_reader:expr $(,)?) => { ... };
                                                                                                                                                                               ($a_reader:expr, $b_reader:expr, $($message:tt)+) => { ... };
                                                                                                                                                                           }
                                                                                                                                                                          Expand description

                                                                                                                                                                          Assert a std::io::Read read_to_string() is not equal to another.

                                                                                                                                                                          diff --git a/doc/lib/macro.assert_io_read_to_string_ne_as_result.html b/doc/lib/macro.assert_io_read_to_string_ne_as_result.html index a43e6fa90..bc847bdc1 100644 --- a/doc/lib/macro.assert_io_read_to_string_ne_as_result.html +++ b/doc/lib/macro.assert_io_read_to_string_ne_as_result.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_ne_as_result in lib - Rust

                                                                                                                                                                          Macro lib::assert_io_read_to_string_ne_as_result

                                                                                                                                                                          source ·
                                                                                                                                                                          macro_rules! assert_io_read_to_string_ne_as_result {
                                                                                                                                                                          +assert_io_read_to_string_ne_as_result in lib - Rust

                                                                                                                                                                          Macro lib::assert_io_read_to_string_ne_as_result

                                                                                                                                                                          source ·
                                                                                                                                                                          macro_rules! assert_io_read_to_string_ne_as_result {
                                                                                                                                                                               ($a_reader:expr, $b_reader:expr $(,)?) => { ... };
                                                                                                                                                                           }
                                                                                                                                                                          Expand description

                                                                                                                                                                          Assert a std::io::Read read_to_string() is not equal to another.

                                                                                                                                                                            diff --git a/doc/lib/macro.assert_io_read_to_string_ne_expr.html b/doc/lib/macro.assert_io_read_to_string_ne_expr.html index 0ebcf5b70..7f9cf5ef3 100644 --- a/doc/lib/macro.assert_io_read_to_string_ne_expr.html +++ b/doc/lib/macro.assert_io_read_to_string_ne_expr.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_ne_expr in lib - Rust

                                                                                                                                                                            Macro lib::assert_io_read_to_string_ne_expr

                                                                                                                                                                            source ·
                                                                                                                                                                            macro_rules! assert_io_read_to_string_ne_expr {
                                                                                                                                                                            +assert_io_read_to_string_ne_expr in lib - Rust

                                                                                                                                                                            Macro lib::assert_io_read_to_string_ne_expr

                                                                                                                                                                            source ·
                                                                                                                                                                            macro_rules! assert_io_read_to_string_ne_expr {
                                                                                                                                                                                 ($a_reader:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                 ($a_reader:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                                                                             }
                                                                                                                                                                            Expand description

                                                                                                                                                                            Assert a std::io::Read read_to_string() is not equal to an expression.

                                                                                                                                                                            diff --git a/doc/lib/macro.assert_io_read_to_string_ne_expr_as_result.html b/doc/lib/macro.assert_io_read_to_string_ne_expr_as_result.html index c7365a424..aab8ba46f 100644 --- a/doc/lib/macro.assert_io_read_to_string_ne_expr_as_result.html +++ b/doc/lib/macro.assert_io_read_to_string_ne_expr_as_result.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_ne_expr_as_result in lib - Rust
                                                                                                                                                                            macro_rules! assert_io_read_to_string_ne_expr_as_result {
                                                                                                                                                                            +assert_io_read_to_string_ne_expr_as_result in lib - Rust
                                                                                                                                                                            macro_rules! assert_io_read_to_string_ne_expr_as_result {
                                                                                                                                                                                 ($a_reader:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                             }
                                                                                                                                                                            Expand description

                                                                                                                                                                            Assert a std::io::Read read_to_string() is not equal to an expression.

                                                                                                                                                                              diff --git a/doc/lib/macro.assert_option_none!.html b/doc/lib/macro.assert_option_none!.html new file mode 100644 index 000000000..3f52863fc --- /dev/null +++ b/doc/lib/macro.assert_option_none!.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

                                                                                                                                                                              Redirecting to macro.assert_option_none.html...

                                                                                                                                                                              + + + \ No newline at end of file diff --git a/doc/lib/macro.assert_option_none.html b/doc/lib/macro.assert_option_none.html new file mode 100644 index 000000000..c043e9ea6 --- /dev/null +++ b/doc/lib/macro.assert_option_none.html @@ -0,0 +1,50 @@ +assert_option_none in lib - Rust

                                                                                                                                                                              Macro lib::assert_option_none

                                                                                                                                                                              source ·
                                                                                                                                                                              macro_rules! assert_option_none {
                                                                                                                                                                              +    ($a:expr $(,)?) => { ... };
                                                                                                                                                                              +    ($a:expr, $($message:tt)+) => { ... };
                                                                                                                                                                              +}
                                                                                                                                                                              Expand description

                                                                                                                                                                              Assert expression.is_none() is true.

                                                                                                                                                                              +
                                                                                                                                                                                +
                                                                                                                                                                              • +

                                                                                                                                                                                If true, return ().

                                                                                                                                                                                +
                                                                                                                                                                              • +
                                                                                                                                                                              • +

                                                                                                                                                                                Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

                                                                                                                                                                                +
                                                                                                                                                                              • +
                                                                                                                                                                              +

                                                                                                                                                                              §Examples

                                                                                                                                                                              +
                                                                                                                                                                              let a: Option<i8> = Option::None;
                                                                                                                                                                              +assert_option_none!(a);
                                                                                                                                                                              +//-> ()
                                                                                                                                                                              +
                                                                                                                                                                              +let a: Option<i8> = Option::Some(1);
                                                                                                                                                                              +// Panic with error message
                                                                                                                                                                              +let result = panic::catch_unwind(|| {
                                                                                                                                                                              +assert_option_none!(a);
                                                                                                                                                                              +//-> panic!
                                                                                                                                                                              +});
                                                                                                                                                                              +assert!(result.is_err());
                                                                                                                                                                              +let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                              +let expect = concat!(
                                                                                                                                                                              +    "assertion failed: `assert_option_none!(expr)`\n",
                                                                                                                                                                              +    "     expr label: `a`,\n",
                                                                                                                                                                              +    "     expr debug: `Some(1)`,\n",
                                                                                                                                                                              +    " expr.is_none(): `false`",
                                                                                                                                                                              +);
                                                                                                                                                                              +assert_eq!(actual, expect);
                                                                                                                                                                              +
                                                                                                                                                                              +// Panic with error message
                                                                                                                                                                              +let result = panic::catch_unwind(|| {
                                                                                                                                                                              +assert_option_none!(a, "message");
                                                                                                                                                                              +//-> panic!
                                                                                                                                                                              +});
                                                                                                                                                                              +assert!(result.is_err());
                                                                                                                                                                              +let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                              +let expect = "message";
                                                                                                                                                                              +assert_eq!(actual, expect);
                                                                                                                                                                              +

                                                                                                                                                                              §Module macros

                                                                                                                                                                              + +
                                                                                                                                                                              \ No newline at end of file diff --git a/doc/lib/macro.assert_option_none_as_result!.html b/doc/lib/macro.assert_option_none_as_result!.html new file mode 100644 index 000000000..bd7b131a2 --- /dev/null +++ b/doc/lib/macro.assert_option_none_as_result!.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

                                                                                                                                                                              Redirecting to macro.assert_option_none_as_result.html...

                                                                                                                                                                              + + + \ No newline at end of file diff --git a/doc/lib/macro.assert_option_none_as_result.html b/doc/lib/macro.assert_option_none_as_result.html new file mode 100644 index 000000000..381c5393c --- /dev/null +++ b/doc/lib/macro.assert_option_none_as_result.html @@ -0,0 +1,22 @@ +assert_option_none_as_result in lib - Rust

                                                                                                                                                                              Macro lib::assert_option_none_as_result

                                                                                                                                                                              source ·
                                                                                                                                                                              macro_rules! assert_option_none_as_result {
                                                                                                                                                                              +    ($a:expr $(,)?) => { ... };
                                                                                                                                                                              +}
                                                                                                                                                                              Expand description

                                                                                                                                                                              Assert an expression.is_none() is true.

                                                                                                                                                                              +
                                                                                                                                                                                +
                                                                                                                                                                              • +

                                                                                                                                                                                If true, return Result Ok(()).

                                                                                                                                                                                +
                                                                                                                                                                              • +
                                                                                                                                                                              • +

                                                                                                                                                                                Otherwise, return Result Err with a diagnostic message.

                                                                                                                                                                                +
                                                                                                                                                                              • +
                                                                                                                                                                              +

                                                                                                                                                                              This macro provides the same statements as assert_option_none, +except this macro returns a Result, rather than doing a panic.

                                                                                                                                                                              +

                                                                                                                                                                              This macro is useful for runtime checks, such as checking parameters, +or sanitizing inputs, or handling different results in different ways.

                                                                                                                                                                              +

                                                                                                                                                                              §Module macros

                                                                                                                                                                              + +
                                                                                                                                                                              \ No newline at end of file diff --git a/doc/lib/macro.assert_option_some!.html b/doc/lib/macro.assert_option_some!.html new file mode 100644 index 000000000..51958a568 --- /dev/null +++ b/doc/lib/macro.assert_option_some!.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

                                                                                                                                                                              Redirecting to macro.assert_option_some.html...

                                                                                                                                                                              + + + \ No newline at end of file diff --git a/doc/lib/macro.assert_option_some.html b/doc/lib/macro.assert_option_some.html new file mode 100644 index 000000000..27f6d6190 --- /dev/null +++ b/doc/lib/macro.assert_option_some.html @@ -0,0 +1,50 @@ +assert_option_some in lib - Rust

                                                                                                                                                                              Macro lib::assert_option_some

                                                                                                                                                                              source ·
                                                                                                                                                                              macro_rules! assert_option_some {
                                                                                                                                                                              +    ($a:expr $(,)?) => { ... };
                                                                                                                                                                              +    ($a:expr, $($message:tt)+) => { ... };
                                                                                                                                                                              +}
                                                                                                                                                                              Expand description

                                                                                                                                                                              Assert expression.is_some() is true.

                                                                                                                                                                              +
                                                                                                                                                                                +
                                                                                                                                                                              • +

                                                                                                                                                                                If true, return ().

                                                                                                                                                                                +
                                                                                                                                                                              • +
                                                                                                                                                                              • +

                                                                                                                                                                                Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

                                                                                                                                                                                +
                                                                                                                                                                              • +
                                                                                                                                                                              +

                                                                                                                                                                              §Examples

                                                                                                                                                                              +
                                                                                                                                                                              let a: Option<i8> = Option::Some(1);
                                                                                                                                                                              +assert_option_some!(a);
                                                                                                                                                                              +//-> ()
                                                                                                                                                                              +
                                                                                                                                                                              +let a: Option<i8> = Option::None;
                                                                                                                                                                              +// Panic with error message
                                                                                                                                                                              +let result = panic::catch_unwind(|| {
                                                                                                                                                                              +assert_option_some!(a);
                                                                                                                                                                              +//-> panic!
                                                                                                                                                                              +});
                                                                                                                                                                              +assert!(result.is_err());
                                                                                                                                                                              +let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                              +let expect = concat!(
                                                                                                                                                                              +    "assertion failed: `assert_option_some!(expr)`\n",
                                                                                                                                                                              +    "     expr label: `a`,\n",
                                                                                                                                                                              +    "     expr debug: `None`,\n",
                                                                                                                                                                              +    " expr.is_some(): `false`",
                                                                                                                                                                              +);
                                                                                                                                                                              +assert_eq!(actual, expect);
                                                                                                                                                                              +
                                                                                                                                                                              +// Panic with error message
                                                                                                                                                                              +let result = panic::catch_unwind(|| {
                                                                                                                                                                              +assert_option_some!(a, "message");
                                                                                                                                                                              +//-> panic!
                                                                                                                                                                              +});
                                                                                                                                                                              +assert!(result.is_err());
                                                                                                                                                                              +let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                              +let expect = "message";
                                                                                                                                                                              +assert_eq!(actual, expect);
                                                                                                                                                                              +

                                                                                                                                                                              §Module macros

                                                                                                                                                                              + +
                                                                                                                                                                              \ No newline at end of file diff --git a/doc/lib/macro.assert_option_some_as_result!.html b/doc/lib/macro.assert_option_some_as_result!.html new file mode 100644 index 000000000..326d53ecc --- /dev/null +++ b/doc/lib/macro.assert_option_some_as_result!.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

                                                                                                                                                                              Redirecting to macro.assert_option_some_as_result.html...

                                                                                                                                                                              + + + \ No newline at end of file diff --git a/doc/lib/macro.assert_option_some_as_result.html b/doc/lib/macro.assert_option_some_as_result.html new file mode 100644 index 000000000..1693e742b --- /dev/null +++ b/doc/lib/macro.assert_option_some_as_result.html @@ -0,0 +1,22 @@ +assert_option_some_as_result in lib - Rust

                                                                                                                                                                              Macro lib::assert_option_some_as_result

                                                                                                                                                                              source ·
                                                                                                                                                                              macro_rules! assert_option_some_as_result {
                                                                                                                                                                              +    ($a:expr $(,)?) => { ... };
                                                                                                                                                                              +}
                                                                                                                                                                              Expand description

                                                                                                                                                                              Assert an expression.is_some() is true.

                                                                                                                                                                              +
                                                                                                                                                                                +
                                                                                                                                                                              • +

                                                                                                                                                                                If true, return Result Ok(()).

                                                                                                                                                                                +
                                                                                                                                                                              • +
                                                                                                                                                                              • +

                                                                                                                                                                                Otherwise, return Result Err with a diagnostic message.

                                                                                                                                                                                +
                                                                                                                                                                              • +
                                                                                                                                                                              +

                                                                                                                                                                              This macro provides the same statements as assert_option_some, +except this macro returns a Result, rather than doing a panic.

                                                                                                                                                                              +

                                                                                                                                                                              This macro is useful for runtime checks, such as checking parameters, +or sanitizing inputs, or handling different results in different ways.

                                                                                                                                                                              +

                                                                                                                                                                              §Module macros

                                                                                                                                                                              + +
                                                                                                                                                                              \ No newline at end of file diff --git a/doc/lib/macro.assert_program_args_stderr_contains.html b/doc/lib/macro.assert_program_args_stderr_contains.html index 8d9fa8592..fc8add7e5 100644 --- a/doc/lib/macro.assert_program_args_stderr_contains.html +++ b/doc/lib/macro.assert_program_args_stderr_contains.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_contains in lib - Rust

                                                                                                                                                                              Macro lib::assert_program_args_stderr_contains

                                                                                                                                                                              source ·
                                                                                                                                                                              macro_rules! assert_program_args_stderr_contains {
                                                                                                                                                                              +assert_program_args_stderr_contains in lib - Rust

                                                                                                                                                                              Macro lib::assert_program_args_stderr_contains

                                                                                                                                                                              source ·
                                                                                                                                                                              macro_rules! assert_program_args_stderr_contains {
                                                                                                                                                                                   ($a_program:expr, $a_args:expr, $b_containee:expr $(,)?) => { ... };
                                                                                                                                                                                   ($a_program:expr, $a_args:expr, $b_containee:expr, $($message:tt)+) => { ... };
                                                                                                                                                                               }
                                                                                                                                                                              Expand description

                                                                                                                                                                              Assert a command (built with program and args) stderr string contains a given containee.

                                                                                                                                                                              diff --git a/doc/lib/macro.assert_program_args_stderr_contains_as_result.html b/doc/lib/macro.assert_program_args_stderr_contains_as_result.html index 9ba0efbcb..ee7e263bb 100644 --- a/doc/lib/macro.assert_program_args_stderr_contains_as_result.html +++ b/doc/lib/macro.assert_program_args_stderr_contains_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_contains_as_result in lib - Rust
                                                                                                                                                                              macro_rules! assert_program_args_stderr_contains_as_result {
                                                                                                                                                                              +assert_program_args_stderr_contains_as_result in lib - Rust
                                                                                                                                                                              macro_rules! assert_program_args_stderr_contains_as_result {
                                                                                                                                                                                   ($a_program:expr, $a_args:expr, $b_containee:expr $(,)?) => { ... };
                                                                                                                                                                               }
                                                                                                                                                                              Expand description

                                                                                                                                                                              Assert a command (built with program and args) stderr string contains a given containee.

                                                                                                                                                                                diff --git a/doc/lib/macro.assert_program_args_stderr_eq.html b/doc/lib/macro.assert_program_args_stderr_eq.html index 4c94f9ba4..4c486d3c2 100644 --- a/doc/lib/macro.assert_program_args_stderr_eq.html +++ b/doc/lib/macro.assert_program_args_stderr_eq.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_eq in lib - Rust

                                                                                                                                                                                Macro lib::assert_program_args_stderr_eq

                                                                                                                                                                                source ·
                                                                                                                                                                                macro_rules! assert_program_args_stderr_eq {
                                                                                                                                                                                +assert_program_args_stderr_eq in lib - Rust

                                                                                                                                                                                Macro lib::assert_program_args_stderr_eq

                                                                                                                                                                                source ·
                                                                                                                                                                                macro_rules! assert_program_args_stderr_eq {
                                                                                                                                                                                     ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... };
                                                                                                                                                                                     ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                 }
                                                                                                                                                                                Expand description

                                                                                                                                                                                Assert a command (built with program and args) stderr string is equal to another.

                                                                                                                                                                                diff --git a/doc/lib/macro.assert_program_args_stderr_eq_as_result.html b/doc/lib/macro.assert_program_args_stderr_eq_as_result.html index 8f9e30e41..2e0368557 100644 --- a/doc/lib/macro.assert_program_args_stderr_eq_as_result.html +++ b/doc/lib/macro.assert_program_args_stderr_eq_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_eq_as_result in lib - Rust
                                                                                                                                                                                macro_rules! assert_program_args_stderr_eq_as_result {
                                                                                                                                                                                +assert_program_args_stderr_eq_as_result in lib - Rust
                                                                                                                                                                                macro_rules! assert_program_args_stderr_eq_as_result {
                                                                                                                                                                                     ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... };
                                                                                                                                                                                 }
                                                                                                                                                                                Expand description

                                                                                                                                                                                Assert a command (built with program and args) stderr string is equal to another.

                                                                                                                                                                                  diff --git a/doc/lib/macro.assert_program_args_stderr_eq_expr.html b/doc/lib/macro.assert_program_args_stderr_eq_expr.html index 7dc0fc3ff..f7c29b3d4 100644 --- a/doc/lib/macro.assert_program_args_stderr_eq_expr.html +++ b/doc/lib/macro.assert_program_args_stderr_eq_expr.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_eq_expr in lib - Rust

                                                                                                                                                                                  Macro lib::assert_program_args_stderr_eq_expr

                                                                                                                                                                                  source ·
                                                                                                                                                                                  macro_rules! assert_program_args_stderr_eq_expr {
                                                                                                                                                                                  +assert_program_args_stderr_eq_expr in lib - Rust

                                                                                                                                                                                  Macro lib::assert_program_args_stderr_eq_expr

                                                                                                                                                                                  source ·
                                                                                                                                                                                  macro_rules! assert_program_args_stderr_eq_expr {
                                                                                                                                                                                       ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                       ($a_program:expr, $a_args:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                   }
                                                                                                                                                                                  Expand description

                                                                                                                                                                                  Assert a command (built with program and args) stderr string is equal to an expression.

                                                                                                                                                                                  diff --git a/doc/lib/macro.assert_program_args_stderr_eq_expr_as_result.html b/doc/lib/macro.assert_program_args_stderr_eq_expr_as_result.html index d8abd32fe..a648247f1 100644 --- a/doc/lib/macro.assert_program_args_stderr_eq_expr_as_result.html +++ b/doc/lib/macro.assert_program_args_stderr_eq_expr_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_eq_expr_as_result in lib - Rust
                                                                                                                                                                                  macro_rules! assert_program_args_stderr_eq_expr_as_result {
                                                                                                                                                                                  +assert_program_args_stderr_eq_expr_as_result in lib - Rust
                                                                                                                                                                                  macro_rules! assert_program_args_stderr_eq_expr_as_result {
                                                                                                                                                                                       ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                   }
                                                                                                                                                                                  Expand description

                                                                                                                                                                                  Assert a command (built with program and args) stderr string is equal to an expression.

                                                                                                                                                                                    diff --git a/doc/lib/macro.assert_program_args_stderr_ge.html b/doc/lib/macro.assert_program_args_stderr_ge.html index 6bd7c3861..fa818bda5 100644 --- a/doc/lib/macro.assert_program_args_stderr_ge.html +++ b/doc/lib/macro.assert_program_args_stderr_ge.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_ge in lib - Rust

                                                                                                                                                                                    Macro lib::assert_program_args_stderr_ge

                                                                                                                                                                                    source ·
                                                                                                                                                                                    macro_rules! assert_program_args_stderr_ge {
                                                                                                                                                                                    +assert_program_args_stderr_ge in lib - Rust

                                                                                                                                                                                    Macro lib::assert_program_args_stderr_ge

                                                                                                                                                                                    source ·
                                                                                                                                                                                    macro_rules! assert_program_args_stderr_ge {
                                                                                                                                                                                         ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... };
                                                                                                                                                                                         ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                     }
                                                                                                                                                                                    Expand description

                                                                                                                                                                                    Assert a command (built with program and args) stderr string is greater than or equal to another.

                                                                                                                                                                                    diff --git a/doc/lib/macro.assert_program_args_stderr_ge_as_result.html b/doc/lib/macro.assert_program_args_stderr_ge_as_result.html index 027193987..3af1e883b 100644 --- a/doc/lib/macro.assert_program_args_stderr_ge_as_result.html +++ b/doc/lib/macro.assert_program_args_stderr_ge_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_ge_as_result in lib - Rust
                                                                                                                                                                                    macro_rules! assert_program_args_stderr_ge_as_result {
                                                                                                                                                                                    +assert_program_args_stderr_ge_as_result in lib - Rust
                                                                                                                                                                                    macro_rules! assert_program_args_stderr_ge_as_result {
                                                                                                                                                                                         ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... };
                                                                                                                                                                                     }
                                                                                                                                                                                    Expand description

                                                                                                                                                                                    Assert a command (built with program and args) stderr string is greater than or equal to another.

                                                                                                                                                                                      diff --git a/doc/lib/macro.assert_program_args_stderr_ge_expr.html b/doc/lib/macro.assert_program_args_stderr_ge_expr.html index 274d60cb0..9931c6176 100644 --- a/doc/lib/macro.assert_program_args_stderr_ge_expr.html +++ b/doc/lib/macro.assert_program_args_stderr_ge_expr.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_ge_expr in lib - Rust

                                                                                                                                                                                      Macro lib::assert_program_args_stderr_ge_expr

                                                                                                                                                                                      source ·
                                                                                                                                                                                      macro_rules! assert_program_args_stderr_ge_expr {
                                                                                                                                                                                      +assert_program_args_stderr_ge_expr in lib - Rust

                                                                                                                                                                                      Macro lib::assert_program_args_stderr_ge_expr

                                                                                                                                                                                      source ·
                                                                                                                                                                                      macro_rules! assert_program_args_stderr_ge_expr {
                                                                                                                                                                                           ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                           ($a_program:expr, $a_args:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                       }
                                                                                                                                                                                      Expand description

                                                                                                                                                                                      Assert a command (built with program and args) stderr string is greater than or equal to an expression.

                                                                                                                                                                                      diff --git a/doc/lib/macro.assert_program_args_stderr_ge_expr_as_result.html b/doc/lib/macro.assert_program_args_stderr_ge_expr_as_result.html index 8f0a2c458..436fce4b8 100644 --- a/doc/lib/macro.assert_program_args_stderr_ge_expr_as_result.html +++ b/doc/lib/macro.assert_program_args_stderr_ge_expr_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_ge_expr_as_result in lib - Rust
                                                                                                                                                                                      macro_rules! assert_program_args_stderr_ge_expr_as_result {
                                                                                                                                                                                      +assert_program_args_stderr_ge_expr_as_result in lib - Rust
                                                                                                                                                                                      macro_rules! assert_program_args_stderr_ge_expr_as_result {
                                                                                                                                                                                           ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                       }
                                                                                                                                                                                      Expand description

                                                                                                                                                                                      Assert a command (built with program and args) stderr string is greater than or equal to an expression.

                                                                                                                                                                                        diff --git a/doc/lib/macro.assert_program_args_stderr_gt.html b/doc/lib/macro.assert_program_args_stderr_gt.html index e2c5acdd9..f3c4e7c1b 100644 --- a/doc/lib/macro.assert_program_args_stderr_gt.html +++ b/doc/lib/macro.assert_program_args_stderr_gt.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_gt in lib - Rust

                                                                                                                                                                                        Macro lib::assert_program_args_stderr_gt

                                                                                                                                                                                        source ·
                                                                                                                                                                                        macro_rules! assert_program_args_stderr_gt {
                                                                                                                                                                                        +assert_program_args_stderr_gt in lib - Rust

                                                                                                                                                                                        Macro lib::assert_program_args_stderr_gt

                                                                                                                                                                                        source ·
                                                                                                                                                                                        macro_rules! assert_program_args_stderr_gt {
                                                                                                                                                                                             ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... };
                                                                                                                                                                                             ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                         }
                                                                                                                                                                                        Expand description

                                                                                                                                                                                        Assert a command (built with program and args) stderr string is greater than to another.

                                                                                                                                                                                        diff --git a/doc/lib/macro.assert_program_args_stderr_gt_as_result.html b/doc/lib/macro.assert_program_args_stderr_gt_as_result.html index 4a6793deb..42906c63f 100644 --- a/doc/lib/macro.assert_program_args_stderr_gt_as_result.html +++ b/doc/lib/macro.assert_program_args_stderr_gt_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_gt_as_result in lib - Rust
                                                                                                                                                                                        macro_rules! assert_program_args_stderr_gt_as_result {
                                                                                                                                                                                        +assert_program_args_stderr_gt_as_result in lib - Rust
                                                                                                                                                                                        macro_rules! assert_program_args_stderr_gt_as_result {
                                                                                                                                                                                             ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... };
                                                                                                                                                                                         }
                                                                                                                                                                                        Expand description

                                                                                                                                                                                        Assert a command (built with program and args) stderr string is greater than another.

                                                                                                                                                                                          diff --git a/doc/lib/macro.assert_program_args_stderr_gt_expr.html b/doc/lib/macro.assert_program_args_stderr_gt_expr.html index 826a942f9..823634a16 100644 --- a/doc/lib/macro.assert_program_args_stderr_gt_expr.html +++ b/doc/lib/macro.assert_program_args_stderr_gt_expr.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_gt_expr in lib - Rust

                                                                                                                                                                                          Macro lib::assert_program_args_stderr_gt_expr

                                                                                                                                                                                          source ·
                                                                                                                                                                                          macro_rules! assert_program_args_stderr_gt_expr {
                                                                                                                                                                                          +assert_program_args_stderr_gt_expr in lib - Rust

                                                                                                                                                                                          Macro lib::assert_program_args_stderr_gt_expr

                                                                                                                                                                                          source ·
                                                                                                                                                                                          macro_rules! assert_program_args_stderr_gt_expr {
                                                                                                                                                                                               ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                               ($a_program:expr, $a_args:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                           }
                                                                                                                                                                                          Expand description

                                                                                                                                                                                          Assert a command (built with program and args) stderr string is greater than an expression.

                                                                                                                                                                                          diff --git a/doc/lib/macro.assert_program_args_stderr_gt_expr_as_result.html b/doc/lib/macro.assert_program_args_stderr_gt_expr_as_result.html index 9d8c87786..636628657 100644 --- a/doc/lib/macro.assert_program_args_stderr_gt_expr_as_result.html +++ b/doc/lib/macro.assert_program_args_stderr_gt_expr_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_gt_expr_as_result in lib - Rust
                                                                                                                                                                                          macro_rules! assert_program_args_stderr_gt_expr_as_result {
                                                                                                                                                                                          +assert_program_args_stderr_gt_expr_as_result in lib - Rust
                                                                                                                                                                                          macro_rules! assert_program_args_stderr_gt_expr_as_result {
                                                                                                                                                                                               ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                           }
                                                                                                                                                                                          Expand description

                                                                                                                                                                                          Assert a command (built with program and args) stderr string is greater than an expression.

                                                                                                                                                                                            diff --git a/doc/lib/macro.assert_program_args_stderr_is_match.html b/doc/lib/macro.assert_program_args_stderr_is_match.html index b84913da5..d6a51491b 100644 --- a/doc/lib/macro.assert_program_args_stderr_is_match.html +++ b/doc/lib/macro.assert_program_args_stderr_is_match.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_is_match in lib - Rust

                                                                                                                                                                                            Macro lib::assert_program_args_stderr_is_match

                                                                                                                                                                                            source ·
                                                                                                                                                                                            macro_rules! assert_program_args_stderr_is_match {
                                                                                                                                                                                            +assert_program_args_stderr_is_match in lib - Rust

                                                                                                                                                                                            Macro lib::assert_program_args_stderr_is_match

                                                                                                                                                                                            source ·
                                                                                                                                                                                            macro_rules! assert_program_args_stderr_is_match {
                                                                                                                                                                                                 ($a_program:expr, $a_args:expr, $b_matcher:expr $(,)?) => { ... };
                                                                                                                                                                                                 ($a_program:expr, $a_args:expr, $b_matcher:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                             }
                                                                                                                                                                                            Expand description

                                                                                                                                                                                            Assert a command (built with program and args) stderr string is a match to a regex.

                                                                                                                                                                                            diff --git a/doc/lib/macro.assert_program_args_stderr_is_match_as_result.html b/doc/lib/macro.assert_program_args_stderr_is_match_as_result.html index 1fba0df2f..7d762b6eb 100644 --- a/doc/lib/macro.assert_program_args_stderr_is_match_as_result.html +++ b/doc/lib/macro.assert_program_args_stderr_is_match_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_is_match_as_result in lib - Rust
                                                                                                                                                                                            macro_rules! assert_program_args_stderr_is_match_as_result {
                                                                                                                                                                                            +assert_program_args_stderr_is_match_as_result in lib - Rust
                                                                                                                                                                                            macro_rules! assert_program_args_stderr_is_match_as_result {
                                                                                                                                                                                                 ($a_program:expr, $a_args:expr, $b_matcher:expr $(,)?) => { ... };
                                                                                                                                                                                             }
                                                                                                                                                                                            Expand description

                                                                                                                                                                                            Assert a command (built with program and args) stderr string is a match to a regex.

                                                                                                                                                                                              diff --git a/doc/lib/macro.assert_program_args_stderr_le.html b/doc/lib/macro.assert_program_args_stderr_le.html index a4a02b3b1..17b1da704 100644 --- a/doc/lib/macro.assert_program_args_stderr_le.html +++ b/doc/lib/macro.assert_program_args_stderr_le.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_le in lib - Rust

                                                                                                                                                                                              Macro lib::assert_program_args_stderr_le

                                                                                                                                                                                              source ·
                                                                                                                                                                                              macro_rules! assert_program_args_stderr_le {
                                                                                                                                                                                              +assert_program_args_stderr_le in lib - Rust

                                                                                                                                                                                              Macro lib::assert_program_args_stderr_le

                                                                                                                                                                                              source ·
                                                                                                                                                                                              macro_rules! assert_program_args_stderr_le {
                                                                                                                                                                                                   ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... };
                                                                                                                                                                                                   ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                               }
                                                                                                                                                                                              Expand description

                                                                                                                                                                                              Assert a command (built with program and args) stderr string is less than or equal to another.

                                                                                                                                                                                              diff --git a/doc/lib/macro.assert_program_args_stderr_le_as_result.html b/doc/lib/macro.assert_program_args_stderr_le_as_result.html index 68d37fc7a..bc7bf1133 100644 --- a/doc/lib/macro.assert_program_args_stderr_le_as_result.html +++ b/doc/lib/macro.assert_program_args_stderr_le_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_le_as_result in lib - Rust
                                                                                                                                                                                              macro_rules! assert_program_args_stderr_le_as_result {
                                                                                                                                                                                              +assert_program_args_stderr_le_as_result in lib - Rust
                                                                                                                                                                                              macro_rules! assert_program_args_stderr_le_as_result {
                                                                                                                                                                                                   ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... };
                                                                                                                                                                                               }
                                                                                                                                                                                              Expand description

                                                                                                                                                                                              Assert a command (built with program and args) stderr string is less than or equal to another.

                                                                                                                                                                                                diff --git a/doc/lib/macro.assert_program_args_stderr_le_expr.html b/doc/lib/macro.assert_program_args_stderr_le_expr.html index 365dc671e..415b2ddc7 100644 --- a/doc/lib/macro.assert_program_args_stderr_le_expr.html +++ b/doc/lib/macro.assert_program_args_stderr_le_expr.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_le_expr in lib - Rust

                                                                                                                                                                                                Macro lib::assert_program_args_stderr_le_expr

                                                                                                                                                                                                source ·
                                                                                                                                                                                                macro_rules! assert_program_args_stderr_le_expr {
                                                                                                                                                                                                +assert_program_args_stderr_le_expr in lib - Rust

                                                                                                                                                                                                Macro lib::assert_program_args_stderr_le_expr

                                                                                                                                                                                                source ·
                                                                                                                                                                                                macro_rules! assert_program_args_stderr_le_expr {
                                                                                                                                                                                                     ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                                     ($a_program:expr, $a_args:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                 }
                                                                                                                                                                                                Expand description

                                                                                                                                                                                                Assert a command (built with program and args) stderr string is less than or equal to an expression.

                                                                                                                                                                                                diff --git a/doc/lib/macro.assert_program_args_stderr_le_expr_as_result.html b/doc/lib/macro.assert_program_args_stderr_le_expr_as_result.html index 94489e180..b010b63cd 100644 --- a/doc/lib/macro.assert_program_args_stderr_le_expr_as_result.html +++ b/doc/lib/macro.assert_program_args_stderr_le_expr_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_le_expr_as_result in lib - Rust
                                                                                                                                                                                                macro_rules! assert_program_args_stderr_le_expr_as_result {
                                                                                                                                                                                                +assert_program_args_stderr_le_expr_as_result in lib - Rust
                                                                                                                                                                                                macro_rules! assert_program_args_stderr_le_expr_as_result {
                                                                                                                                                                                                     ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                                 }
                                                                                                                                                                                                Expand description

                                                                                                                                                                                                Assert a command (built with program and args) stderr string is less than or equal to an expression.

                                                                                                                                                                                                  diff --git a/doc/lib/macro.assert_program_args_stderr_lt.html b/doc/lib/macro.assert_program_args_stderr_lt.html index 9da3f32e8..bf693c002 100644 --- a/doc/lib/macro.assert_program_args_stderr_lt.html +++ b/doc/lib/macro.assert_program_args_stderr_lt.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_lt in lib - Rust

                                                                                                                                                                                                  Macro lib::assert_program_args_stderr_lt

                                                                                                                                                                                                  source ·
                                                                                                                                                                                                  macro_rules! assert_program_args_stderr_lt {
                                                                                                                                                                                                  +assert_program_args_stderr_lt in lib - Rust

                                                                                                                                                                                                  Macro lib::assert_program_args_stderr_lt

                                                                                                                                                                                                  source ·
                                                                                                                                                                                                  macro_rules! assert_program_args_stderr_lt {
                                                                                                                                                                                                       ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... };
                                                                                                                                                                                                       ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                   }
                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                  Assert a command (built with program and args) stderr string is less than another.

                                                                                                                                                                                                  diff --git a/doc/lib/macro.assert_program_args_stderr_lt_as_result.html b/doc/lib/macro.assert_program_args_stderr_lt_as_result.html index fc61402d7..8d35146ad 100644 --- a/doc/lib/macro.assert_program_args_stderr_lt_as_result.html +++ b/doc/lib/macro.assert_program_args_stderr_lt_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_lt_as_result in lib - Rust
                                                                                                                                                                                                  macro_rules! assert_program_args_stderr_lt_as_result {
                                                                                                                                                                                                  +assert_program_args_stderr_lt_as_result in lib - Rust
                                                                                                                                                                                                  macro_rules! assert_program_args_stderr_lt_as_result {
                                                                                                                                                                                                       ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... };
                                                                                                                                                                                                   }
                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                  Assert a command (built with program and args) stderr string is less than another.

                                                                                                                                                                                                    diff --git a/doc/lib/macro.assert_program_args_stderr_lt_expr.html b/doc/lib/macro.assert_program_args_stderr_lt_expr.html index fb0dba74d..6d88f7cde 100644 --- a/doc/lib/macro.assert_program_args_stderr_lt_expr.html +++ b/doc/lib/macro.assert_program_args_stderr_lt_expr.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_lt_expr in lib - Rust

                                                                                                                                                                                                    Macro lib::assert_program_args_stderr_lt_expr

                                                                                                                                                                                                    source ·
                                                                                                                                                                                                    macro_rules! assert_program_args_stderr_lt_expr {
                                                                                                                                                                                                    +assert_program_args_stderr_lt_expr in lib - Rust

                                                                                                                                                                                                    Macro lib::assert_program_args_stderr_lt_expr

                                                                                                                                                                                                    source ·
                                                                                                                                                                                                    macro_rules! assert_program_args_stderr_lt_expr {
                                                                                                                                                                                                         ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                                         ($a_program:expr, $a_args:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                     }
                                                                                                                                                                                                    Expand description

                                                                                                                                                                                                    Assert a command (built with program and args) stderr string is less than an expression.

                                                                                                                                                                                                    diff --git a/doc/lib/macro.assert_program_args_stderr_lt_expr_as_result.html b/doc/lib/macro.assert_program_args_stderr_lt_expr_as_result.html index 674fea10c..e29ace45a 100644 --- a/doc/lib/macro.assert_program_args_stderr_lt_expr_as_result.html +++ b/doc/lib/macro.assert_program_args_stderr_lt_expr_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_lt_expr_as_result in lib - Rust
                                                                                                                                                                                                    macro_rules! assert_program_args_stderr_lt_expr_as_result {
                                                                                                                                                                                                    +assert_program_args_stderr_lt_expr_as_result in lib - Rust
                                                                                                                                                                                                    macro_rules! assert_program_args_stderr_lt_expr_as_result {
                                                                                                                                                                                                         ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                                     }
                                                                                                                                                                                                    Expand description

                                                                                                                                                                                                    Assert a command (built with program and args) stderr string is less than an expression.

                                                                                                                                                                                                      diff --git a/doc/lib/macro.assert_program_args_stderr_ne.html b/doc/lib/macro.assert_program_args_stderr_ne.html index fafc1c2fd..1181fb9bf 100644 --- a/doc/lib/macro.assert_program_args_stderr_ne.html +++ b/doc/lib/macro.assert_program_args_stderr_ne.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_ne in lib - Rust

                                                                                                                                                                                                      Macro lib::assert_program_args_stderr_ne

                                                                                                                                                                                                      source ·
                                                                                                                                                                                                      macro_rules! assert_program_args_stderr_ne {
                                                                                                                                                                                                      +assert_program_args_stderr_ne in lib - Rust

                                                                                                                                                                                                      Macro lib::assert_program_args_stderr_ne

                                                                                                                                                                                                      source ·
                                                                                                                                                                                                      macro_rules! assert_program_args_stderr_ne {
                                                                                                                                                                                                           ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... };
                                                                                                                                                                                                           ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                       }
                                                                                                                                                                                                      Expand description

                                                                                                                                                                                                      Assert a command (built with program and args) stderr string is not equal to another.

                                                                                                                                                                                                      diff --git a/doc/lib/macro.assert_program_args_stderr_ne_as_result.html b/doc/lib/macro.assert_program_args_stderr_ne_as_result.html index 80a3b7acb..55b8679e5 100644 --- a/doc/lib/macro.assert_program_args_stderr_ne_as_result.html +++ b/doc/lib/macro.assert_program_args_stderr_ne_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_ne_as_result in lib - Rust
                                                                                                                                                                                                      macro_rules! assert_program_args_stderr_ne_as_result {
                                                                                                                                                                                                      +assert_program_args_stderr_ne_as_result in lib - Rust
                                                                                                                                                                                                      macro_rules! assert_program_args_stderr_ne_as_result {
                                                                                                                                                                                                           ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... };
                                                                                                                                                                                                       }
                                                                                                                                                                                                      Expand description

                                                                                                                                                                                                      Assert a command (built with program and args) stderr string is not equal to another.

                                                                                                                                                                                                        diff --git a/doc/lib/macro.assert_program_args_stderr_ne_expr.html b/doc/lib/macro.assert_program_args_stderr_ne_expr.html index 4ee239d39..ea76a727b 100644 --- a/doc/lib/macro.assert_program_args_stderr_ne_expr.html +++ b/doc/lib/macro.assert_program_args_stderr_ne_expr.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_ne_expr in lib - Rust

                                                                                                                                                                                                        Macro lib::assert_program_args_stderr_ne_expr

                                                                                                                                                                                                        source ·
                                                                                                                                                                                                        macro_rules! assert_program_args_stderr_ne_expr {
                                                                                                                                                                                                        +assert_program_args_stderr_ne_expr in lib - Rust

                                                                                                                                                                                                        Macro lib::assert_program_args_stderr_ne_expr

                                                                                                                                                                                                        source ·
                                                                                                                                                                                                        macro_rules! assert_program_args_stderr_ne_expr {
                                                                                                                                                                                                             ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                                             ($a_program:expr, $a_args:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                         }
                                                                                                                                                                                                        Expand description

                                                                                                                                                                                                        Assert a command (built with program and args) stderr string is not equal to an expression.

                                                                                                                                                                                                        diff --git a/doc/lib/macro.assert_program_args_stderr_ne_expr_as_result.html b/doc/lib/macro.assert_program_args_stderr_ne_expr_as_result.html index 2e3caf41b..90a59d417 100644 --- a/doc/lib/macro.assert_program_args_stderr_ne_expr_as_result.html +++ b/doc/lib/macro.assert_program_args_stderr_ne_expr_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_ne_expr_as_result in lib - Rust
                                                                                                                                                                                                        macro_rules! assert_program_args_stderr_ne_expr_as_result {
                                                                                                                                                                                                        +assert_program_args_stderr_ne_expr_as_result in lib - Rust
                                                                                                                                                                                                        macro_rules! assert_program_args_stderr_ne_expr_as_result {
                                                                                                                                                                                                             ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                                         }
                                                                                                                                                                                                        Expand description

                                                                                                                                                                                                        Assert a command (built with program and args) stderr string is not equal to an expression.

                                                                                                                                                                                                          diff --git a/doc/lib/macro.assert_program_args_stdout_contains.html b/doc/lib/macro.assert_program_args_stdout_contains.html index c85b170de..ff4d93051 100644 --- a/doc/lib/macro.assert_program_args_stdout_contains.html +++ b/doc/lib/macro.assert_program_args_stdout_contains.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_contains in lib - Rust

                                                                                                                                                                                                          Macro lib::assert_program_args_stdout_contains

                                                                                                                                                                                                          source ·
                                                                                                                                                                                                          macro_rules! assert_program_args_stdout_contains {
                                                                                                                                                                                                          +assert_program_args_stdout_contains in lib - Rust

                                                                                                                                                                                                          Macro lib::assert_program_args_stdout_contains

                                                                                                                                                                                                          source ·
                                                                                                                                                                                                          macro_rules! assert_program_args_stdout_contains {
                                                                                                                                                                                                               ($a_program:expr, $a_args:expr, $b_containee:expr $(,)?) => { ... };
                                                                                                                                                                                                               ($a_program:expr, $a_args:expr, $b_containee:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                           }
                                                                                                                                                                                                          Expand description

                                                                                                                                                                                                          Assert a command (built with program and args) stdout string contains a given containee.

                                                                                                                                                                                                          diff --git a/doc/lib/macro.assert_program_args_stdout_contains_as_result.html b/doc/lib/macro.assert_program_args_stdout_contains_as_result.html index dbeba2282..f8eb30b39 100644 --- a/doc/lib/macro.assert_program_args_stdout_contains_as_result.html +++ b/doc/lib/macro.assert_program_args_stdout_contains_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_contains_as_result in lib - Rust
                                                                                                                                                                                                          macro_rules! assert_program_args_stdout_contains_as_result {
                                                                                                                                                                                                          +assert_program_args_stdout_contains_as_result in lib - Rust
                                                                                                                                                                                                          macro_rules! assert_program_args_stdout_contains_as_result {
                                                                                                                                                                                                               ($a_program:expr, $a_args:expr, $b_containee:expr $(,)?) => { ... };
                                                                                                                                                                                                           }
                                                                                                                                                                                                          Expand description

                                                                                                                                                                                                          Assert a command (built with program and args) stdout string contains a given containee.

                                                                                                                                                                                                            diff --git a/doc/lib/macro.assert_program_args_stdout_eq.html b/doc/lib/macro.assert_program_args_stdout_eq.html index 3a73d24d1..319769e3f 100644 --- a/doc/lib/macro.assert_program_args_stdout_eq.html +++ b/doc/lib/macro.assert_program_args_stdout_eq.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_eq in lib - Rust

                                                                                                                                                                                                            Macro lib::assert_program_args_stdout_eq

                                                                                                                                                                                                            source ·
                                                                                                                                                                                                            macro_rules! assert_program_args_stdout_eq {
                                                                                                                                                                                                            +assert_program_args_stdout_eq in lib - Rust

                                                                                                                                                                                                            Macro lib::assert_program_args_stdout_eq

                                                                                                                                                                                                            source ·
                                                                                                                                                                                                            macro_rules! assert_program_args_stdout_eq {
                                                                                                                                                                                                                 ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... };
                                                                                                                                                                                                                 ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                             }
                                                                                                                                                                                                            Expand description

                                                                                                                                                                                                            Assert a command (built with program and args) stdout string is equal to another.

                                                                                                                                                                                                            diff --git a/doc/lib/macro.assert_program_args_stdout_eq_as_result.html b/doc/lib/macro.assert_program_args_stdout_eq_as_result.html index 384690cbb..994587768 100644 --- a/doc/lib/macro.assert_program_args_stdout_eq_as_result.html +++ b/doc/lib/macro.assert_program_args_stdout_eq_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_eq_as_result in lib - Rust
                                                                                                                                                                                                            macro_rules! assert_program_args_stdout_eq_as_result {
                                                                                                                                                                                                            +assert_program_args_stdout_eq_as_result in lib - Rust
                                                                                                                                                                                                            macro_rules! assert_program_args_stdout_eq_as_result {
                                                                                                                                                                                                                 ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... };
                                                                                                                                                                                                             }
                                                                                                                                                                                                            Expand description

                                                                                                                                                                                                            Assert a command (built with program and args) stdout string is equal to another.

                                                                                                                                                                                                              diff --git a/doc/lib/macro.assert_program_args_stdout_eq_expr.html b/doc/lib/macro.assert_program_args_stdout_eq_expr.html index 3d2189a39..6e1a4ee3e 100644 --- a/doc/lib/macro.assert_program_args_stdout_eq_expr.html +++ b/doc/lib/macro.assert_program_args_stdout_eq_expr.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_eq_expr in lib - Rust

                                                                                                                                                                                                              Macro lib::assert_program_args_stdout_eq_expr

                                                                                                                                                                                                              source ·
                                                                                                                                                                                                              macro_rules! assert_program_args_stdout_eq_expr {
                                                                                                                                                                                                              +assert_program_args_stdout_eq_expr in lib - Rust

                                                                                                                                                                                                              Macro lib::assert_program_args_stdout_eq_expr

                                                                                                                                                                                                              source ·
                                                                                                                                                                                                              macro_rules! assert_program_args_stdout_eq_expr {
                                                                                                                                                                                                                   ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                                                   ($a_program:expr, $a_args:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                               }
                                                                                                                                                                                                              Expand description

                                                                                                                                                                                                              Assert a command (built with program and args) stdout string is equal to an expression.

                                                                                                                                                                                                              diff --git a/doc/lib/macro.assert_program_args_stdout_eq_expr_as_result.html b/doc/lib/macro.assert_program_args_stdout_eq_expr_as_result.html index 65f24cc28..69144d867 100644 --- a/doc/lib/macro.assert_program_args_stdout_eq_expr_as_result.html +++ b/doc/lib/macro.assert_program_args_stdout_eq_expr_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_eq_expr_as_result in lib - Rust
                                                                                                                                                                                                              macro_rules! assert_program_args_stdout_eq_expr_as_result {
                                                                                                                                                                                                              +assert_program_args_stdout_eq_expr_as_result in lib - Rust
                                                                                                                                                                                                              macro_rules! assert_program_args_stdout_eq_expr_as_result {
                                                                                                                                                                                                                   ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                                               }
                                                                                                                                                                                                              Expand description

                                                                                                                                                                                                              Assert a command (built with program and args) stdout string is equal to an expression.

                                                                                                                                                                                                                diff --git a/doc/lib/macro.assert_program_args_stdout_ge.html b/doc/lib/macro.assert_program_args_stdout_ge.html index cfa38d808..a055bc1c6 100644 --- a/doc/lib/macro.assert_program_args_stdout_ge.html +++ b/doc/lib/macro.assert_program_args_stdout_ge.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_ge in lib - Rust

                                                                                                                                                                                                                Macro lib::assert_program_args_stdout_ge

                                                                                                                                                                                                                source ·
                                                                                                                                                                                                                macro_rules! assert_program_args_stdout_ge {
                                                                                                                                                                                                                +assert_program_args_stdout_ge in lib - Rust

                                                                                                                                                                                                                Macro lib::assert_program_args_stdout_ge

                                                                                                                                                                                                                source ·
                                                                                                                                                                                                                macro_rules! assert_program_args_stdout_ge {
                                                                                                                                                                                                                     ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... };
                                                                                                                                                                                                                     ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                                 }
                                                                                                                                                                                                                Expand description

                                                                                                                                                                                                                Assert a command (built with program and args) stdout string is greater than or equal to another.

                                                                                                                                                                                                                diff --git a/doc/lib/macro.assert_program_args_stdout_ge_as_result.html b/doc/lib/macro.assert_program_args_stdout_ge_as_result.html index b2833c4fa..cd3c9c96f 100644 --- a/doc/lib/macro.assert_program_args_stdout_ge_as_result.html +++ b/doc/lib/macro.assert_program_args_stdout_ge_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_ge_as_result in lib - Rust
                                                                                                                                                                                                                macro_rules! assert_program_args_stdout_ge_as_result {
                                                                                                                                                                                                                +assert_program_args_stdout_ge_as_result in lib - Rust
                                                                                                                                                                                                                macro_rules! assert_program_args_stdout_ge_as_result {
                                                                                                                                                                                                                     ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... };
                                                                                                                                                                                                                 }
                                                                                                                                                                                                                Expand description

                                                                                                                                                                                                                Assert a command (built with program and args) stdout string is greater than or equal to another.

                                                                                                                                                                                                                  diff --git a/doc/lib/macro.assert_program_args_stdout_ge_expr.html b/doc/lib/macro.assert_program_args_stdout_ge_expr.html index aaf06b755..479636d19 100644 --- a/doc/lib/macro.assert_program_args_stdout_ge_expr.html +++ b/doc/lib/macro.assert_program_args_stdout_ge_expr.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_ge_expr in lib - Rust

                                                                                                                                                                                                                  Macro lib::assert_program_args_stdout_ge_expr

                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                  macro_rules! assert_program_args_stdout_ge_expr {
                                                                                                                                                                                                                  +assert_program_args_stdout_ge_expr in lib - Rust

                                                                                                                                                                                                                  Macro lib::assert_program_args_stdout_ge_expr

                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                  macro_rules! assert_program_args_stdout_ge_expr {
                                                                                                                                                                                                                       ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                                                       ($a_program:expr, $a_args:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                                   }
                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                  Assert a command (built with program and args) stdout string is greater than or equal to an expression.

                                                                                                                                                                                                                  diff --git a/doc/lib/macro.assert_program_args_stdout_ge_expr_as_result.html b/doc/lib/macro.assert_program_args_stdout_ge_expr_as_result.html index dd9613b28..a3575660c 100644 --- a/doc/lib/macro.assert_program_args_stdout_ge_expr_as_result.html +++ b/doc/lib/macro.assert_program_args_stdout_ge_expr_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_ge_expr_as_result in lib - Rust
                                                                                                                                                                                                                  macro_rules! assert_program_args_stdout_ge_expr_as_result {
                                                                                                                                                                                                                  +assert_program_args_stdout_ge_expr_as_result in lib - Rust
                                                                                                                                                                                                                  macro_rules! assert_program_args_stdout_ge_expr_as_result {
                                                                                                                                                                                                                       ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                                                   }
                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                  Assert a command (built with program and args) stdout string is greater than or equal to an expression.

                                                                                                                                                                                                                    diff --git a/doc/lib/macro.assert_program_args_stdout_gt.html b/doc/lib/macro.assert_program_args_stdout_gt.html index 8472a0e7f..9e06bf848 100644 --- a/doc/lib/macro.assert_program_args_stdout_gt.html +++ b/doc/lib/macro.assert_program_args_stdout_gt.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_gt in lib - Rust

                                                                                                                                                                                                                    Macro lib::assert_program_args_stdout_gt

                                                                                                                                                                                                                    source ·
                                                                                                                                                                                                                    macro_rules! assert_program_args_stdout_gt {
                                                                                                                                                                                                                    +assert_program_args_stdout_gt in lib - Rust

                                                                                                                                                                                                                    Macro lib::assert_program_args_stdout_gt

                                                                                                                                                                                                                    source ·
                                                                                                                                                                                                                    macro_rules! assert_program_args_stdout_gt {
                                                                                                                                                                                                                         ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... };
                                                                                                                                                                                                                         ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                                     }
                                                                                                                                                                                                                    Expand description

                                                                                                                                                                                                                    Assert a command (built with program and args) stdout string is greater than another.

                                                                                                                                                                                                                    diff --git a/doc/lib/macro.assert_program_args_stdout_gt_as_result.html b/doc/lib/macro.assert_program_args_stdout_gt_as_result.html index 766ca0e58..3a27e0c25 100644 --- a/doc/lib/macro.assert_program_args_stdout_gt_as_result.html +++ b/doc/lib/macro.assert_program_args_stdout_gt_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_gt_as_result in lib - Rust
                                                                                                                                                                                                                    macro_rules! assert_program_args_stdout_gt_as_result {
                                                                                                                                                                                                                    +assert_program_args_stdout_gt_as_result in lib - Rust
                                                                                                                                                                                                                    macro_rules! assert_program_args_stdout_gt_as_result {
                                                                                                                                                                                                                         ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... };
                                                                                                                                                                                                                     }
                                                                                                                                                                                                                    Expand description

                                                                                                                                                                                                                    Assert a command (built with program and args) stdout string is greater than to another.

                                                                                                                                                                                                                      diff --git a/doc/lib/macro.assert_program_args_stdout_gt_expr.html b/doc/lib/macro.assert_program_args_stdout_gt_expr.html index 5a1c04b66..f1b37cb10 100644 --- a/doc/lib/macro.assert_program_args_stdout_gt_expr.html +++ b/doc/lib/macro.assert_program_args_stdout_gt_expr.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_gt_expr in lib - Rust

                                                                                                                                                                                                                      Macro lib::assert_program_args_stdout_gt_expr

                                                                                                                                                                                                                      source ·
                                                                                                                                                                                                                      macro_rules! assert_program_args_stdout_gt_expr {
                                                                                                                                                                                                                      +assert_program_args_stdout_gt_expr in lib - Rust

                                                                                                                                                                                                                      Macro lib::assert_program_args_stdout_gt_expr

                                                                                                                                                                                                                      source ·
                                                                                                                                                                                                                      macro_rules! assert_program_args_stdout_gt_expr {
                                                                                                                                                                                                                           ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                                                           ($a_program:expr, $a_args:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                                       }
                                                                                                                                                                                                                      Expand description

                                                                                                                                                                                                                      Assert a command (built with program and args) stdout string is greater than an expression.

                                                                                                                                                                                                                      diff --git a/doc/lib/macro.assert_program_args_stdout_gt_expr_as_result.html b/doc/lib/macro.assert_program_args_stdout_gt_expr_as_result.html index b87a17330..84b297de5 100644 --- a/doc/lib/macro.assert_program_args_stdout_gt_expr_as_result.html +++ b/doc/lib/macro.assert_program_args_stdout_gt_expr_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_gt_expr_as_result in lib - Rust
                                                                                                                                                                                                                      macro_rules! assert_program_args_stdout_gt_expr_as_result {
                                                                                                                                                                                                                      +assert_program_args_stdout_gt_expr_as_result in lib - Rust
                                                                                                                                                                                                                      macro_rules! assert_program_args_stdout_gt_expr_as_result {
                                                                                                                                                                                                                           ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                                                       }
                                                                                                                                                                                                                      Expand description

                                                                                                                                                                                                                      Assert a command (built with program and args) stdout string is greater than an expression.

                                                                                                                                                                                                                        diff --git a/doc/lib/macro.assert_program_args_stdout_is_match.html b/doc/lib/macro.assert_program_args_stdout_is_match.html index 38549cab1..fdeafa0c5 100644 --- a/doc/lib/macro.assert_program_args_stdout_is_match.html +++ b/doc/lib/macro.assert_program_args_stdout_is_match.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_is_match in lib - Rust

                                                                                                                                                                                                                        Macro lib::assert_program_args_stdout_is_match

                                                                                                                                                                                                                        source ·
                                                                                                                                                                                                                        macro_rules! assert_program_args_stdout_is_match {
                                                                                                                                                                                                                        +assert_program_args_stdout_is_match in lib - Rust

                                                                                                                                                                                                                        Macro lib::assert_program_args_stdout_is_match

                                                                                                                                                                                                                        source ·
                                                                                                                                                                                                                        macro_rules! assert_program_args_stdout_is_match {
                                                                                                                                                                                                                             ($a_program:expr, $a_args:expr, $b_matcher:expr $(,)?) => { ... };
                                                                                                                                                                                                                             ($a_program:expr, $a_args:expr, $b_matcher:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                                         }
                                                                                                                                                                                                                        Expand description

                                                                                                                                                                                                                        Assert a command (built with program and args) stdout string is a match to a regex.

                                                                                                                                                                                                                        diff --git a/doc/lib/macro.assert_program_args_stdout_is_match_as_result.html b/doc/lib/macro.assert_program_args_stdout_is_match_as_result.html index ca89214ff..df6872047 100644 --- a/doc/lib/macro.assert_program_args_stdout_is_match_as_result.html +++ b/doc/lib/macro.assert_program_args_stdout_is_match_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_is_match_as_result in lib - Rust
                                                                                                                                                                                                                        macro_rules! assert_program_args_stdout_is_match_as_result {
                                                                                                                                                                                                                        +assert_program_args_stdout_is_match_as_result in lib - Rust
                                                                                                                                                                                                                        macro_rules! assert_program_args_stdout_is_match_as_result {
                                                                                                                                                                                                                             ($a_program:expr, $a_args:expr, $b_matcher:expr $(,)?) => { ... };
                                                                                                                                                                                                                         }
                                                                                                                                                                                                                        Expand description

                                                                                                                                                                                                                        Assert a command (built with program and args) stdout string is a match to a regex.

                                                                                                                                                                                                                          diff --git a/doc/lib/macro.assert_program_args_stdout_le.html b/doc/lib/macro.assert_program_args_stdout_le.html index 2256f7f62..df11346e3 100644 --- a/doc/lib/macro.assert_program_args_stdout_le.html +++ b/doc/lib/macro.assert_program_args_stdout_le.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_le in lib - Rust

                                                                                                                                                                                                                          Macro lib::assert_program_args_stdout_le

                                                                                                                                                                                                                          source ·
                                                                                                                                                                                                                          macro_rules! assert_program_args_stdout_le {
                                                                                                                                                                                                                          +assert_program_args_stdout_le in lib - Rust

                                                                                                                                                                                                                          Macro lib::assert_program_args_stdout_le

                                                                                                                                                                                                                          source ·
                                                                                                                                                                                                                          macro_rules! assert_program_args_stdout_le {
                                                                                                                                                                                                                               ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... };
                                                                                                                                                                                                                               ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                                           }
                                                                                                                                                                                                                          Expand description

                                                                                                                                                                                                                          Assert a command (built with program and args) stdout string is less than or equal to another.

                                                                                                                                                                                                                          diff --git a/doc/lib/macro.assert_program_args_stdout_le_as_result.html b/doc/lib/macro.assert_program_args_stdout_le_as_result.html index 8e1bef5bd..b88e4bb4d 100644 --- a/doc/lib/macro.assert_program_args_stdout_le_as_result.html +++ b/doc/lib/macro.assert_program_args_stdout_le_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_le_as_result in lib - Rust
                                                                                                                                                                                                                          macro_rules! assert_program_args_stdout_le_as_result {
                                                                                                                                                                                                                          +assert_program_args_stdout_le_as_result in lib - Rust
                                                                                                                                                                                                                          macro_rules! assert_program_args_stdout_le_as_result {
                                                                                                                                                                                                                               ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... };
                                                                                                                                                                                                                           }
                                                                                                                                                                                                                          Expand description

                                                                                                                                                                                                                          Assert a command (built with program and args) stdout string is less than or equal to another.

                                                                                                                                                                                                                            diff --git a/doc/lib/macro.assert_program_args_stdout_le_expr.html b/doc/lib/macro.assert_program_args_stdout_le_expr.html index f83e53500..b7a1d0814 100644 --- a/doc/lib/macro.assert_program_args_stdout_le_expr.html +++ b/doc/lib/macro.assert_program_args_stdout_le_expr.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_le_expr in lib - Rust

                                                                                                                                                                                                                            Macro lib::assert_program_args_stdout_le_expr

                                                                                                                                                                                                                            source ·
                                                                                                                                                                                                                            macro_rules! assert_program_args_stdout_le_expr {
                                                                                                                                                                                                                            +assert_program_args_stdout_le_expr in lib - Rust

                                                                                                                                                                                                                            Macro lib::assert_program_args_stdout_le_expr

                                                                                                                                                                                                                            source ·
                                                                                                                                                                                                                            macro_rules! assert_program_args_stdout_le_expr {
                                                                                                                                                                                                                                 ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                                                                 ($a_program:expr, $a_args:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                                             }
                                                                                                                                                                                                                            Expand description

                                                                                                                                                                                                                            Assert a command (built with program and args) stdout string is less than or equal to an expression.

                                                                                                                                                                                                                            diff --git a/doc/lib/macro.assert_program_args_stdout_le_expr_as_result.html b/doc/lib/macro.assert_program_args_stdout_le_expr_as_result.html index 1caf6d82f..71401c772 100644 --- a/doc/lib/macro.assert_program_args_stdout_le_expr_as_result.html +++ b/doc/lib/macro.assert_program_args_stdout_le_expr_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_le_expr_as_result in lib - Rust
                                                                                                                                                                                                                            macro_rules! assert_program_args_stdout_le_expr_as_result {
                                                                                                                                                                                                                            +assert_program_args_stdout_le_expr_as_result in lib - Rust
                                                                                                                                                                                                                            macro_rules! assert_program_args_stdout_le_expr_as_result {
                                                                                                                                                                                                                                 ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                                                             }
                                                                                                                                                                                                                            Expand description

                                                                                                                                                                                                                            Assert a command (built with program and args) stdout string is less than or equal to an expression.

                                                                                                                                                                                                                              diff --git a/doc/lib/macro.assert_program_args_stdout_lt.html b/doc/lib/macro.assert_program_args_stdout_lt.html index 987c9bdb8..089a77a48 100644 --- a/doc/lib/macro.assert_program_args_stdout_lt.html +++ b/doc/lib/macro.assert_program_args_stdout_lt.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_lt in lib - Rust

                                                                                                                                                                                                                              Macro lib::assert_program_args_stdout_lt

                                                                                                                                                                                                                              source ·
                                                                                                                                                                                                                              macro_rules! assert_program_args_stdout_lt {
                                                                                                                                                                                                                              +assert_program_args_stdout_lt in lib - Rust

                                                                                                                                                                                                                              Macro lib::assert_program_args_stdout_lt

                                                                                                                                                                                                                              source ·
                                                                                                                                                                                                                              macro_rules! assert_program_args_stdout_lt {
                                                                                                                                                                                                                                   ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... };
                                                                                                                                                                                                                                   ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                                               }
                                                                                                                                                                                                                              Expand description

                                                                                                                                                                                                                              Assert a command (built with program and args) stdout string is less than another.

                                                                                                                                                                                                                              diff --git a/doc/lib/macro.assert_program_args_stdout_lt_as_result.html b/doc/lib/macro.assert_program_args_stdout_lt_as_result.html index 3ae61ce5a..ae5b630db 100644 --- a/doc/lib/macro.assert_program_args_stdout_lt_as_result.html +++ b/doc/lib/macro.assert_program_args_stdout_lt_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_lt_as_result in lib - Rust
                                                                                                                                                                                                                              macro_rules! assert_program_args_stdout_lt_as_result {
                                                                                                                                                                                                                              +assert_program_args_stdout_lt_as_result in lib - Rust
                                                                                                                                                                                                                              macro_rules! assert_program_args_stdout_lt_as_result {
                                                                                                                                                                                                                                   ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... };
                                                                                                                                                                                                                               }
                                                                                                                                                                                                                              Expand description

                                                                                                                                                                                                                              Assert a command (built with program and args) stdout string is less than another.

                                                                                                                                                                                                                                diff --git a/doc/lib/macro.assert_program_args_stdout_lt_expr.html b/doc/lib/macro.assert_program_args_stdout_lt_expr.html index 6af87a73f..470c20a14 100644 --- a/doc/lib/macro.assert_program_args_stdout_lt_expr.html +++ b/doc/lib/macro.assert_program_args_stdout_lt_expr.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_lt_expr in lib - Rust

                                                                                                                                                                                                                                Macro lib::assert_program_args_stdout_lt_expr

                                                                                                                                                                                                                                source ·
                                                                                                                                                                                                                                macro_rules! assert_program_args_stdout_lt_expr {
                                                                                                                                                                                                                                +assert_program_args_stdout_lt_expr in lib - Rust

                                                                                                                                                                                                                                Macro lib::assert_program_args_stdout_lt_expr

                                                                                                                                                                                                                                source ·
                                                                                                                                                                                                                                macro_rules! assert_program_args_stdout_lt_expr {
                                                                                                                                                                                                                                     ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                                                                     ($a_program:expr, $a_args:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                                                 }
                                                                                                                                                                                                                                Expand description

                                                                                                                                                                                                                                Assert a command (built with program and args) stdout string is less than an expression.

                                                                                                                                                                                                                                diff --git a/doc/lib/macro.assert_program_args_stdout_lt_expr_as_result.html b/doc/lib/macro.assert_program_args_stdout_lt_expr_as_result.html index 3251fc073..c3a4eeef8 100644 --- a/doc/lib/macro.assert_program_args_stdout_lt_expr_as_result.html +++ b/doc/lib/macro.assert_program_args_stdout_lt_expr_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_lt_expr_as_result in lib - Rust
                                                                                                                                                                                                                                macro_rules! assert_program_args_stdout_lt_expr_as_result {
                                                                                                                                                                                                                                +assert_program_args_stdout_lt_expr_as_result in lib - Rust
                                                                                                                                                                                                                                macro_rules! assert_program_args_stdout_lt_expr_as_result {
                                                                                                                                                                                                                                     ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                                                                 }
                                                                                                                                                                                                                                Expand description

                                                                                                                                                                                                                                Assert a command (built with program and args) stdout string is less than an expression.

                                                                                                                                                                                                                                  diff --git a/doc/lib/macro.assert_program_args_stdout_ne.html b/doc/lib/macro.assert_program_args_stdout_ne.html index 812c2842c..4cdbbfc3e 100644 --- a/doc/lib/macro.assert_program_args_stdout_ne.html +++ b/doc/lib/macro.assert_program_args_stdout_ne.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_ne in lib - Rust

                                                                                                                                                                                                                                  Macro lib::assert_program_args_stdout_ne

                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                  macro_rules! assert_program_args_stdout_ne {
                                                                                                                                                                                                                                  +assert_program_args_stdout_ne in lib - Rust

                                                                                                                                                                                                                                  Macro lib::assert_program_args_stdout_ne

                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                  macro_rules! assert_program_args_stdout_ne {
                                                                                                                                                                                                                                       ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... };
                                                                                                                                                                                                                                       ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                  Assert a command (built with program and args) stdout string is not equal to another.

                                                                                                                                                                                                                                  diff --git a/doc/lib/macro.assert_program_args_stdout_ne_as_result.html b/doc/lib/macro.assert_program_args_stdout_ne_as_result.html index c1d9f3cbf..52cab189d 100644 --- a/doc/lib/macro.assert_program_args_stdout_ne_as_result.html +++ b/doc/lib/macro.assert_program_args_stdout_ne_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_ne_as_result in lib - Rust
                                                                                                                                                                                                                                  macro_rules! assert_program_args_stdout_ne_as_result {
                                                                                                                                                                                                                                  +assert_program_args_stdout_ne_as_result in lib - Rust
                                                                                                                                                                                                                                  macro_rules! assert_program_args_stdout_ne_as_result {
                                                                                                                                                                                                                                       ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... };
                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                  Assert a command (built with program and args) stdout string is not equal to another.

                                                                                                                                                                                                                                    diff --git a/doc/lib/macro.assert_program_args_stdout_ne_expr.html b/doc/lib/macro.assert_program_args_stdout_ne_expr.html index b8ff55af3..b4121009f 100644 --- a/doc/lib/macro.assert_program_args_stdout_ne_expr.html +++ b/doc/lib/macro.assert_program_args_stdout_ne_expr.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_ne_expr in lib - Rust

                                                                                                                                                                                                                                    Macro lib::assert_program_args_stdout_ne_expr

                                                                                                                                                                                                                                    source ·
                                                                                                                                                                                                                                    macro_rules! assert_program_args_stdout_ne_expr {
                                                                                                                                                                                                                                    +assert_program_args_stdout_ne_expr in lib - Rust

                                                                                                                                                                                                                                    Macro lib::assert_program_args_stdout_ne_expr

                                                                                                                                                                                                                                    source ·
                                                                                                                                                                                                                                    macro_rules! assert_program_args_stdout_ne_expr {
                                                                                                                                                                                                                                         ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                                                                         ($a_program:expr, $a_args:expr, $b_expr:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                                                     }
                                                                                                                                                                                                                                    Expand description

                                                                                                                                                                                                                                    Assert a command (built with program and args) stdout string is not equal to an expression.

                                                                                                                                                                                                                                    diff --git a/doc/lib/macro.assert_program_args_stdout_ne_expr_as_result.html b/doc/lib/macro.assert_program_args_stdout_ne_expr_as_result.html index c32f440c6..ac61a8a55 100644 --- a/doc/lib/macro.assert_program_args_stdout_ne_expr_as_result.html +++ b/doc/lib/macro.assert_program_args_stdout_ne_expr_as_result.html @@ -1,4 +1,4 @@ -assert_program_args_stdout_ne_expr_as_result in lib - Rust
                                                                                                                                                                                                                                    macro_rules! assert_program_args_stdout_ne_expr_as_result {
                                                                                                                                                                                                                                    +assert_program_args_stdout_ne_expr_as_result in lib - Rust
                                                                                                                                                                                                                                    macro_rules! assert_program_args_stdout_ne_expr_as_result {
                                                                                                                                                                                                                                         ($a_program:expr, $a_args:expr, $b_expr:expr $(,)?) => { ... };
                                                                                                                                                                                                                                     }
                                                                                                                                                                                                                                    Expand description

                                                                                                                                                                                                                                    Assert a command (built with program and args) stdout string is not equal to an expression.

                                                                                                                                                                                                                                      diff --git a/doc/lib/macro.assert_result_err!.html b/doc/lib/macro.assert_result_err!.html new file mode 100644 index 000000000..67c6146a4 --- /dev/null +++ b/doc/lib/macro.assert_result_err!.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

                                                                                                                                                                                                                                      Redirecting to macro.assert_result_err.html...

                                                                                                                                                                                                                                      + + + \ No newline at end of file diff --git a/doc/lib/macro.assert_result_err.html b/doc/lib/macro.assert_result_err.html new file mode 100644 index 000000000..4e5f053f6 --- /dev/null +++ b/doc/lib/macro.assert_result_err.html @@ -0,0 +1,50 @@ +assert_result_err in lib - Rust

                                                                                                                                                                                                                                      Macro lib::assert_result_err

                                                                                                                                                                                                                                      source ·
                                                                                                                                                                                                                                      macro_rules! assert_result_err {
                                                                                                                                                                                                                                      +    ($a:expr $(,)?) => { ... };
                                                                                                                                                                                                                                      +    ($a:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                      Expand description

                                                                                                                                                                                                                                      Assert expression.is_err() is true.

                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • +

                                                                                                                                                                                                                                        If true, return ().

                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                      • +

                                                                                                                                                                                                                                        Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                      §Examples

                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      let a: Result<(), i8> = Result::Err(1);
                                                                                                                                                                                                                                      +assert_result_err!(a);
                                                                                                                                                                                                                                      +//-> ()
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      +let a: Result<(), i8> = Result::Ok(());
                                                                                                                                                                                                                                      +// Panic with error message
                                                                                                                                                                                                                                      +let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                      +assert_result_err!(a);
                                                                                                                                                                                                                                      +//-> panic!
                                                                                                                                                                                                                                      +});
                                                                                                                                                                                                                                      +assert!(result.is_err());
                                                                                                                                                                                                                                      +let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                      +let expect = concat!(
                                                                                                                                                                                                                                      +    "assertion failed: `assert_result_err!(expr)`\n",
                                                                                                                                                                                                                                      +    "    expr label: `a`,\n",
                                                                                                                                                                                                                                      +    "    expr debug: `Ok(())`,\n",
                                                                                                                                                                                                                                      +    " expr.is_err(): `false`",
                                                                                                                                                                                                                                      +);
                                                                                                                                                                                                                                      +assert_eq!(actual, expect);
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      +// Panic with error message
                                                                                                                                                                                                                                      +let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                      +assert_result_err!(a, "message");
                                                                                                                                                                                                                                      +//-> panic!
                                                                                                                                                                                                                                      +});
                                                                                                                                                                                                                                      +assert!(result.is_err());
                                                                                                                                                                                                                                      +let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                      +let expect = "message";
                                                                                                                                                                                                                                      +assert_eq!(actual, expect);
                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                      §Module macros

                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/doc/lib/macro.assert_result_err_as_result!.html b/doc/lib/macro.assert_result_err_as_result!.html new file mode 100644 index 000000000..193e88bdc --- /dev/null +++ b/doc/lib/macro.assert_result_err_as_result!.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

                                                                                                                                                                                                                                      Redirecting to macro.assert_result_err_as_result.html...

                                                                                                                                                                                                                                      + + + \ No newline at end of file diff --git a/doc/lib/macro.assert_result_err_as_result.html b/doc/lib/macro.assert_result_err_as_result.html new file mode 100644 index 000000000..c29193e15 --- /dev/null +++ b/doc/lib/macro.assert_result_err_as_result.html @@ -0,0 +1,22 @@ +assert_result_err_as_result in lib - Rust

                                                                                                                                                                                                                                      Macro lib::assert_result_err_as_result

                                                                                                                                                                                                                                      source ·
                                                                                                                                                                                                                                      macro_rules! assert_result_err_as_result {
                                                                                                                                                                                                                                      +    ($a:expr $(,)?) => { ... };
                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                      Expand description

                                                                                                                                                                                                                                      Assert an expression.is_err() is true.

                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • +

                                                                                                                                                                                                                                        If true, return Result Ok(()).

                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                      • +

                                                                                                                                                                                                                                        Otherwise, return Result Err with a diagnostic message.

                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                      This macro provides the same statements as assert_result_err, +except this macro returns a Result, rather than doing a panic.

                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                      This macro is useful for runtime checks, such as checking parameters, +or sanitizing inputs, or handling different results in different ways.

                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                      §Module macros

                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/doc/lib/macro.assert_result_ok!.html b/doc/lib/macro.assert_result_ok!.html new file mode 100644 index 000000000..374b34aea --- /dev/null +++ b/doc/lib/macro.assert_result_ok!.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

                                                                                                                                                                                                                                      Redirecting to macro.assert_result_ok.html...

                                                                                                                                                                                                                                      + + + \ No newline at end of file diff --git a/doc/lib/macro.assert_result_ok.html b/doc/lib/macro.assert_result_ok.html new file mode 100644 index 000000000..d2e016e71 --- /dev/null +++ b/doc/lib/macro.assert_result_ok.html @@ -0,0 +1,50 @@ +assert_result_ok in lib - Rust

                                                                                                                                                                                                                                      Macro lib::assert_result_ok

                                                                                                                                                                                                                                      source ·
                                                                                                                                                                                                                                      macro_rules! assert_result_ok {
                                                                                                                                                                                                                                      +    ($a:expr $(,)?) => { ... };
                                                                                                                                                                                                                                      +    ($a:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                      Expand description

                                                                                                                                                                                                                                      Assert expression.is_ok() is true.

                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • +

                                                                                                                                                                                                                                        If true, return ().

                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                      • +

                                                                                                                                                                                                                                        Otherwise, call panic! with a message and the values of the +expressions with their debug representations.

                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                      §Examples

                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      let a: Result<(), i8> = Result::Ok(());
                                                                                                                                                                                                                                      +assert_result_ok!(a);
                                                                                                                                                                                                                                      +//-> ()
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      +let a: Result<(), i8> = Result::Err(1);
                                                                                                                                                                                                                                      +// Panic with error message
                                                                                                                                                                                                                                      +let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                      +assert_result_ok!(a);
                                                                                                                                                                                                                                      +//-> panic!
                                                                                                                                                                                                                                      +});
                                                                                                                                                                                                                                      +assert!(result.is_err());
                                                                                                                                                                                                                                      +let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                      +let expect = concat!(
                                                                                                                                                                                                                                      +    "assertion failed: `assert_result_ok!(expr)`\n",
                                                                                                                                                                                                                                      +    "   expr label: `a`,\n",
                                                                                                                                                                                                                                      +    "   expr debug: `Err(1)`,\n",
                                                                                                                                                                                                                                      +    " expr.is_ok(): `false`",
                                                                                                                                                                                                                                      +);
                                                                                                                                                                                                                                      +assert_eq!(actual, expect);
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      +// Panic with error message
                                                                                                                                                                                                                                      +let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                      +assert_result_ok!(a, "message");
                                                                                                                                                                                                                                      +//-> panic!
                                                                                                                                                                                                                                      +});
                                                                                                                                                                                                                                      +assert!(result.is_err());
                                                                                                                                                                                                                                      +let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                      +let expect = "message";
                                                                                                                                                                                                                                      +assert_eq!(actual, expect);
                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                      §Module macros

                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/doc/lib/macro.assert_result_ok_as_result!.html b/doc/lib/macro.assert_result_ok_as_result!.html new file mode 100644 index 000000000..cad438415 --- /dev/null +++ b/doc/lib/macro.assert_result_ok_as_result!.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

                                                                                                                                                                                                                                      Redirecting to macro.assert_result_ok_as_result.html...

                                                                                                                                                                                                                                      + + + \ No newline at end of file diff --git a/doc/lib/macro.assert_result_ok_as_result.html b/doc/lib/macro.assert_result_ok_as_result.html new file mode 100644 index 000000000..3a3beb260 --- /dev/null +++ b/doc/lib/macro.assert_result_ok_as_result.html @@ -0,0 +1,22 @@ +assert_result_ok_as_result in lib - Rust

                                                                                                                                                                                                                                      Macro lib::assert_result_ok_as_result

                                                                                                                                                                                                                                      source ·
                                                                                                                                                                                                                                      macro_rules! assert_result_ok_as_result {
                                                                                                                                                                                                                                      +    ($a:expr $(,)?) => { ... };
                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                      Expand description

                                                                                                                                                                                                                                      Assert an expression.is_ok() is true.

                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • +

                                                                                                                                                                                                                                        If true, return Result Ok(()).

                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                      • +

                                                                                                                                                                                                                                        Otherwise, return Result Err with a diagnostic message.

                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                      This macro provides the same statements as assert_result_ok, +except this macro returns a Result, rather than doing a panic.

                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                      This macro is useful for runtime checks, such as checking parameters, +or sanitizing inputs, or handling different results in different ways.

                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                      §Module macros

                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/doc/lib/macro.assert_set_disjoint.html b/doc/lib/macro.assert_set_disjoint.html index 17b82c2a7..b92db312d 100644 --- a/doc/lib/macro.assert_set_disjoint.html +++ b/doc/lib/macro.assert_set_disjoint.html @@ -1,4 +1,4 @@ -assert_set_disjoint in lib - Rust

                                                                                                                                                                                                                                      Macro lib::assert_set_disjoint

                                                                                                                                                                                                                                      source ·
                                                                                                                                                                                                                                      macro_rules! assert_set_disjoint {
                                                                                                                                                                                                                                      +assert_set_disjoint in lib - Rust

                                                                                                                                                                                                                                      Macro lib::assert_set_disjoint

                                                                                                                                                                                                                                      source ·
                                                                                                                                                                                                                                      macro_rules! assert_set_disjoint {
                                                                                                                                                                                                                                           ($a:expr, $b:expr $(,)?) => { ... };
                                                                                                                                                                                                                                           ($a:expr, $b:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                                                       }
                                                                                                                                                                                                                                      Expand description

                                                                                                                                                                                                                                      Assert a set is disjoint with another.

                                                                                                                                                                                                                                      diff --git a/doc/lib/macro.assert_set_disjoint_as_result.html b/doc/lib/macro.assert_set_disjoint_as_result.html index 7b8677cce..cd8eb8b55 100644 --- a/doc/lib/macro.assert_set_disjoint_as_result.html +++ b/doc/lib/macro.assert_set_disjoint_as_result.html @@ -1,4 +1,4 @@ -assert_set_disjoint_as_result in lib - Rust

                                                                                                                                                                                                                                      Macro lib::assert_set_disjoint_as_result

                                                                                                                                                                                                                                      source ·
                                                                                                                                                                                                                                      macro_rules! assert_set_disjoint_as_result {
                                                                                                                                                                                                                                      +assert_set_disjoint_as_result in lib - Rust

                                                                                                                                                                                                                                      Macro lib::assert_set_disjoint_as_result

                                                                                                                                                                                                                                      source ·
                                                                                                                                                                                                                                      macro_rules! assert_set_disjoint_as_result {
                                                                                                                                                                                                                                           ($a:expr, $b:expr $(,)?) => { ... };
                                                                                                                                                                                                                                       }
                                                                                                                                                                                                                                      Expand description

                                                                                                                                                                                                                                      Assert a set is disjoint with another.

                                                                                                                                                                                                                                        diff --git a/doc/lib/macro.assert_set_eq.html b/doc/lib/macro.assert_set_eq.html index 8ce6bf9c7..daa480d5f 100644 --- a/doc/lib/macro.assert_set_eq.html +++ b/doc/lib/macro.assert_set_eq.html @@ -1,4 +1,4 @@ -assert_set_eq in lib - Rust

                                                                                                                                                                                                                                        Macro lib::assert_set_eq

                                                                                                                                                                                                                                        source ·
                                                                                                                                                                                                                                        macro_rules! assert_set_eq {
                                                                                                                                                                                                                                        +assert_set_eq in lib - Rust

                                                                                                                                                                                                                                        Macro lib::assert_set_eq

                                                                                                                                                                                                                                        source ·
                                                                                                                                                                                                                                        macro_rules! assert_set_eq {
                                                                                                                                                                                                                                             ($a:expr, $b:expr $(,)?) => { ... };
                                                                                                                                                                                                                                             ($a:expr, $b:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                                                         }
                                                                                                                                                                                                                                        Expand description

                                                                                                                                                                                                                                        Assert a set is equal to another.

                                                                                                                                                                                                                                        diff --git a/doc/lib/macro.assert_set_eq_as_result.html b/doc/lib/macro.assert_set_eq_as_result.html index c2047b3c1..82f1271be 100644 --- a/doc/lib/macro.assert_set_eq_as_result.html +++ b/doc/lib/macro.assert_set_eq_as_result.html @@ -1,4 +1,4 @@ -assert_set_eq_as_result in lib - Rust

                                                                                                                                                                                                                                        Macro lib::assert_set_eq_as_result

                                                                                                                                                                                                                                        source ·
                                                                                                                                                                                                                                        macro_rules! assert_set_eq_as_result {
                                                                                                                                                                                                                                        +assert_set_eq_as_result in lib - Rust

                                                                                                                                                                                                                                        Macro lib::assert_set_eq_as_result

                                                                                                                                                                                                                                        source ·
                                                                                                                                                                                                                                        macro_rules! assert_set_eq_as_result {
                                                                                                                                                                                                                                             ($a:expr, $b:expr $(,)?) => { ... };
                                                                                                                                                                                                                                         }
                                                                                                                                                                                                                                        Expand description

                                                                                                                                                                                                                                        Assert a set is equal to another.

                                                                                                                                                                                                                                          diff --git a/doc/lib/macro.assert_set_joint.html b/doc/lib/macro.assert_set_joint.html index ab8e89a08..982fb583e 100644 --- a/doc/lib/macro.assert_set_joint.html +++ b/doc/lib/macro.assert_set_joint.html @@ -1,4 +1,4 @@ -assert_set_joint in lib - Rust

                                                                                                                                                                                                                                          Macro lib::assert_set_joint

                                                                                                                                                                                                                                          source ·
                                                                                                                                                                                                                                          macro_rules! assert_set_joint {
                                                                                                                                                                                                                                          +assert_set_joint in lib - Rust

                                                                                                                                                                                                                                          Macro lib::assert_set_joint

                                                                                                                                                                                                                                          source ·
                                                                                                                                                                                                                                          macro_rules! assert_set_joint {
                                                                                                                                                                                                                                               ($a:expr, $b:expr $(,)?) => { ... };
                                                                                                                                                                                                                                               ($a:expr, $b:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                                                           }
                                                                                                                                                                                                                                          Expand description

                                                                                                                                                                                                                                          Assert a set is joint with another.

                                                                                                                                                                                                                                          diff --git a/doc/lib/macro.assert_set_joint_as_result.html b/doc/lib/macro.assert_set_joint_as_result.html index e631a7fbf..38f4410b1 100644 --- a/doc/lib/macro.assert_set_joint_as_result.html +++ b/doc/lib/macro.assert_set_joint_as_result.html @@ -1,4 +1,4 @@ -assert_set_joint_as_result in lib - Rust

                                                                                                                                                                                                                                          Macro lib::assert_set_joint_as_result

                                                                                                                                                                                                                                          source ·
                                                                                                                                                                                                                                          macro_rules! assert_set_joint_as_result {
                                                                                                                                                                                                                                          +assert_set_joint_as_result in lib - Rust

                                                                                                                                                                                                                                          Macro lib::assert_set_joint_as_result

                                                                                                                                                                                                                                          source ·
                                                                                                                                                                                                                                          macro_rules! assert_set_joint_as_result {
                                                                                                                                                                                                                                               ($a:expr, $b:expr $(,)?) => { ... };
                                                                                                                                                                                                                                           }
                                                                                                                                                                                                                                          Expand description

                                                                                                                                                                                                                                          Assert a set is joint with another.

                                                                                                                                                                                                                                            diff --git a/doc/lib/macro.assert_set_ne.html b/doc/lib/macro.assert_set_ne.html index e5463ceff..eb4e329be 100644 --- a/doc/lib/macro.assert_set_ne.html +++ b/doc/lib/macro.assert_set_ne.html @@ -1,4 +1,4 @@ -assert_set_ne in lib - Rust

                                                                                                                                                                                                                                            Macro lib::assert_set_ne

                                                                                                                                                                                                                                            source ·
                                                                                                                                                                                                                                            macro_rules! assert_set_ne {
                                                                                                                                                                                                                                            +assert_set_ne in lib - Rust

                                                                                                                                                                                                                                            Macro lib::assert_set_ne

                                                                                                                                                                                                                                            source ·
                                                                                                                                                                                                                                            macro_rules! assert_set_ne {
                                                                                                                                                                                                                                                 ($a:expr, $b:expr $(,)?) => { ... };
                                                                                                                                                                                                                                                 ($a:expr, $b:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                                                             }
                                                                                                                                                                                                                                            Expand description

                                                                                                                                                                                                                                            Assert a set is not equal to another.

                                                                                                                                                                                                                                            diff --git a/doc/lib/macro.assert_set_ne_as_result.html b/doc/lib/macro.assert_set_ne_as_result.html index c4497593a..ebf9a7a8a 100644 --- a/doc/lib/macro.assert_set_ne_as_result.html +++ b/doc/lib/macro.assert_set_ne_as_result.html @@ -1,4 +1,4 @@ -assert_set_ne_as_result in lib - Rust

                                                                                                                                                                                                                                            Macro lib::assert_set_ne_as_result

                                                                                                                                                                                                                                            source ·
                                                                                                                                                                                                                                            macro_rules! assert_set_ne_as_result {
                                                                                                                                                                                                                                            +assert_set_ne_as_result in lib - Rust

                                                                                                                                                                                                                                            Macro lib::assert_set_ne_as_result

                                                                                                                                                                                                                                            source ·
                                                                                                                                                                                                                                            macro_rules! assert_set_ne_as_result {
                                                                                                                                                                                                                                                 ($a:expr, $b:expr $(,)?) => { ... };
                                                                                                                                                                                                                                             }
                                                                                                                                                                                                                                            Expand description

                                                                                                                                                                                                                                            Assert a set is not equal to another.

                                                                                                                                                                                                                                              diff --git a/doc/lib/macro.assert_set_subset.html b/doc/lib/macro.assert_set_subset.html index 4f02172eb..e61141262 100644 --- a/doc/lib/macro.assert_set_subset.html +++ b/doc/lib/macro.assert_set_subset.html @@ -1,4 +1,4 @@ -assert_set_subset in lib - Rust

                                                                                                                                                                                                                                              Macro lib::assert_set_subset

                                                                                                                                                                                                                                              source ·
                                                                                                                                                                                                                                              macro_rules! assert_set_subset {
                                                                                                                                                                                                                                              +assert_set_subset in lib - Rust

                                                                                                                                                                                                                                              Macro lib::assert_set_subset

                                                                                                                                                                                                                                              source ·
                                                                                                                                                                                                                                              macro_rules! assert_set_subset {
                                                                                                                                                                                                                                                   ($a:expr, $b:expr $(,)?) => { ... };
                                                                                                                                                                                                                                                   ($a:expr, $b:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                                                               }
                                                                                                                                                                                                                                              Expand description

                                                                                                                                                                                                                                              Assert a set is a subset of another.

                                                                                                                                                                                                                                              diff --git a/doc/lib/macro.assert_set_subset_as_result.html b/doc/lib/macro.assert_set_subset_as_result.html index 07160c2dc..ab86d80d5 100644 --- a/doc/lib/macro.assert_set_subset_as_result.html +++ b/doc/lib/macro.assert_set_subset_as_result.html @@ -1,4 +1,4 @@ -assert_set_subset_as_result in lib - Rust

                                                                                                                                                                                                                                              Macro lib::assert_set_subset_as_result

                                                                                                                                                                                                                                              source ·
                                                                                                                                                                                                                                              macro_rules! assert_set_subset_as_result {
                                                                                                                                                                                                                                              +assert_set_subset_as_result in lib - Rust

                                                                                                                                                                                                                                              Macro lib::assert_set_subset_as_result

                                                                                                                                                                                                                                              source ·
                                                                                                                                                                                                                                              macro_rules! assert_set_subset_as_result {
                                                                                                                                                                                                                                                   ($a:expr, $b:expr $(,)?) => { ... };
                                                                                                                                                                                                                                               }
                                                                                                                                                                                                                                              Expand description

                                                                                                                                                                                                                                              Assert a set is a subset of another.

                                                                                                                                                                                                                                                diff --git a/doc/lib/macro.assert_set_superset.html b/doc/lib/macro.assert_set_superset.html index f9cc727e9..d1b8b897b 100644 --- a/doc/lib/macro.assert_set_superset.html +++ b/doc/lib/macro.assert_set_superset.html @@ -1,4 +1,4 @@ -assert_set_superset in lib - Rust

                                                                                                                                                                                                                                                Macro lib::assert_set_superset

                                                                                                                                                                                                                                                source ·
                                                                                                                                                                                                                                                macro_rules! assert_set_superset {
                                                                                                                                                                                                                                                +assert_set_superset in lib - Rust

                                                                                                                                                                                                                                                Macro lib::assert_set_superset

                                                                                                                                                                                                                                                source ·
                                                                                                                                                                                                                                                macro_rules! assert_set_superset {
                                                                                                                                                                                                                                                     ($a:expr, $b:expr $(,)?) => { ... };
                                                                                                                                                                                                                                                     ($a:expr, $b:expr, $($message:tt)+) => { ... };
                                                                                                                                                                                                                                                 }
                                                                                                                                                                                                                                                Expand description

                                                                                                                                                                                                                                                Assert a set is a superset of another.

                                                                                                                                                                                                                                                diff --git a/doc/lib/macro.assert_set_superset_as_result.html b/doc/lib/macro.assert_set_superset_as_result.html index 5719a3602..c9b9c2581 100644 --- a/doc/lib/macro.assert_set_superset_as_result.html +++ b/doc/lib/macro.assert_set_superset_as_result.html @@ -1,4 +1,4 @@ -assert_set_superset_as_result in lib - Rust

                                                                                                                                                                                                                                                Macro lib::assert_set_superset_as_result

                                                                                                                                                                                                                                                source ·
                                                                                                                                                                                                                                                macro_rules! assert_set_superset_as_result {
                                                                                                                                                                                                                                                +assert_set_superset_as_result in lib - Rust

                                                                                                                                                                                                                                                Macro lib::assert_set_superset_as_result

                                                                                                                                                                                                                                                source ·
                                                                                                                                                                                                                                                macro_rules! assert_set_superset_as_result {
                                                                                                                                                                                                                                                     ($a:expr, $b:expr $(,)?) => { ... };
                                                                                                                                                                                                                                                 }
                                                                                                                                                                                                                                                Expand description

                                                                                                                                                                                                                                                Assert a set is a superset of another.

                                                                                                                                                                                                                                                  diff --git a/doc/lib/macro.debug_assert_bag_eq.html b/doc/lib/macro.debug_assert_bag_eq.html index 5e6ae91cc..0570269c9 100644 --- a/doc/lib/macro.debug_assert_bag_eq.html +++ b/doc/lib/macro.debug_assert_bag_eq.html @@ -1,4 +1,4 @@ -debug_assert_bag_eq in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_bag_eq

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_bag_eq {
                                                                                                                                                                                                                                                  +debug_assert_bag_eq in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_bag_eq

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_bag_eq {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a bag is equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_bag_eq, diff --git a/doc/lib/macro.debug_assert_bag_ne.html b/doc/lib/macro.debug_assert_bag_ne.html index 7269793a5..44c6c9182 100644 --- a/doc/lib/macro.debug_assert_bag_ne.html +++ b/doc/lib/macro.debug_assert_bag_ne.html @@ -1,4 +1,4 @@ -debug_assert_bag_ne in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_bag_ne

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_bag_ne {
                                                                                                                                                                                                                                                  +debug_assert_bag_ne in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_bag_ne

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_bag_ne {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a bag is not equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_bag_ne, diff --git a/doc/lib/macro.debug_assert_bag_subbag.html b/doc/lib/macro.debug_assert_bag_subbag.html index 2c60f5fdb..8e0bec589 100644 --- a/doc/lib/macro.debug_assert_bag_subbag.html +++ b/doc/lib/macro.debug_assert_bag_subbag.html @@ -1,4 +1,4 @@ -debug_assert_bag_subbag in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_bag_subbag

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_bag_subbag {
                                                                                                                                                                                                                                                  +debug_assert_bag_subbag in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_bag_subbag

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_bag_subbag {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a bag is a subbag of another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_bag_subbag, diff --git a/doc/lib/macro.debug_assert_bag_superbag.html b/doc/lib/macro.debug_assert_bag_superbag.html index 6d993764a..8c9dd2e4e 100644 --- a/doc/lib/macro.debug_assert_bag_superbag.html +++ b/doc/lib/macro.debug_assert_bag_superbag.html @@ -1,4 +1,4 @@ -debug_assert_bag_superbag in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_bag_superbag

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_bag_superbag {
                                                                                                                                                                                                                                                  +debug_assert_bag_superbag in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_bag_superbag

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_bag_superbag {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a bag is a superbag of another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_bag_superbag, diff --git a/doc/lib/macro.debug_assert_command_stderr_contains.html b/doc/lib/macro.debug_assert_command_stderr_contains.html index d0ca0e292..f309c548b 100644 --- a/doc/lib/macro.debug_assert_command_stderr_contains.html +++ b/doc/lib/macro.debug_assert_command_stderr_contains.html @@ -1,4 +1,4 @@ -debug_assert_command_stderr_contains in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_command_stderr_contains

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_command_stderr_contains {
                                                                                                                                                                                                                                                  +debug_assert_command_stderr_contains in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_command_stderr_contains

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_command_stderr_contains {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command stderr string contains a given containee.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_command_stderr_contains, diff --git a/doc/lib/macro.debug_assert_command_stderr_eq.html b/doc/lib/macro.debug_assert_command_stderr_eq.html index 112eb61c7..eb07b450e 100644 --- a/doc/lib/macro.debug_assert_command_stderr_eq.html +++ b/doc/lib/macro.debug_assert_command_stderr_eq.html @@ -1,4 +1,4 @@ -debug_assert_command_stderr_eq in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_command_stderr_eq

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_command_stderr_eq {
                                                                                                                                                                                                                                                  +debug_assert_command_stderr_eq in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_command_stderr_eq

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_command_stderr_eq {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command stderr string is equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as [assert_command_stderr_eq {](macro.assert_command_stderr_eq {.html), diff --git a/doc/lib/macro.debug_assert_command_stderr_eq_expr.html b/doc/lib/macro.debug_assert_command_stderr_eq_expr.html index 7812b9365..39e08b4eb 100644 --- a/doc/lib/macro.debug_assert_command_stderr_eq_expr.html +++ b/doc/lib/macro.debug_assert_command_stderr_eq_expr.html @@ -1,4 +1,4 @@ -debug_assert_command_stderr_eq_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_command_stderr_eq_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_command_stderr_eq_expr {
                                                                                                                                                                                                                                                  +debug_assert_command_stderr_eq_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_command_stderr_eq_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_command_stderr_eq_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command stderr string is equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_command_stderr_eq_expr, diff --git a/doc/lib/macro.debug_assert_command_stderr_is_match.html b/doc/lib/macro.debug_assert_command_stderr_is_match.html index 43b858514..7ada874e9 100644 --- a/doc/lib/macro.debug_assert_command_stderr_is_match.html +++ b/doc/lib/macro.debug_assert_command_stderr_is_match.html @@ -1,4 +1,4 @@ -debug_assert_command_stderr_is_match in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_command_stderr_is_match

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_command_stderr_is_match {
                                                                                                                                                                                                                                                  +debug_assert_command_stderr_is_match in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_command_stderr_is_match

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_command_stderr_is_match {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command stderr string is a match to a regex.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_command_stderr_is_match, diff --git a/doc/lib/macro.debug_assert_command_stdout_contains.html b/doc/lib/macro.debug_assert_command_stdout_contains.html index 70187a5d1..67d1ff515 100644 --- a/doc/lib/macro.debug_assert_command_stdout_contains.html +++ b/doc/lib/macro.debug_assert_command_stdout_contains.html @@ -1,4 +1,4 @@ -debug_assert_command_stdout_contains in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_command_stdout_contains

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_command_stdout_contains {
                                                                                                                                                                                                                                                  +debug_assert_command_stdout_contains in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_command_stdout_contains

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_command_stdout_contains {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command stdout string contains a given containee.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_command_stdout_contains, diff --git a/doc/lib/macro.debug_assert_command_stdout_eq.html b/doc/lib/macro.debug_assert_command_stdout_eq.html index 5f86dd576..61f42460e 100644 --- a/doc/lib/macro.debug_assert_command_stdout_eq.html +++ b/doc/lib/macro.debug_assert_command_stdout_eq.html @@ -1,4 +1,4 @@ -debug_assert_command_stdout_eq in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_command_stdout_eq

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_command_stdout_eq {
                                                                                                                                                                                                                                                  +debug_assert_command_stdout_eq in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_command_stdout_eq

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_command_stdout_eq {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command stdout string is equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_command_stdout_eq, diff --git a/doc/lib/macro.debug_assert_command_stdout_eq_expr.html b/doc/lib/macro.debug_assert_command_stdout_eq_expr.html index 41e37ce38..14f80f932 100644 --- a/doc/lib/macro.debug_assert_command_stdout_eq_expr.html +++ b/doc/lib/macro.debug_assert_command_stdout_eq_expr.html @@ -1,4 +1,4 @@ -debug_assert_command_stdout_eq_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_command_stdout_eq_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_command_stdout_eq_expr {
                                                                                                                                                                                                                                                  +debug_assert_command_stdout_eq_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_command_stdout_eq_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_command_stdout_eq_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command stdout string is equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_command_stdout_eq_expr, diff --git a/doc/lib/macro.debug_assert_command_stdout_is_match.html b/doc/lib/macro.debug_assert_command_stdout_is_match.html index 009fe5a49..0156805b7 100644 --- a/doc/lib/macro.debug_assert_command_stdout_is_match.html +++ b/doc/lib/macro.debug_assert_command_stdout_is_match.html @@ -1,4 +1,4 @@ -debug_assert_command_stdout_is_match in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_command_stdout_is_match

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_command_stdout_is_match {
                                                                                                                                                                                                                                                  +debug_assert_command_stdout_is_match in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_command_stdout_is_match

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_command_stdout_is_match {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command stdout string is a match to a regex.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_command_stdout_is_match, diff --git a/doc/lib/macro.debug_assert_eq!.html b/doc/lib/macro.debug_assert_eq!.html deleted file mode 100644 index 75f68247f..000000000 --- a/doc/lib/macro.debug_assert_eq!.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Redirection - - -

                                                                                                                                                                                                                                                  Redirecting to macro.debug_assert_eq.html...

                                                                                                                                                                                                                                                  - - - \ No newline at end of file diff --git a/doc/lib/macro.debug_assert_eq.html b/doc/lib/macro.debug_assert_eq.html deleted file mode 100644 index c6a9f0a49..000000000 --- a/doc/lib/macro.debug_assert_eq.html +++ /dev/null @@ -1,25 +0,0 @@ -debug_assert_eq in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_eq

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_eq {
                                                                                                                                                                                                                                                  -    ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert an expression is equal to an expression.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_eq, -except this macro’s statements are only enabled in non-optimized -builds by default. An optimized build will not execute this macro’s -statements unless -C debug-assertions is passed to the compiler.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is useful for checks that are too expensive to be present -in a release build but may be helpful during development.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  The result of expanding this macro is always type checked.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  An unchecked assertion allows a program in an inconsistent state to -keep running, which might have unexpected consequences but does not -introduce unsafety as long as this only happens in safe code. The -performance cost of assertions, however, is not measurable in general. -Replacing assert*! with debug_assert*! is thus only encouraged -after thorough profiling, and more importantly, only in safe code!

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is intended to work in a similar way to -std::debug_assert.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  §Module macros

                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/lib/macro.debug_assert_fn_eq.html b/doc/lib/macro.debug_assert_fn_eq.html index 89311e9b4..c1dd26e12 100644 --- a/doc/lib/macro.debug_assert_fn_eq.html +++ b/doc/lib/macro.debug_assert_fn_eq.html @@ -1,4 +1,4 @@ -debug_assert_fn_eq in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_eq

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_eq {
                                                                                                                                                                                                                                                  +debug_assert_fn_eq in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_eq

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_eq {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function output is equal to another function output.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_eq, diff --git a/doc/lib/macro.debug_assert_fn_eq_expr.html b/doc/lib/macro.debug_assert_fn_eq_expr.html index d1f52f380..0794af94c 100644 --- a/doc/lib/macro.debug_assert_fn_eq_expr.html +++ b/doc/lib/macro.debug_assert_fn_eq_expr.html @@ -1,4 +1,4 @@ -debug_assert_fn_eq_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_eq_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_eq_expr {
                                                                                                                                                                                                                                                  +debug_assert_fn_eq_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_eq_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_eq_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function output is equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_eq_expr, diff --git a/doc/lib/macro.debug_assert_fn_err_eq.html b/doc/lib/macro.debug_assert_fn_err_eq.html index 6e9b7ed67..562da7545 100644 --- a/doc/lib/macro.debug_assert_fn_err_eq.html +++ b/doc/lib/macro.debug_assert_fn_err_eq.html @@ -1,4 +1,4 @@ -debug_assert_fn_err_eq in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_err_eq

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_err_eq {
                                                                                                                                                                                                                                                  +debug_assert_fn_err_eq in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_err_eq

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_err_eq {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function err() is equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_err_eq, diff --git a/doc/lib/macro.debug_assert_fn_err_eq_expr.html b/doc/lib/macro.debug_assert_fn_err_eq_expr.html index e904dbefd..cfc894455 100644 --- a/doc/lib/macro.debug_assert_fn_err_eq_expr.html +++ b/doc/lib/macro.debug_assert_fn_err_eq_expr.html @@ -1,4 +1,4 @@ -debug_assert_fn_err_eq_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_err_eq_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_err_eq_expr {
                                                                                                                                                                                                                                                  +debug_assert_fn_err_eq_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_err_eq_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_err_eq_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function err() is equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_err_eq_expr, diff --git a/doc/lib/macro.debug_assert_fn_err_ge.html b/doc/lib/macro.debug_assert_fn_err_ge.html index 79babdc48..f18ced8a4 100644 --- a/doc/lib/macro.debug_assert_fn_err_ge.html +++ b/doc/lib/macro.debug_assert_fn_err_ge.html @@ -1,4 +1,4 @@ -debug_assert_fn_err_ge in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_err_ge

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_err_ge {
                                                                                                                                                                                                                                                  +debug_assert_fn_err_ge in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_err_ge

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_err_ge {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function err() is greater than or equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_err_ge, diff --git a/doc/lib/macro.debug_assert_fn_err_ge_expr.html b/doc/lib/macro.debug_assert_fn_err_ge_expr.html index f6cf37644..3c66cc62d 100644 --- a/doc/lib/macro.debug_assert_fn_err_ge_expr.html +++ b/doc/lib/macro.debug_assert_fn_err_ge_expr.html @@ -1,4 +1,4 @@ -debug_assert_fn_err_ge_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_err_ge_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_err_ge_expr {
                                                                                                                                                                                                                                                  +debug_assert_fn_err_ge_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_err_ge_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_err_ge_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function err() is greater than or equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_err_ge_expr, diff --git a/doc/lib/macro.debug_assert_fn_err_gt.html b/doc/lib/macro.debug_assert_fn_err_gt.html index 4e0e35e36..28946befb 100644 --- a/doc/lib/macro.debug_assert_fn_err_gt.html +++ b/doc/lib/macro.debug_assert_fn_err_gt.html @@ -1,4 +1,4 @@ -debug_assert_fn_err_gt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_err_gt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_err_gt {
                                                                                                                                                                                                                                                  +debug_assert_fn_err_gt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_err_gt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_err_gt {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function err() is greater than another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_err_gt, diff --git a/doc/lib/macro.debug_assert_fn_err_gt_expr.html b/doc/lib/macro.debug_assert_fn_err_gt_expr.html index 7d8c66fcb..6931eed22 100644 --- a/doc/lib/macro.debug_assert_fn_err_gt_expr.html +++ b/doc/lib/macro.debug_assert_fn_err_gt_expr.html @@ -1,4 +1,4 @@ -debug_assert_fn_err_gt_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_err_gt_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_err_gt_expr {
                                                                                                                                                                                                                                                  +debug_assert_fn_err_gt_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_err_gt_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_err_gt_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function err() is greater than an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_err_gt_expr, diff --git a/doc/lib/macro.debug_assert_fn_err_le.html b/doc/lib/macro.debug_assert_fn_err_le.html index b3674de6d..69742fcf7 100644 --- a/doc/lib/macro.debug_assert_fn_err_le.html +++ b/doc/lib/macro.debug_assert_fn_err_le.html @@ -1,4 +1,4 @@ -debug_assert_fn_err_le in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_err_le

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_err_le {
                                                                                                                                                                                                                                                  +debug_assert_fn_err_le in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_err_le

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_err_le {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function err() is less than or equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_err_le, diff --git a/doc/lib/macro.debug_assert_fn_err_le_expr.html b/doc/lib/macro.debug_assert_fn_err_le_expr.html index de8954a0d..1e4145cfb 100644 --- a/doc/lib/macro.debug_assert_fn_err_le_expr.html +++ b/doc/lib/macro.debug_assert_fn_err_le_expr.html @@ -1,4 +1,4 @@ -debug_assert_fn_err_le_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_err_le_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_err_le_expr {
                                                                                                                                                                                                                                                  +debug_assert_fn_err_le_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_err_le_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_err_le_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function err() is less than or equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_err_le_expr, diff --git a/doc/lib/macro.debug_assert_fn_err_lt.html b/doc/lib/macro.debug_assert_fn_err_lt.html index 964ee9f50..538ff001e 100644 --- a/doc/lib/macro.debug_assert_fn_err_lt.html +++ b/doc/lib/macro.debug_assert_fn_err_lt.html @@ -1,4 +1,4 @@ -debug_assert_fn_err_lt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_err_lt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_err_lt {
                                                                                                                                                                                                                                                  +debug_assert_fn_err_lt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_err_lt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_err_lt {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function err() is less than another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_err_lt, diff --git a/doc/lib/macro.debug_assert_fn_err_lt_expr.html b/doc/lib/macro.debug_assert_fn_err_lt_expr.html index 1a4020c04..0b9df4141 100644 --- a/doc/lib/macro.debug_assert_fn_err_lt_expr.html +++ b/doc/lib/macro.debug_assert_fn_err_lt_expr.html @@ -1,4 +1,4 @@ -debug_assert_fn_err_lt_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_err_lt_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_err_lt_expr {
                                                                                                                                                                                                                                                  +debug_assert_fn_err_lt_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_err_lt_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_err_lt_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function err() is less than an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_err_lt_expr, diff --git a/doc/lib/macro.debug_assert_fn_err_ne.html b/doc/lib/macro.debug_assert_fn_err_ne.html index 99fc6b887..da1154ede 100644 --- a/doc/lib/macro.debug_assert_fn_err_ne.html +++ b/doc/lib/macro.debug_assert_fn_err_ne.html @@ -1,4 +1,4 @@ -debug_assert_fn_err_ne in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_err_ne

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_err_ne {
                                                                                                                                                                                                                                                  +debug_assert_fn_err_ne in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_err_ne

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_err_ne {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function err() is not equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_err_ne, diff --git a/doc/lib/macro.debug_assert_fn_err_ne_expr.html b/doc/lib/macro.debug_assert_fn_err_ne_expr.html index a5c95c342..717f1dcbc 100644 --- a/doc/lib/macro.debug_assert_fn_err_ne_expr.html +++ b/doc/lib/macro.debug_assert_fn_err_ne_expr.html @@ -1,4 +1,4 @@ -debug_assert_fn_err_ne_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_err_ne_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_err_ne_expr {
                                                                                                                                                                                                                                                  +debug_assert_fn_err_ne_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_err_ne_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_err_ne_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function err() is not equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_err_ne_expr, diff --git a/doc/lib/macro.debug_assert_fn_ge.html b/doc/lib/macro.debug_assert_fn_ge.html index a33971d57..00351b79a 100644 --- a/doc/lib/macro.debug_assert_fn_ge.html +++ b/doc/lib/macro.debug_assert_fn_ge.html @@ -1,4 +1,4 @@ -debug_assert_fn_ge in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ge

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ge {
                                                                                                                                                                                                                                                  +debug_assert_fn_ge in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ge

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ge {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function output is greater than or equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_ge, diff --git a/doc/lib/macro.debug_assert_fn_ge_expr.html b/doc/lib/macro.debug_assert_fn_ge_expr.html index 85ac26325..236af5932 100644 --- a/doc/lib/macro.debug_assert_fn_ge_expr.html +++ b/doc/lib/macro.debug_assert_fn_ge_expr.html @@ -1,4 +1,4 @@ -debug_assert_fn_ge_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ge_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ge_expr {
                                                                                                                                                                                                                                                  +debug_assert_fn_ge_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ge_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ge_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function output is greater than or equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_ge_expr, diff --git a/doc/lib/macro.debug_assert_fn_gt.html b/doc/lib/macro.debug_assert_fn_gt.html index 6fecb7b91..19f154226 100644 --- a/doc/lib/macro.debug_assert_fn_gt.html +++ b/doc/lib/macro.debug_assert_fn_gt.html @@ -1,4 +1,4 @@ -debug_assert_fn_gt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_gt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_gt {
                                                                                                                                                                                                                                                  +debug_assert_fn_gt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_gt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_gt {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function output is greater than another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_gt, diff --git a/doc/lib/macro.debug_assert_fn_gt_expr.html b/doc/lib/macro.debug_assert_fn_gt_expr.html index 8f4c17074..1d16ebca5 100644 --- a/doc/lib/macro.debug_assert_fn_gt_expr.html +++ b/doc/lib/macro.debug_assert_fn_gt_expr.html @@ -1,4 +1,4 @@ -debug_assert_fn_gt_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_gt_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_gt_expr {
                                                                                                                                                                                                                                                  +debug_assert_fn_gt_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_gt_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_gt_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function output is greater than an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_gt_expr, diff --git a/doc/lib/macro.debug_assert_fn_le.html b/doc/lib/macro.debug_assert_fn_le.html index 7a00f98c4..1976ed47a 100644 --- a/doc/lib/macro.debug_assert_fn_le.html +++ b/doc/lib/macro.debug_assert_fn_le.html @@ -1,4 +1,4 @@ -debug_assert_fn_le in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_le

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_le {
                                                                                                                                                                                                                                                  +debug_assert_fn_le in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_le

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_le {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function output is less than or equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_le, diff --git a/doc/lib/macro.debug_assert_fn_le_expr.html b/doc/lib/macro.debug_assert_fn_le_expr.html index ec7bd6b26..2b68199ce 100644 --- a/doc/lib/macro.debug_assert_fn_le_expr.html +++ b/doc/lib/macro.debug_assert_fn_le_expr.html @@ -1,4 +1,4 @@ -debug_assert_fn_le_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_le_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_le_expr {
                                                                                                                                                                                                                                                  +debug_assert_fn_le_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_le_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_le_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function output is less than or equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_le_expr, diff --git a/doc/lib/macro.debug_assert_fn_lt.html b/doc/lib/macro.debug_assert_fn_lt.html index b2e50d8bf..13f42c1a2 100644 --- a/doc/lib/macro.debug_assert_fn_lt.html +++ b/doc/lib/macro.debug_assert_fn_lt.html @@ -1,4 +1,4 @@ -debug_assert_fn_lt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_lt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_lt {
                                                                                                                                                                                                                                                  +debug_assert_fn_lt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_lt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_lt {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function output is less than another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_lt, diff --git a/doc/lib/macro.debug_assert_fn_lt_expr.html b/doc/lib/macro.debug_assert_fn_lt_expr.html index 99f60bb49..bfbd21317 100644 --- a/doc/lib/macro.debug_assert_fn_lt_expr.html +++ b/doc/lib/macro.debug_assert_fn_lt_expr.html @@ -1,4 +1,4 @@ -debug_assert_fn_lt_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_lt_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_lt_expr {
                                                                                                                                                                                                                                                  +debug_assert_fn_lt_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_lt_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_lt_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function output is less than an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_lt_expr, diff --git a/doc/lib/macro.debug_assert_fn_ne.html b/doc/lib/macro.debug_assert_fn_ne.html index 809a914a8..ba4f18f9c 100644 --- a/doc/lib/macro.debug_assert_fn_ne.html +++ b/doc/lib/macro.debug_assert_fn_ne.html @@ -1,4 +1,4 @@ -debug_assert_fn_ne in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ne

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ne {
                                                                                                                                                                                                                                                  +debug_assert_fn_ne in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ne

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ne {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function output is not equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_ne, diff --git a/doc/lib/macro.debug_assert_fn_ne_expr.html b/doc/lib/macro.debug_assert_fn_ne_expr.html index ca21abb5b..6dc4b8ce6 100644 --- a/doc/lib/macro.debug_assert_fn_ne_expr.html +++ b/doc/lib/macro.debug_assert_fn_ne_expr.html @@ -1,4 +1,4 @@ -debug_assert_fn_ne_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ne_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ne_expr {
                                                                                                                                                                                                                                                  +debug_assert_fn_ne_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ne_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ne_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function output is not equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_ne_expr, diff --git a/doc/lib/macro.debug_assert_fn_ok_eq.html b/doc/lib/macro.debug_assert_fn_ok_eq.html index af33377f7..809fc8053 100644 --- a/doc/lib/macro.debug_assert_fn_ok_eq.html +++ b/doc/lib/macro.debug_assert_fn_ok_eq.html @@ -1,4 +1,4 @@ -debug_assert_fn_ok_eq in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ok_eq

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ok_eq {
                                                                                                                                                                                                                                                  +debug_assert_fn_ok_eq in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ok_eq

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ok_eq {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function ok() is equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_ok_eq, diff --git a/doc/lib/macro.debug_assert_fn_ok_eq_expr.html b/doc/lib/macro.debug_assert_fn_ok_eq_expr.html index 7f53fd3bb..d9dd4c670 100644 --- a/doc/lib/macro.debug_assert_fn_ok_eq_expr.html +++ b/doc/lib/macro.debug_assert_fn_ok_eq_expr.html @@ -1,4 +1,4 @@ -debug_assert_fn_ok_eq_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ok_eq_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ok_eq_expr {
                                                                                                                                                                                                                                                  +debug_assert_fn_ok_eq_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ok_eq_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ok_eq_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function ok() is equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_ok_eq_expr, diff --git a/doc/lib/macro.debug_assert_fn_ok_ge.html b/doc/lib/macro.debug_assert_fn_ok_ge.html index 98562d520..080574408 100644 --- a/doc/lib/macro.debug_assert_fn_ok_ge.html +++ b/doc/lib/macro.debug_assert_fn_ok_ge.html @@ -1,4 +1,4 @@ -debug_assert_fn_ok_ge in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ok_ge

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ok_ge {
                                                                                                                                                                                                                                                  +debug_assert_fn_ok_ge in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ok_ge

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ok_ge {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function ok() is greater than or equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_ok_ge, diff --git a/doc/lib/macro.debug_assert_fn_ok_ge_expr.html b/doc/lib/macro.debug_assert_fn_ok_ge_expr.html index 5c4f370e4..beb84ffb6 100644 --- a/doc/lib/macro.debug_assert_fn_ok_ge_expr.html +++ b/doc/lib/macro.debug_assert_fn_ok_ge_expr.html @@ -1,4 +1,4 @@ -debug_assert_fn_ok_ge_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ok_ge_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ok_ge_expr {
                                                                                                                                                                                                                                                  +debug_assert_fn_ok_ge_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ok_ge_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ok_ge_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function ok() is greater than or equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_ok_ge_expr, diff --git a/doc/lib/macro.debug_assert_fn_ok_gt.html b/doc/lib/macro.debug_assert_fn_ok_gt.html index 28cb047a0..7166f0d2f 100644 --- a/doc/lib/macro.debug_assert_fn_ok_gt.html +++ b/doc/lib/macro.debug_assert_fn_ok_gt.html @@ -1,4 +1,4 @@ -debug_assert_fn_ok_gt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ok_gt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ok_gt {
                                                                                                                                                                                                                                                  +debug_assert_fn_ok_gt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ok_gt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ok_gt {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function ok() is greater than another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_ok_gt, diff --git a/doc/lib/macro.debug_assert_fn_ok_gt_expr.html b/doc/lib/macro.debug_assert_fn_ok_gt_expr.html index c2c8e7a99..7bac48e62 100644 --- a/doc/lib/macro.debug_assert_fn_ok_gt_expr.html +++ b/doc/lib/macro.debug_assert_fn_ok_gt_expr.html @@ -1,4 +1,4 @@ -debug_assert_fn_ok_gt_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ok_gt_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ok_gt_expr {
                                                                                                                                                                                                                                                  +debug_assert_fn_ok_gt_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ok_gt_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ok_gt_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function ok() is greater than an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_ok_gt_expr, diff --git a/doc/lib/macro.debug_assert_fn_ok_le.html b/doc/lib/macro.debug_assert_fn_ok_le.html index 245d397bc..2e8ca2bf7 100644 --- a/doc/lib/macro.debug_assert_fn_ok_le.html +++ b/doc/lib/macro.debug_assert_fn_ok_le.html @@ -1,4 +1,4 @@ -debug_assert_fn_ok_le in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ok_le

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ok_le {
                                                                                                                                                                                                                                                  +debug_assert_fn_ok_le in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ok_le

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ok_le {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function ok() is less than or equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_ok_le, diff --git a/doc/lib/macro.debug_assert_fn_ok_le_expr.html b/doc/lib/macro.debug_assert_fn_ok_le_expr.html index ffab152df..03de4c2f2 100644 --- a/doc/lib/macro.debug_assert_fn_ok_le_expr.html +++ b/doc/lib/macro.debug_assert_fn_ok_le_expr.html @@ -1,4 +1,4 @@ -debug_assert_fn_ok_le_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ok_le_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ok_le_expr {
                                                                                                                                                                                                                                                  +debug_assert_fn_ok_le_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ok_le_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ok_le_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function ok() is less than or equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_ok_le_expr, diff --git a/doc/lib/macro.debug_assert_fn_ok_lt.html b/doc/lib/macro.debug_assert_fn_ok_lt.html index cc6da2957..133010e18 100644 --- a/doc/lib/macro.debug_assert_fn_ok_lt.html +++ b/doc/lib/macro.debug_assert_fn_ok_lt.html @@ -1,4 +1,4 @@ -debug_assert_fn_ok_lt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ok_lt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ok_lt {
                                                                                                                                                                                                                                                  +debug_assert_fn_ok_lt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ok_lt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ok_lt {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function ok() is less than another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_ok_lt, diff --git a/doc/lib/macro.debug_assert_fn_ok_lt_expr.html b/doc/lib/macro.debug_assert_fn_ok_lt_expr.html index e8a6ddd8a..1767711ed 100644 --- a/doc/lib/macro.debug_assert_fn_ok_lt_expr.html +++ b/doc/lib/macro.debug_assert_fn_ok_lt_expr.html @@ -1,4 +1,4 @@ -debug_assert_fn_ok_lt_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ok_lt_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ok_lt_expr {
                                                                                                                                                                                                                                                  +debug_assert_fn_ok_lt_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ok_lt_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ok_lt_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function ok() is less than an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_ok_lt_expr, diff --git a/doc/lib/macro.debug_assert_fn_ok_ne.html b/doc/lib/macro.debug_assert_fn_ok_ne.html index 5df6f9e3b..e355a0d91 100644 --- a/doc/lib/macro.debug_assert_fn_ok_ne.html +++ b/doc/lib/macro.debug_assert_fn_ok_ne.html @@ -1,4 +1,4 @@ -debug_assert_fn_ok_ne in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ok_ne

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ok_ne {
                                                                                                                                                                                                                                                  +debug_assert_fn_ok_ne in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ok_ne

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ok_ne {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function ok() is not equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_ok_ne, diff --git a/doc/lib/macro.debug_assert_fn_ok_ne_expr.html b/doc/lib/macro.debug_assert_fn_ok_ne_expr.html index 34e9f9794..1ad703482 100644 --- a/doc/lib/macro.debug_assert_fn_ok_ne_expr.html +++ b/doc/lib/macro.debug_assert_fn_ok_ne_expr.html @@ -1,4 +1,4 @@ -debug_assert_fn_ok_ne_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ok_ne_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ok_ne_expr {
                                                                                                                                                                                                                                                  +debug_assert_fn_ok_ne_expr in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fn_ok_ne_expr

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fn_ok_ne_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a function ok() is not equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fn_ok_ne_expr, diff --git a/doc/lib/macro.debug_assert_fs_read_to_string_contains.html b/doc/lib/macro.debug_assert_fs_read_to_string_contains.html index e48896533..7f5e1daad 100644 --- a/doc/lib/macro.debug_assert_fs_read_to_string_contains.html +++ b/doc/lib/macro.debug_assert_fs_read_to_string_contains.html @@ -1,4 +1,4 @@ -debug_assert_fs_read_to_string_contains in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_contains {
                                                                                                                                                                                                                                                  +debug_assert_fs_read_to_string_contains in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_contains {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() contains a pattern.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_contains, diff --git a/doc/lib/macro.debug_assert_fs_read_to_string_eq.html b/doc/lib/macro.debug_assert_fs_read_to_string_eq.html index 029d16e97..527eb0afc 100644 --- a/doc/lib/macro.debug_assert_fs_read_to_string_eq.html +++ b/doc/lib/macro.debug_assert_fs_read_to_string_eq.html @@ -1,4 +1,4 @@ -debug_assert_fs_read_to_string_eq in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fs_read_to_string_eq

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_eq {
                                                                                                                                                                                                                                                  +debug_assert_fs_read_to_string_eq in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fs_read_to_string_eq

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_eq {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() value is equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_eq, diff --git a/doc/lib/macro.debug_assert_fs_read_to_string_eq_expr.html b/doc/lib/macro.debug_assert_fs_read_to_string_eq_expr.html index 8ff730e24..614f57a10 100644 --- a/doc/lib/macro.debug_assert_fs_read_to_string_eq_expr.html +++ b/doc/lib/macro.debug_assert_fs_read_to_string_eq_expr.html @@ -1,4 +1,4 @@ -debug_assert_fs_read_to_string_eq_expr in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_eq_expr {
                                                                                                                                                                                                                                                  +debug_assert_fs_read_to_string_eq_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_eq_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() value is equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_eq_expr, diff --git a/doc/lib/macro.debug_assert_fs_read_to_string_ge.html b/doc/lib/macro.debug_assert_fs_read_to_string_ge.html index fac7f9708..d31db4da4 100644 --- a/doc/lib/macro.debug_assert_fs_read_to_string_ge.html +++ b/doc/lib/macro.debug_assert_fs_read_to_string_ge.html @@ -1,4 +1,4 @@ -debug_assert_fs_read_to_string_ge in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fs_read_to_string_ge

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_ge {
                                                                                                                                                                                                                                                  +debug_assert_fs_read_to_string_ge in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fs_read_to_string_ge

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_ge {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() value is greater than or equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_ge, diff --git a/doc/lib/macro.debug_assert_fs_read_to_string_ge_expr.html b/doc/lib/macro.debug_assert_fs_read_to_string_ge_expr.html index 470106384..1a6b889ce 100644 --- a/doc/lib/macro.debug_assert_fs_read_to_string_ge_expr.html +++ b/doc/lib/macro.debug_assert_fs_read_to_string_ge_expr.html @@ -1,4 +1,4 @@ -debug_assert_fs_read_to_string_ge_expr in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_ge_expr {
                                                                                                                                                                                                                                                  +debug_assert_fs_read_to_string_ge_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_ge_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert zzz.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_ge_expr, diff --git a/doc/lib/macro.debug_assert_fs_read_to_string_gt.html b/doc/lib/macro.debug_assert_fs_read_to_string_gt.html index 98e40e1a7..175e61b11 100644 --- a/doc/lib/macro.debug_assert_fs_read_to_string_gt.html +++ b/doc/lib/macro.debug_assert_fs_read_to_string_gt.html @@ -1,4 +1,4 @@ -debug_assert_fs_read_to_string_gt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fs_read_to_string_gt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_gt {
                                                                                                                                                                                                                                                  +debug_assert_fs_read_to_string_gt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fs_read_to_string_gt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_gt {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() value is greater than another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_gt, diff --git a/doc/lib/macro.debug_assert_fs_read_to_string_gt_expr.html b/doc/lib/macro.debug_assert_fs_read_to_string_gt_expr.html index fad2ec7c3..6e2d18da7 100644 --- a/doc/lib/macro.debug_assert_fs_read_to_string_gt_expr.html +++ b/doc/lib/macro.debug_assert_fs_read_to_string_gt_expr.html @@ -1,4 +1,4 @@ -debug_assert_fs_read_to_string_gt_expr in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_gt_expr {
                                                                                                                                                                                                                                                  +debug_assert_fs_read_to_string_gt_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_gt_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() value is greater than an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_gt_expr, diff --git a/doc/lib/macro.debug_assert_fs_read_to_string_le.html b/doc/lib/macro.debug_assert_fs_read_to_string_le.html index 937665eb7..61a1a3de7 100644 --- a/doc/lib/macro.debug_assert_fs_read_to_string_le.html +++ b/doc/lib/macro.debug_assert_fs_read_to_string_le.html @@ -1,4 +1,4 @@ -debug_assert_fs_read_to_string_le in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fs_read_to_string_le

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_le {
                                                                                                                                                                                                                                                  +debug_assert_fs_read_to_string_le in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fs_read_to_string_le

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_le {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() value is less than or equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_le, diff --git a/doc/lib/macro.debug_assert_fs_read_to_string_le_expr.html b/doc/lib/macro.debug_assert_fs_read_to_string_le_expr.html index 712cbf354..a8b0d82ef 100644 --- a/doc/lib/macro.debug_assert_fs_read_to_string_le_expr.html +++ b/doc/lib/macro.debug_assert_fs_read_to_string_le_expr.html @@ -1,4 +1,4 @@ -debug_assert_fs_read_to_string_le_expr in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_le_expr {
                                                                                                                                                                                                                                                  +debug_assert_fs_read_to_string_le_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_le_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() value is less than or equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_le_expr, diff --git a/doc/lib/macro.debug_assert_fs_read_to_string_lt.html b/doc/lib/macro.debug_assert_fs_read_to_string_lt.html index 4edf3e7c9..f26f4324b 100644 --- a/doc/lib/macro.debug_assert_fs_read_to_string_lt.html +++ b/doc/lib/macro.debug_assert_fs_read_to_string_lt.html @@ -1,4 +1,4 @@ -debug_assert_fs_read_to_string_lt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fs_read_to_string_lt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_lt {
                                                                                                                                                                                                                                                  +debug_assert_fs_read_to_string_lt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fs_read_to_string_lt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_lt {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() value is less than another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_lt, diff --git a/doc/lib/macro.debug_assert_fs_read_to_string_lt_expr.html b/doc/lib/macro.debug_assert_fs_read_to_string_lt_expr.html index aa314ea0f..072339c5d 100644 --- a/doc/lib/macro.debug_assert_fs_read_to_string_lt_expr.html +++ b/doc/lib/macro.debug_assert_fs_read_to_string_lt_expr.html @@ -1,4 +1,4 @@ -debug_assert_fs_read_to_string_lt_expr in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_lt_expr {
                                                                                                                                                                                                                                                  +debug_assert_fs_read_to_string_lt_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_lt_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() value is less than an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_lt_expr, diff --git a/doc/lib/macro.debug_assert_fs_read_to_string_matches.html b/doc/lib/macro.debug_assert_fs_read_to_string_matches.html index 95598d9e8..10c6cc42b 100644 --- a/doc/lib/macro.debug_assert_fs_read_to_string_matches.html +++ b/doc/lib/macro.debug_assert_fs_read_to_string_matches.html @@ -1,4 +1,4 @@ -debug_assert_fs_read_to_string_matches in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_matches {
                                                                                                                                                                                                                                                  +debug_assert_fs_read_to_string_matches in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_matches {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() is a match to a regex.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_matches, diff --git a/doc/lib/macro.debug_assert_fs_read_to_string_ne.html b/doc/lib/macro.debug_assert_fs_read_to_string_ne.html index cf85e3640..6e8debbc9 100644 --- a/doc/lib/macro.debug_assert_fs_read_to_string_ne.html +++ b/doc/lib/macro.debug_assert_fs_read_to_string_ne.html @@ -1,4 +1,4 @@ -debug_assert_fs_read_to_string_ne in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fs_read_to_string_ne

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_ne {
                                                                                                                                                                                                                                                  +debug_assert_fs_read_to_string_ne in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fs_read_to_string_ne

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_ne {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() is not equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_ne, diff --git a/doc/lib/macro.debug_assert_fs_read_to_string_ne_expr.html b/doc/lib/macro.debug_assert_fs_read_to_string_ne_expr.html index 783948a63..642082c69 100644 --- a/doc/lib/macro.debug_assert_fs_read_to_string_ne_expr.html +++ b/doc/lib/macro.debug_assert_fs_read_to_string_ne_expr.html @@ -1,4 +1,4 @@ -debug_assert_fs_read_to_string_ne_expr in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_ne_expr {
                                                                                                                                                                                                                                                  +debug_assert_fs_read_to_string_ne_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_ne_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() is not equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_ne_expr, diff --git a/doc/lib/macro.debug_assert_infix!.html b/doc/lib/macro.debug_assert_infix!.html new file mode 100644 index 000000000..7650626fb --- /dev/null +++ b/doc/lib/macro.debug_assert_infix!.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

                                                                                                                                                                                                                                                  Redirecting to macro.debug_assert_infix.html...

                                                                                                                                                                                                                                                  + + + \ No newline at end of file diff --git a/doc/lib/macro.debug_assert_infix.html b/doc/lib/macro.debug_assert_infix.html new file mode 100644 index 000000000..70018b299 --- /dev/null +++ b/doc/lib/macro.debug_assert_infix.html @@ -0,0 +1,25 @@ +debug_assert_infix in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_infix

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_infix {
                                                                                                                                                                                                                                                  +    ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a infix operator, such as assert_infix!(a == b).

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_infix, +except this macro’s statements are only enabled in non-optimized +builds by default. An optimized build will not execute this macro’s +statements unless -C debug-assertions is passed to the compiler.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  This macro is useful for checks that are too expensive to be present +in a release build but may be helpful during development.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  The result of expanding this macro is always type checked.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  An unchecked assertion allows a program in an inconsistent state to +keep running, which might have unexpected consequences but does not +introduce unsafety as long as this only happens in safe code. The +performance cost of assertions, however, is not measurable in general. +Replacing assert*! with debug_assert*! is thus only encouraged +after thorough profiling, and more importantly, only in safe code!

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  This macro is intended to work in a similar way to +std::debug_assert.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  §Module macros

                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/lib/macro.debug_assert_io_read_to_string_contains.html b/doc/lib/macro.debug_assert_io_read_to_string_contains.html index 343f1b798..512c1df96 100644 --- a/doc/lib/macro.debug_assert_io_read_to_string_contains.html +++ b/doc/lib/macro.debug_assert_io_read_to_string_contains.html @@ -1,4 +1,4 @@ -debug_assert_io_read_to_string_contains in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_contains {
                                                                                                                                                                                                                                                  +debug_assert_io_read_to_string_contains in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_contains {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::io::Read read_to_string() contains a pattern.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_io_read_to_string_contains, diff --git a/doc/lib/macro.debug_assert_io_read_to_string_eq.html b/doc/lib/macro.debug_assert_io_read_to_string_eq.html index 062e92b7a..6c7901a77 100644 --- a/doc/lib/macro.debug_assert_io_read_to_string_eq.html +++ b/doc/lib/macro.debug_assert_io_read_to_string_eq.html @@ -1,4 +1,4 @@ -debug_assert_io_read_to_string_eq in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_io_read_to_string_eq

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_eq {
                                                                                                                                                                                                                                                  +debug_assert_io_read_to_string_eq in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_io_read_to_string_eq

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_eq {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::io::Read read_to_string() value is equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_io_read_to_string_eq, diff --git a/doc/lib/macro.debug_assert_io_read_to_string_eq_expr.html b/doc/lib/macro.debug_assert_io_read_to_string_eq_expr.html index 8a9ff1b25..6e7785dac 100644 --- a/doc/lib/macro.debug_assert_io_read_to_string_eq_expr.html +++ b/doc/lib/macro.debug_assert_io_read_to_string_eq_expr.html @@ -1,4 +1,4 @@ -debug_assert_io_read_to_string_eq_expr in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_eq_expr {
                                                                                                                                                                                                                                                  +debug_assert_io_read_to_string_eq_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_eq_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::io::Read read_to_string() value is equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_io_read_to_string_eq_expr, diff --git a/doc/lib/macro.debug_assert_io_read_to_string_ge.html b/doc/lib/macro.debug_assert_io_read_to_string_ge.html index e5fea3c06..1a5261454 100644 --- a/doc/lib/macro.debug_assert_io_read_to_string_ge.html +++ b/doc/lib/macro.debug_assert_io_read_to_string_ge.html @@ -1,4 +1,4 @@ -debug_assert_io_read_to_string_ge in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_io_read_to_string_ge

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_ge {
                                                                                                                                                                                                                                                  +debug_assert_io_read_to_string_ge in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_io_read_to_string_ge

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_ge {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::io::Read read_to_string() value is greater than or equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_io_read_to_string_ge, diff --git a/doc/lib/macro.debug_assert_io_read_to_string_ge_expr.html b/doc/lib/macro.debug_assert_io_read_to_string_ge_expr.html index e65387334..49218dc59 100644 --- a/doc/lib/macro.debug_assert_io_read_to_string_ge_expr.html +++ b/doc/lib/macro.debug_assert_io_read_to_string_ge_expr.html @@ -1,4 +1,4 @@ -debug_assert_io_read_to_string_ge_expr in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_ge_expr {
                                                                                                                                                                                                                                                  +debug_assert_io_read_to_string_ge_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_ge_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert zzz.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_io_read_to_string_ge_expr, diff --git a/doc/lib/macro.debug_assert_io_read_to_string_gt.html b/doc/lib/macro.debug_assert_io_read_to_string_gt.html index a0615f436..b0db70af0 100644 --- a/doc/lib/macro.debug_assert_io_read_to_string_gt.html +++ b/doc/lib/macro.debug_assert_io_read_to_string_gt.html @@ -1,4 +1,4 @@ -debug_assert_io_read_to_string_gt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_io_read_to_string_gt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_gt {
                                                                                                                                                                                                                                                  +debug_assert_io_read_to_string_gt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_io_read_to_string_gt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_gt {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::io::Read read_to_string() value is greater than another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_io_read_to_string_gt, diff --git a/doc/lib/macro.debug_assert_io_read_to_string_gt_expr.html b/doc/lib/macro.debug_assert_io_read_to_string_gt_expr.html index 737991ed5..1b8a56986 100644 --- a/doc/lib/macro.debug_assert_io_read_to_string_gt_expr.html +++ b/doc/lib/macro.debug_assert_io_read_to_string_gt_expr.html @@ -1,4 +1,4 @@ -debug_assert_io_read_to_string_gt_expr in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_gt_expr {
                                                                                                                                                                                                                                                  +debug_assert_io_read_to_string_gt_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_gt_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::io::Read read_to_string() value is greater than an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_io_read_to_string_gt_expr, diff --git a/doc/lib/macro.debug_assert_io_read_to_string_le.html b/doc/lib/macro.debug_assert_io_read_to_string_le.html index e67b4d905..d95606d39 100644 --- a/doc/lib/macro.debug_assert_io_read_to_string_le.html +++ b/doc/lib/macro.debug_assert_io_read_to_string_le.html @@ -1,4 +1,4 @@ -debug_assert_io_read_to_string_le in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_io_read_to_string_le

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_le {
                                                                                                                                                                                                                                                  +debug_assert_io_read_to_string_le in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_io_read_to_string_le

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_le {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::io::Read read_to_string() value is less than or equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_io_read_to_string_le, diff --git a/doc/lib/macro.debug_assert_io_read_to_string_le_expr.html b/doc/lib/macro.debug_assert_io_read_to_string_le_expr.html index fd8eb3ee8..14502b2a3 100644 --- a/doc/lib/macro.debug_assert_io_read_to_string_le_expr.html +++ b/doc/lib/macro.debug_assert_io_read_to_string_le_expr.html @@ -1,4 +1,4 @@ -debug_assert_io_read_to_string_le_expr in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_le_expr {
                                                                                                                                                                                                                                                  +debug_assert_io_read_to_string_le_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_le_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::io::Read read_to_string() value is less than or equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_io_read_to_string_le_expr, diff --git a/doc/lib/macro.debug_assert_io_read_to_string_lt.html b/doc/lib/macro.debug_assert_io_read_to_string_lt.html index 378138740..39044804c 100644 --- a/doc/lib/macro.debug_assert_io_read_to_string_lt.html +++ b/doc/lib/macro.debug_assert_io_read_to_string_lt.html @@ -1,4 +1,4 @@ -debug_assert_io_read_to_string_lt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_io_read_to_string_lt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_lt {
                                                                                                                                                                                                                                                  +debug_assert_io_read_to_string_lt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_io_read_to_string_lt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_lt {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::io::Read read_to_string() value is less than another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_io_read_to_string_lt, diff --git a/doc/lib/macro.debug_assert_io_read_to_string_lt_expr.html b/doc/lib/macro.debug_assert_io_read_to_string_lt_expr.html index 9955c66e6..17926cf83 100644 --- a/doc/lib/macro.debug_assert_io_read_to_string_lt_expr.html +++ b/doc/lib/macro.debug_assert_io_read_to_string_lt_expr.html @@ -1,4 +1,4 @@ -debug_assert_io_read_to_string_lt_expr in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_lt_expr {
                                                                                                                                                                                                                                                  +debug_assert_io_read_to_string_lt_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_lt_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::io::Read read_to_string() value is less than an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_io_read_to_string_lt_expr, diff --git a/doc/lib/macro.debug_assert_io_read_to_string_matches.html b/doc/lib/macro.debug_assert_io_read_to_string_matches.html index 7bf97ed5f..4faf08c5c 100644 --- a/doc/lib/macro.debug_assert_io_read_to_string_matches.html +++ b/doc/lib/macro.debug_assert_io_read_to_string_matches.html @@ -1,4 +1,4 @@ -debug_assert_io_read_to_string_matches in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_matches {
                                                                                                                                                                                                                                                  +debug_assert_io_read_to_string_matches in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_matches {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::io::Read read_to_string() is a match to a regex.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_io_read_to_string_matches, diff --git a/doc/lib/macro.debug_assert_io_read_to_string_ne.html b/doc/lib/macro.debug_assert_io_read_to_string_ne.html index 96747de2c..8214a648e 100644 --- a/doc/lib/macro.debug_assert_io_read_to_string_ne.html +++ b/doc/lib/macro.debug_assert_io_read_to_string_ne.html @@ -1,4 +1,4 @@ -debug_assert_io_read_to_string_ne in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_io_read_to_string_ne

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_ne {
                                                                                                                                                                                                                                                  +debug_assert_io_read_to_string_ne in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_io_read_to_string_ne

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_ne {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::io::Read read_to_string() is not equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_io_read_to_string_ne, diff --git a/doc/lib/macro.debug_assert_io_read_to_string_ne_expr.html b/doc/lib/macro.debug_assert_io_read_to_string_ne_expr.html index d7d63ed60..f2830d534 100644 --- a/doc/lib/macro.debug_assert_io_read_to_string_ne_expr.html +++ b/doc/lib/macro.debug_assert_io_read_to_string_ne_expr.html @@ -1,4 +1,4 @@ -debug_assert_io_read_to_string_ne_expr in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_ne_expr {
                                                                                                                                                                                                                                                  +debug_assert_io_read_to_string_ne_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_io_read_to_string_ne_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::io::Read read_to_string() is not equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_io_read_to_string_ne_expr, diff --git a/doc/lib/macro.debug_assert_ne!.html b/doc/lib/macro.debug_assert_ne!.html deleted file mode 100644 index 3a0578e47..000000000 --- a/doc/lib/macro.debug_assert_ne!.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Redirection - - -

                                                                                                                                                                                                                                                  Redirecting to macro.debug_assert_ne.html...

                                                                                                                                                                                                                                                  - - - \ No newline at end of file diff --git a/doc/lib/macro.debug_assert_ne.html b/doc/lib/macro.debug_assert_ne.html deleted file mode 100644 index 4357558c6..000000000 --- a/doc/lib/macro.debug_assert_ne.html +++ /dev/null @@ -1,25 +0,0 @@ -debug_assert_ne in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_ne

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_ne {
                                                                                                                                                                                                                                                  -    ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert an expression is not equal to an expression.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_ne, -except this macro’s statements are only enabled in non-optimized -builds by default. An optimized build will not execute this macro’s -statements unless -C debug-assertions is passed to the compiler.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is useful for checks that are too expensive to be present -in a release build but may be helpful during development.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  The result of expanding this macro is always type checked.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  An unchecked assertion allows a program in an inconsistent state to -keep running, which might have unexpected consequences but does not -introduce unsafety as long as this only happens in safe code. The -performance cost of assertions, however, is not measurable in general. -Replacing assert*! with debug_assert*! is thus only encouraged -after thorough profiling, and more importantly, only in safe code!

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is intended to work in a similar way to -std::debug_assert.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  §Module macros

                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/lib/macro.debug_assert_option_none!.html b/doc/lib/macro.debug_assert_option_none!.html new file mode 100644 index 000000000..7cbb19103 --- /dev/null +++ b/doc/lib/macro.debug_assert_option_none!.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

                                                                                                                                                                                                                                                  Redirecting to macro.debug_assert_option_none.html...

                                                                                                                                                                                                                                                  + + + \ No newline at end of file diff --git a/doc/lib/macro.debug_assert_option_none.html b/doc/lib/macro.debug_assert_option_none.html new file mode 100644 index 000000000..2e47c572e --- /dev/null +++ b/doc/lib/macro.debug_assert_option_none.html @@ -0,0 +1,25 @@ +debug_assert_option_none in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_option_none

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_option_none {
                                                                                                                                                                                                                                                  +    ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert expression.is_none() is true.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_option_none, +except this macro’s statements are only enabled in non-optimized +builds by default. An optimized build will not execute this macro’s +statements unless -C debug-assertions is passed to the compiler.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  This macro is useful for checks that are too expensive to be present +in a release build but may be helpful during development.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  The result of expanding this macro is always type checked.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  An unchecked assertion allows a program in an inconsistent state to +keep running, which might have unexpected consequences but does not +introduce unsafety as long as this only happens in safe code. The +performance cost of assertions, however, is not measurable in general. +Replacing assert*! with debug_assert*! is thus only encouraged +after thorough profiling, and more importantly, only in safe code!

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  This macro is intended to work in a similar way to +std::debug_assert.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  §Module macros

                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/lib/macro.debug_assert_option_some!.html b/doc/lib/macro.debug_assert_option_some!.html new file mode 100644 index 000000000..24ec0a66a --- /dev/null +++ b/doc/lib/macro.debug_assert_option_some!.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

                                                                                                                                                                                                                                                  Redirecting to macro.debug_assert_option_some.html...

                                                                                                                                                                                                                                                  + + + \ No newline at end of file diff --git a/doc/lib/macro.debug_assert_option_some.html b/doc/lib/macro.debug_assert_option_some.html new file mode 100644 index 000000000..8189cd797 --- /dev/null +++ b/doc/lib/macro.debug_assert_option_some.html @@ -0,0 +1,25 @@ +debug_assert_option_some in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_option_some

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_option_some {
                                                                                                                                                                                                                                                  +    ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert expression.is_some() is true.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_option_some, +except this macro’s statements are only enabled in non-optimized +builds by default. An optimized build will not execute this macro’s +statements unless -C debug-assertions is passed to the compiler.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  This macro is useful for checks that are too expensive to be present +in a release build but may be helpful during development.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  The result of expanding this macro is always type checked.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  An unchecked assertion allows a program in an inconsistent state to +keep running, which might have unexpected consequences but does not +introduce unsafety as long as this only happens in safe code. The +performance cost of assertions, however, is not measurable in general. +Replacing assert*! with debug_assert*! is thus only encouraged +after thorough profiling, and more importantly, only in safe code!

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  This macro is intended to work in a similar way to +std::debug_assert.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  §Module macros

                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/lib/macro.debug_assert_program_args_stderr_contains.html b/doc/lib/macro.debug_assert_program_args_stderr_contains.html index 930e8e7da..5510a8ea8 100644 --- a/doc/lib/macro.debug_assert_program_args_stderr_contains.html +++ b/doc/lib/macro.debug_assert_program_args_stderr_contains.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stderr_contains in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_contains {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stderr_contains in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_contains {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stderr string contains a given containee.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stderr_contains, diff --git a/doc/lib/macro.debug_assert_program_args_stderr_eq.html b/doc/lib/macro.debug_assert_program_args_stderr_eq.html index 00c9d9c99..b1680fdd2 100644 --- a/doc/lib/macro.debug_assert_program_args_stderr_eq.html +++ b/doc/lib/macro.debug_assert_program_args_stderr_eq.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stderr_eq in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_program_args_stderr_eq

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_eq {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stderr_eq in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_program_args_stderr_eq

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_eq {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stderr string is equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stderr_eq, diff --git a/doc/lib/macro.debug_assert_program_args_stderr_eq_expr.html b/doc/lib/macro.debug_assert_program_args_stderr_eq_expr.html index 83046face..8067b5b81 100644 --- a/doc/lib/macro.debug_assert_program_args_stderr_eq_expr.html +++ b/doc/lib/macro.debug_assert_program_args_stderr_eq_expr.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stderr_eq_expr in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_eq_expr {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stderr_eq_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_eq_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stderr string is equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stderr_eq_expr, diff --git a/doc/lib/macro.debug_assert_program_args_stderr_ge.html b/doc/lib/macro.debug_assert_program_args_stderr_ge.html index 58e00e85c..154125882 100644 --- a/doc/lib/macro.debug_assert_program_args_stderr_ge.html +++ b/doc/lib/macro.debug_assert_program_args_stderr_ge.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stderr_ge in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_program_args_stderr_ge

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_ge {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stderr_ge in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_program_args_stderr_ge

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_ge {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stderr string greater than or equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stderr_ge, diff --git a/doc/lib/macro.debug_assert_program_args_stderr_ge_expr.html b/doc/lib/macro.debug_assert_program_args_stderr_ge_expr.html index 3cd054ff7..7af173c13 100644 --- a/doc/lib/macro.debug_assert_program_args_stderr_ge_expr.html +++ b/doc/lib/macro.debug_assert_program_args_stderr_ge_expr.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stderr_ge_expr in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_ge_expr {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stderr_ge_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_ge_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stderr string is greater than or equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stderr_ge_expr, diff --git a/doc/lib/macro.debug_assert_program_args_stderr_gt.html b/doc/lib/macro.debug_assert_program_args_stderr_gt.html index cc6e41f8b..91a5e3f32 100644 --- a/doc/lib/macro.debug_assert_program_args_stderr_gt.html +++ b/doc/lib/macro.debug_assert_program_args_stderr_gt.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stderr_gt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_program_args_stderr_gt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_gt {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stderr_gt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_program_args_stderr_gt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_gt {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stderr string is equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stderr_gt, diff --git a/doc/lib/macro.debug_assert_program_args_stderr_gt_expr.html b/doc/lib/macro.debug_assert_program_args_stderr_gt_expr.html index 2fbdc90a7..6422d9546 100644 --- a/doc/lib/macro.debug_assert_program_args_stderr_gt_expr.html +++ b/doc/lib/macro.debug_assert_program_args_stderr_gt_expr.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stderr_gt_expr in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_gt_expr {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stderr_gt_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_gt_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stderr string is greater than an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stderr_gt_expr, diff --git a/doc/lib/macro.debug_assert_program_args_stderr_is_match.html b/doc/lib/macro.debug_assert_program_args_stderr_is_match.html index 118bd076e..4de3f6ef8 100644 --- a/doc/lib/macro.debug_assert_program_args_stderr_is_match.html +++ b/doc/lib/macro.debug_assert_program_args_stderr_is_match.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stderr_is_match in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_is_match {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stderr_is_match in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_is_match {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stderr string is a match to a regex.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stderr_is_match, diff --git a/doc/lib/macro.debug_assert_program_args_stderr_le.html b/doc/lib/macro.debug_assert_program_args_stderr_le.html index b7e02f3c6..5f0db0bff 100644 --- a/doc/lib/macro.debug_assert_program_args_stderr_le.html +++ b/doc/lib/macro.debug_assert_program_args_stderr_le.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stderr_le in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_program_args_stderr_le

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_le {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stderr_le in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_program_args_stderr_le

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_le {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stderr string is less than or equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stderr_le, diff --git a/doc/lib/macro.debug_assert_program_args_stderr_le_expr.html b/doc/lib/macro.debug_assert_program_args_stderr_le_expr.html index c354b20a1..d10f6502a 100644 --- a/doc/lib/macro.debug_assert_program_args_stderr_le_expr.html +++ b/doc/lib/macro.debug_assert_program_args_stderr_le_expr.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stderr_le_expr in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_le_expr {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stderr_le_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_le_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stderr string is equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stderr_le_expr, diff --git a/doc/lib/macro.debug_assert_program_args_stderr_lt.html b/doc/lib/macro.debug_assert_program_args_stderr_lt.html index 23637c405..6ec3cb3d1 100644 --- a/doc/lib/macro.debug_assert_program_args_stderr_lt.html +++ b/doc/lib/macro.debug_assert_program_args_stderr_lt.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stderr_lt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_program_args_stderr_lt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_lt {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stderr_lt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_program_args_stderr_lt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_lt {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stderr string is less than another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stderr_lt, diff --git a/doc/lib/macro.debug_assert_program_args_stderr_lt_expr.html b/doc/lib/macro.debug_assert_program_args_stderr_lt_expr.html index 1a8da5693..1007c52db 100644 --- a/doc/lib/macro.debug_assert_program_args_stderr_lt_expr.html +++ b/doc/lib/macro.debug_assert_program_args_stderr_lt_expr.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stderr_lt_expr in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_lt_expr {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stderr_lt_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_lt_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stderr string is less than an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stderr_lt_expr, diff --git a/doc/lib/macro.debug_assert_program_args_stderr_ne.html b/doc/lib/macro.debug_assert_program_args_stderr_ne.html index d921130c6..012e1bd16 100644 --- a/doc/lib/macro.debug_assert_program_args_stderr_ne.html +++ b/doc/lib/macro.debug_assert_program_args_stderr_ne.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stderr_ne in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_program_args_stderr_ne

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_ne {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stderr_ne in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_program_args_stderr_ne

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_ne {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stderr string is not equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stderr_ne, diff --git a/doc/lib/macro.debug_assert_program_args_stderr_ne_expr.html b/doc/lib/macro.debug_assert_program_args_stderr_ne_expr.html index 14df8d75f..0136f7b02 100644 --- a/doc/lib/macro.debug_assert_program_args_stderr_ne_expr.html +++ b/doc/lib/macro.debug_assert_program_args_stderr_ne_expr.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stderr_ne_expr in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_ne_expr {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stderr_ne_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stderr_ne_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stderr string is not equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stderr_ne_expr, diff --git a/doc/lib/macro.debug_assert_program_args_stdout_contains.html b/doc/lib/macro.debug_assert_program_args_stdout_contains.html index 420976b44..c8d4a005b 100644 --- a/doc/lib/macro.debug_assert_program_args_stdout_contains.html +++ b/doc/lib/macro.debug_assert_program_args_stdout_contains.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stdout_contains in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_contains {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stdout_contains in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_contains {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stdout string contains a given containee.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stdout_contains, diff --git a/doc/lib/macro.debug_assert_program_args_stdout_eq.html b/doc/lib/macro.debug_assert_program_args_stdout_eq.html index 91a351f57..588a1b5a8 100644 --- a/doc/lib/macro.debug_assert_program_args_stdout_eq.html +++ b/doc/lib/macro.debug_assert_program_args_stdout_eq.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stdout_eq in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_program_args_stdout_eq

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_eq {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stdout_eq in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_program_args_stdout_eq

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_eq {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stdout string is equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stdout_eq, diff --git a/doc/lib/macro.debug_assert_program_args_stdout_eq_expr.html b/doc/lib/macro.debug_assert_program_args_stdout_eq_expr.html index b9b6fcf09..971f233dd 100644 --- a/doc/lib/macro.debug_assert_program_args_stdout_eq_expr.html +++ b/doc/lib/macro.debug_assert_program_args_stdout_eq_expr.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stdout_eq_expr in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_eq_expr {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stdout_eq_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_eq_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stdout string is equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stdout_eq_expr, diff --git a/doc/lib/macro.debug_assert_program_args_stdout_ge.html b/doc/lib/macro.debug_assert_program_args_stdout_ge.html index 212f24395..0897f6834 100644 --- a/doc/lib/macro.debug_assert_program_args_stdout_ge.html +++ b/doc/lib/macro.debug_assert_program_args_stdout_ge.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stdout_ge in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_program_args_stdout_ge

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_ge {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stdout_ge in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_program_args_stdout_ge

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_ge {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stdout string is greater than or equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stdout_ge, diff --git a/doc/lib/macro.debug_assert_program_args_stdout_ge_expr.html b/doc/lib/macro.debug_assert_program_args_stdout_ge_expr.html index 68198554f..02c013c2b 100644 --- a/doc/lib/macro.debug_assert_program_args_stdout_ge_expr.html +++ b/doc/lib/macro.debug_assert_program_args_stdout_ge_expr.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stdout_ge_expr in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_ge_expr {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stdout_ge_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_ge_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stdout string is greater than or equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stdout_ge_expr, diff --git a/doc/lib/macro.debug_assert_program_args_stdout_gt.html b/doc/lib/macro.debug_assert_program_args_stdout_gt.html index 35a9d3922..2df8f515f 100644 --- a/doc/lib/macro.debug_assert_program_args_stdout_gt.html +++ b/doc/lib/macro.debug_assert_program_args_stdout_gt.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stdout_gt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_program_args_stdout_gt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_gt {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stdout_gt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_program_args_stdout_gt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_gt {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stdout string is greater than another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stdout_gt, diff --git a/doc/lib/macro.debug_assert_program_args_stdout_gt_expr.html b/doc/lib/macro.debug_assert_program_args_stdout_gt_expr.html index c89ab519d..66632163c 100644 --- a/doc/lib/macro.debug_assert_program_args_stdout_gt_expr.html +++ b/doc/lib/macro.debug_assert_program_args_stdout_gt_expr.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stdout_gt_expr in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_gt_expr {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stdout_gt_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_gt_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stdout string is greater than an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stdout_gt_expr, diff --git a/doc/lib/macro.debug_assert_program_args_stdout_is_match.html b/doc/lib/macro.debug_assert_program_args_stdout_is_match.html index 8bb8940c3..1ecc26d48 100644 --- a/doc/lib/macro.debug_assert_program_args_stdout_is_match.html +++ b/doc/lib/macro.debug_assert_program_args_stdout_is_match.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stdout_is_match in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_is_match {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stdout_is_match in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_is_match {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stdout string is a match to a regex.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stdout_is_match, diff --git a/doc/lib/macro.debug_assert_program_args_stdout_le.html b/doc/lib/macro.debug_assert_program_args_stdout_le.html index 6a352863d..5588684f1 100644 --- a/doc/lib/macro.debug_assert_program_args_stdout_le.html +++ b/doc/lib/macro.debug_assert_program_args_stdout_le.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stdout_le in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_program_args_stdout_le

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_le {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stdout_le in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_program_args_stdout_le

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_le {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stdout string is less than or equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stdout_le, diff --git a/doc/lib/macro.debug_assert_program_args_stdout_le_expr.html b/doc/lib/macro.debug_assert_program_args_stdout_le_expr.html index 734135b34..9241cebe6 100644 --- a/doc/lib/macro.debug_assert_program_args_stdout_le_expr.html +++ b/doc/lib/macro.debug_assert_program_args_stdout_le_expr.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stdout_le_expr in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_le_expr {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stdout_le_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_le_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stdout string is less than or equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stdout_le_expr, diff --git a/doc/lib/macro.debug_assert_program_args_stdout_lt.html b/doc/lib/macro.debug_assert_program_args_stdout_lt.html index b6cfddb5c..d31b4b014 100644 --- a/doc/lib/macro.debug_assert_program_args_stdout_lt.html +++ b/doc/lib/macro.debug_assert_program_args_stdout_lt.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stdout_lt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_program_args_stdout_lt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_lt {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stdout_lt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_program_args_stdout_lt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_lt {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stdout string is less than another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stdout_lt, diff --git a/doc/lib/macro.debug_assert_program_args_stdout_lt_expr.html b/doc/lib/macro.debug_assert_program_args_stdout_lt_expr.html index 3ac428259..621612ef3 100644 --- a/doc/lib/macro.debug_assert_program_args_stdout_lt_expr.html +++ b/doc/lib/macro.debug_assert_program_args_stdout_lt_expr.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stdout_lt_expr in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_lt_expr {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stdout_lt_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_lt_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stdout string is less than an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stdout_lt_expr, diff --git a/doc/lib/macro.debug_assert_program_args_stdout_ne.html b/doc/lib/macro.debug_assert_program_args_stdout_ne.html index 41f411d04..847d7df92 100644 --- a/doc/lib/macro.debug_assert_program_args_stdout_ne.html +++ b/doc/lib/macro.debug_assert_program_args_stdout_ne.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stdout_ne in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_program_args_stdout_ne

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_ne {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stdout_ne in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_program_args_stdout_ne

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_ne {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stdout string is not equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stdout_ne, diff --git a/doc/lib/macro.debug_assert_program_args_stdout_ne_expr.html b/doc/lib/macro.debug_assert_program_args_stdout_ne_expr.html index 2ca4a0d1e..4477ed1d3 100644 --- a/doc/lib/macro.debug_assert_program_args_stdout_ne_expr.html +++ b/doc/lib/macro.debug_assert_program_args_stdout_ne_expr.html @@ -1,4 +1,4 @@ -debug_assert_program_args_stdout_ne_expr in lib - Rust

                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_ne_expr {
                                                                                                                                                                                                                                                  +debug_assert_program_args_stdout_ne_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_program_args_stdout_ne_expr {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a command (built with program and args) stdout string is not equal to an expression.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_program_args_stdout_ne_expr, diff --git a/doc/lib/macro.debug_assert_result_err!.html b/doc/lib/macro.debug_assert_result_err!.html new file mode 100644 index 000000000..e0fdfcae1 --- /dev/null +++ b/doc/lib/macro.debug_assert_result_err!.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

                                                                                                                                                                                                                                                  Redirecting to macro.debug_assert_result_err.html...

                                                                                                                                                                                                                                                  + + + \ No newline at end of file diff --git a/doc/lib/macro.debug_assert_result_err.html b/doc/lib/macro.debug_assert_result_err.html new file mode 100644 index 000000000..09f85d6e6 --- /dev/null +++ b/doc/lib/macro.debug_assert_result_err.html @@ -0,0 +1,25 @@ +debug_assert_result_err in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_result_err

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_result_err {
                                                                                                                                                                                                                                                  +    ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert expression.is_err() is true.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_result_err, +except this macro’s statements are only enabled in non-optimized +builds by default. An optimized build will not execute this macro’s +statements unless -C debug-assertions is passed to the compiler.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  This macro is useful for checks that are too expensive to be present +in a release build but may be helpful during development.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  The result of expanding this macro is always type checked.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  An unchecked assertion allows a program in an inconsistent state to +keep running, which might have unexpected consequences but does not +introduce unsafety as long as this only happens in safe code. The +performance cost of assertions, however, is not measurable in general. +Replacing assert*! with debug_assert*! is thus only encouraged +after thorough profiling, and more importantly, only in safe code!

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  This macro is intended to work in a similar way to +std::debug_assert.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  §Module macros

                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/lib/macro.debug_assert_result_ok!.html b/doc/lib/macro.debug_assert_result_ok!.html new file mode 100644 index 000000000..43a9fc270 --- /dev/null +++ b/doc/lib/macro.debug_assert_result_ok!.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

                                                                                                                                                                                                                                                  Redirecting to macro.debug_assert_result_ok.html...

                                                                                                                                                                                                                                                  + + + \ No newline at end of file diff --git a/doc/lib/macro.debug_assert_result_ok.html b/doc/lib/macro.debug_assert_result_ok.html new file mode 100644 index 000000000..5a2418a37 --- /dev/null +++ b/doc/lib/macro.debug_assert_result_ok.html @@ -0,0 +1,25 @@ +debug_assert_result_ok in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_result_ok

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_result_ok {
                                                                                                                                                                                                                                                  +    ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert expression.is_ok() is true.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_result_ok, +except this macro’s statements are only enabled in non-optimized +builds by default. An optimized build will not execute this macro’s +statements unless -C debug-assertions is passed to the compiler.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  This macro is useful for checks that are too expensive to be present +in a release build but may be helpful during development.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  The result of expanding this macro is always type checked.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  An unchecked assertion allows a program in an inconsistent state to +keep running, which might have unexpected consequences but does not +introduce unsafety as long as this only happens in safe code. The +performance cost of assertions, however, is not measurable in general. +Replacing assert*! with debug_assert*! is thus only encouraged +after thorough profiling, and more importantly, only in safe code!

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  This macro is intended to work in a similar way to +std::debug_assert.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  §Module macros

                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/lib/macro.debug_assert_set_disjoint.html b/doc/lib/macro.debug_assert_set_disjoint.html index 84f02e102..148b0c1a4 100644 --- a/doc/lib/macro.debug_assert_set_disjoint.html +++ b/doc/lib/macro.debug_assert_set_disjoint.html @@ -1,4 +1,4 @@ -debug_assert_set_disjoint in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_set_disjoint

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_set_disjoint {
                                                                                                                                                                                                                                                  +debug_assert_set_disjoint in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_set_disjoint

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_set_disjoint {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a set is disjoint with another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_set_disjoint, diff --git a/doc/lib/macro.debug_assert_set_eq.html b/doc/lib/macro.debug_assert_set_eq.html index 7fe65614e..4a41426c0 100644 --- a/doc/lib/macro.debug_assert_set_eq.html +++ b/doc/lib/macro.debug_assert_set_eq.html @@ -1,4 +1,4 @@ -debug_assert_set_eq in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_set_eq

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_set_eq {
                                                                                                                                                                                                                                                  +debug_assert_set_eq in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_set_eq

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_set_eq {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a set is equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_set_eq, diff --git a/doc/lib/macro.debug_assert_set_joint.html b/doc/lib/macro.debug_assert_set_joint.html index 9daa6dcfe..0e4a609a1 100644 --- a/doc/lib/macro.debug_assert_set_joint.html +++ b/doc/lib/macro.debug_assert_set_joint.html @@ -1,4 +1,4 @@ -debug_assert_set_joint in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_set_joint

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_set_joint {
                                                                                                                                                                                                                                                  +debug_assert_set_joint in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_set_joint

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_set_joint {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a set is joint with another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_set_joint, diff --git a/doc/lib/macro.debug_assert_set_ne.html b/doc/lib/macro.debug_assert_set_ne.html index e9cef2d66..698e515e2 100644 --- a/doc/lib/macro.debug_assert_set_ne.html +++ b/doc/lib/macro.debug_assert_set_ne.html @@ -1,4 +1,4 @@ -debug_assert_set_ne in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_set_ne

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_set_ne {
                                                                                                                                                                                                                                                  +debug_assert_set_ne in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_set_ne

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_set_ne {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a set is not equal to another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_set_ne, diff --git a/doc/lib/macro.debug_assert_set_subset.html b/doc/lib/macro.debug_assert_set_subset.html index 794e719de..112dbf24d 100644 --- a/doc/lib/macro.debug_assert_set_subset.html +++ b/doc/lib/macro.debug_assert_set_subset.html @@ -1,4 +1,4 @@ -debug_assert_set_subset in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_set_subset

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_set_subset {
                                                                                                                                                                                                                                                  +debug_assert_set_subset in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_set_subset

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_set_subset {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a set is a subset of another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_set_subset, diff --git a/doc/lib/macro.debug_assert_set_superset.html b/doc/lib/macro.debug_assert_set_superset.html index ac9b0b147..d487598c5 100644 --- a/doc/lib/macro.debug_assert_set_superset.html +++ b/doc/lib/macro.debug_assert_set_superset.html @@ -1,4 +1,4 @@ -debug_assert_set_superset in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_set_superset

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_set_superset {
                                                                                                                                                                                                                                                  +debug_assert_set_superset in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_set_superset

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_set_superset {
                                                                                                                                                                                                                                                       ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a set is a superset of another.

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_set_superset, diff --git a/doc/lib/macro.debug_assert_zzz!.html b/doc/lib/macro.debug_assert_zzz!.html deleted file mode 100644 index 0a0cdfe71..000000000 --- a/doc/lib/macro.debug_assert_zzz!.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Redirection - - -

                                                                                                                                                                                                                                                  Redirecting to macro.debug_assert_zzz.html...

                                                                                                                                                                                                                                                  - - - \ No newline at end of file diff --git a/doc/lib/macro.debug_assert_zzz.html b/doc/lib/macro.debug_assert_zzz.html deleted file mode 100644 index 3d5873931..000000000 --- a/doc/lib/macro.debug_assert_zzz.html +++ /dev/null @@ -1,25 +0,0 @@ -debug_assert_zzz in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_zzz

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_zzz {
                                                                                                                                                                                                                                                  -    ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert zzz.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_zzz, -except this macro’s statements are only enabled in non-optimized -builds by default. An optimized build will not execute this macro’s -statements unless -C debug-assertions is passed to the compiler.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is useful for checks that are too expensive to be present -in a release build but may be helpful during development.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  The result of expanding this macro is always type checked.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  An unchecked assertion allows a program in an inconsistent state to -keep running, which might have unexpected consequences but does not -introduce unsafety as long as this only happens in safe code. The -performance cost of assertions, however, is not measurable in general. -Replacing assert*! with debug_assert*! is thus only encouraged -after thorough profiling, and more importantly, only in safe code!

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is intended to work in a similar way to -std::debug_assert.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  §Module macros

                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_contains!.html b/doc/lib/macro.debug_read_to_string_contains!.html deleted file mode 100644 index b407ff830..000000000 --- a/doc/lib/macro.debug_read_to_string_contains!.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Redirection - - -

                                                                                                                                                                                                                                                  Redirecting to macro.debug_assert_fs_read_to_string_contains.html...

                                                                                                                                                                                                                                                  - - - \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_contains.html b/doc/lib/macro.debug_read_to_string_contains.html deleted file mode 100644 index fb3a1cdff..000000000 --- a/doc/lib/macro.debug_read_to_string_contains.html +++ /dev/null @@ -1,25 +0,0 @@ -debug_assert_fs_read_to_string_contains in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_contains {
                                                                                                                                                                                                                                                  -    ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() contains a pattern.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_contains, -except this macro’s statements are only enabled in non-optimized -builds by default. An optimized build will not execute this macro’s -statements unless -C debug-assertions is passed to the compiler.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is useful for checks that are too expensive to be present -in a release build but may be helpful during development.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  The result of expanding this macro is always type checked.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  An unchecked assertion allows a program in an inconsistent state to -keep running, which might have unexpected consequences but does not -introduce unsafety as long as this only happens in safe code. The -performance cost of assertions, however, is not measurable in general. -Replacing assert*! with debug_assert*! is thus only encouraged -after thorough profiling, and more importantly, only in safe code!

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is intended to work in a similar way to -std::debug_assert.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  §Module macros

                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_eq!.html b/doc/lib/macro.debug_read_to_string_eq!.html deleted file mode 100644 index 5c91e68ad..000000000 --- a/doc/lib/macro.debug_read_to_string_eq!.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Redirection - - -

                                                                                                                                                                                                                                                  Redirecting to macro.debug_assert_fs_read_to_string_eq.html...

                                                                                                                                                                                                                                                  - - - \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_eq.html b/doc/lib/macro.debug_read_to_string_eq.html deleted file mode 100644 index c039d45e7..000000000 --- a/doc/lib/macro.debug_read_to_string_eq.html +++ /dev/null @@ -1,25 +0,0 @@ -debug_assert_fs_read_to_string_eq in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fs_read_to_string_eq

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_eq {
                                                                                                                                                                                                                                                  -    ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() value is equal to another.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_eq, -except this macro’s statements are only enabled in non-optimized -builds by default. An optimized build will not execute this macro’s -statements unless -C debug-assertions is passed to the compiler.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is useful for checks that are too expensive to be present -in a release build but may be helpful during development.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  The result of expanding this macro is always type checked.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  An unchecked assertion allows a program in an inconsistent state to -keep running, which might have unexpected consequences but does not -introduce unsafety as long as this only happens in safe code. The -performance cost of assertions, however, is not measurable in general. -Replacing assert*! with debug_assert*! is thus only encouraged -after thorough profiling, and more importantly, only in safe code!

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is intended to work in a similar way to -std::debug_assert.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  §Module macros

                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_eq_expr!.html b/doc/lib/macro.debug_read_to_string_eq_expr!.html deleted file mode 100644 index 935862d51..000000000 --- a/doc/lib/macro.debug_read_to_string_eq_expr!.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Redirection - - -

                                                                                                                                                                                                                                                  Redirecting to macro.debug_assert_fs_read_to_string_eq_expr.html...

                                                                                                                                                                                                                                                  - - - \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_eq_expr.html b/doc/lib/macro.debug_read_to_string_eq_expr.html deleted file mode 100644 index 96d1f9e61..000000000 --- a/doc/lib/macro.debug_read_to_string_eq_expr.html +++ /dev/null @@ -1,25 +0,0 @@ -debug_assert_fs_read_to_string_eq_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_eq_expr {
                                                                                                                                                                                                                                                  -    ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() value is equal to an expression.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_eq_expr, -except this macro’s statements are only enabled in non-optimized -builds by default. An optimized build will not execute this macro’s -statements unless -C debug-assertions is passed to the compiler.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is useful for checks that are too expensive to be present -in a release build but may be helpful during development.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  The result of expanding this macro is always type checked.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  An unchecked assertion allows a program in an inconsistent state to -keep running, which might have unexpected consequences but does not -introduce unsafety as long as this only happens in safe code. The -performance cost of assertions, however, is not measurable in general. -Replacing assert*! with debug_assert*! is thus only encouraged -after thorough profiling, and more importantly, only in safe code!

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is intended to work in a similar way to -std::debug_assert.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  §Module macros

                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_ge!.html b/doc/lib/macro.debug_read_to_string_ge!.html deleted file mode 100644 index 659e5161a..000000000 --- a/doc/lib/macro.debug_read_to_string_ge!.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Redirection - - -

                                                                                                                                                                                                                                                  Redirecting to macro.debug_assert_fs_read_to_string_ge.html...

                                                                                                                                                                                                                                                  - - - \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_ge.html b/doc/lib/macro.debug_read_to_string_ge.html deleted file mode 100644 index c8d43fffc..000000000 --- a/doc/lib/macro.debug_read_to_string_ge.html +++ /dev/null @@ -1,25 +0,0 @@ -debug_assert_fs_read_to_string_ge in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fs_read_to_string_ge

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_ge {
                                                                                                                                                                                                                                                  -    ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() value is greater than or equal to another.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_ge, -except this macro’s statements are only enabled in non-optimized -builds by default. An optimized build will not execute this macro’s -statements unless -C debug-assertions is passed to the compiler.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is useful for checks that are too expensive to be present -in a release build but may be helpful during development.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  The result of expanding this macro is always type checked.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  An unchecked assertion allows a program in an inconsistent state to -keep running, which might have unexpected consequences but does not -introduce unsafety as long as this only happens in safe code. The -performance cost of assertions, however, is not measurable in general. -Replacing assert*! with debug_assert*! is thus only encouraged -after thorough profiling, and more importantly, only in safe code!

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is intended to work in a similar way to -std::debug_assert.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  §Module macros

                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_ge_expr!.html b/doc/lib/macro.debug_read_to_string_ge_expr!.html deleted file mode 100644 index e4ff0afbc..000000000 --- a/doc/lib/macro.debug_read_to_string_ge_expr!.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Redirection - - -

                                                                                                                                                                                                                                                  Redirecting to macro.debug_assert_fs_read_to_string_ge_expr.html...

                                                                                                                                                                                                                                                  - - - \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_ge_expr.html b/doc/lib/macro.debug_read_to_string_ge_expr.html deleted file mode 100644 index 6e447ed2b..000000000 --- a/doc/lib/macro.debug_read_to_string_ge_expr.html +++ /dev/null @@ -1,25 +0,0 @@ -debug_assert_fs_read_to_string_ge_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_ge_expr {
                                                                                                                                                                                                                                                  -    ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert zzz.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_ge_expr, -except this macro’s statements are only enabled in non-optimized -builds by default. An optimized build will not execute this macro’s -statements unless -C debug-assertions is passed to the compiler.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is useful for checks that are too expensive to be present -in a release build but may be helpful during development.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  The result of expanding this macro is always type checked.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  An unchecked assertion allows a program in an inconsistent state to -keep running, which might have unexpected consequences but does not -introduce unsafety as long as this only happens in safe code. The -performance cost of assertions, however, is not measurable in general. -Replacing assert*! with debug_assert*! is thus only encouraged -after thorough profiling, and more importantly, only in safe code!

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is intended to work in a similar way to -std::debug_assert.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  §Module macros

                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_gt!.html b/doc/lib/macro.debug_read_to_string_gt!.html deleted file mode 100644 index a11e9900f..000000000 --- a/doc/lib/macro.debug_read_to_string_gt!.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Redirection - - -

                                                                                                                                                                                                                                                  Redirecting to macro.debug_assert_fs_read_to_string_gt.html...

                                                                                                                                                                                                                                                  - - - \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_gt.html b/doc/lib/macro.debug_read_to_string_gt.html deleted file mode 100644 index 2d31b36cc..000000000 --- a/doc/lib/macro.debug_read_to_string_gt.html +++ /dev/null @@ -1,25 +0,0 @@ -debug_assert_fs_read_to_string_gt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fs_read_to_string_gt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_gt {
                                                                                                                                                                                                                                                  -    ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() value is greater than another.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_gt, -except this macro’s statements are only enabled in non-optimized -builds by default. An optimized build will not execute this macro’s -statements unless -C debug-assertions is passed to the compiler.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is useful for checks that are too expensive to be present -in a release build but may be helpful during development.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  The result of expanding this macro is always type checked.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  An unchecked assertion allows a program in an inconsistent state to -keep running, which might have unexpected consequences but does not -introduce unsafety as long as this only happens in safe code. The -performance cost of assertions, however, is not measurable in general. -Replacing assert*! with debug_assert*! is thus only encouraged -after thorough profiling, and more importantly, only in safe code!

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is intended to work in a similar way to -std::debug_assert.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  §Module macros

                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_gt_expr!.html b/doc/lib/macro.debug_read_to_string_gt_expr!.html deleted file mode 100644 index 592d09149..000000000 --- a/doc/lib/macro.debug_read_to_string_gt_expr!.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Redirection - - -

                                                                                                                                                                                                                                                  Redirecting to macro.debug_assert_fs_read_to_string_gt_expr.html...

                                                                                                                                                                                                                                                  - - - \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_gt_expr.html b/doc/lib/macro.debug_read_to_string_gt_expr.html deleted file mode 100644 index 45217fbfe..000000000 --- a/doc/lib/macro.debug_read_to_string_gt_expr.html +++ /dev/null @@ -1,25 +0,0 @@ -debug_assert_fs_read_to_string_gt_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_gt_expr {
                                                                                                                                                                                                                                                  -    ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() value is greater than an expression.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_gt_expr, -except this macro’s statements are only enabled in non-optimized -builds by default. An optimized build will not execute this macro’s -statements unless -C debug-assertions is passed to the compiler.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is useful for checks that are too expensive to be present -in a release build but may be helpful during development.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  The result of expanding this macro is always type checked.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  An unchecked assertion allows a program in an inconsistent state to -keep running, which might have unexpected consequences but does not -introduce unsafety as long as this only happens in safe code. The -performance cost of assertions, however, is not measurable in general. -Replacing assert*! with debug_assert*! is thus only encouraged -after thorough profiling, and more importantly, only in safe code!

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is intended to work in a similar way to -std::debug_assert.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  §Module macros

                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_le!.html b/doc/lib/macro.debug_read_to_string_le!.html deleted file mode 100644 index b8c1cfb47..000000000 --- a/doc/lib/macro.debug_read_to_string_le!.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Redirection - - -

                                                                                                                                                                                                                                                  Redirecting to macro.debug_assert_fs_read_to_string_le.html...

                                                                                                                                                                                                                                                  - - - \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_le.html b/doc/lib/macro.debug_read_to_string_le.html deleted file mode 100644 index 2c8212da5..000000000 --- a/doc/lib/macro.debug_read_to_string_le.html +++ /dev/null @@ -1,25 +0,0 @@ -debug_assert_fs_read_to_string_le in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fs_read_to_string_le

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_le {
                                                                                                                                                                                                                                                  -    ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() value is less than or equal to another.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_le, -except this macro’s statements are only enabled in non-optimized -builds by default. An optimized build will not execute this macro’s -statements unless -C debug-assertions is passed to the compiler.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is useful for checks that are too expensive to be present -in a release build but may be helpful during development.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  The result of expanding this macro is always type checked.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  An unchecked assertion allows a program in an inconsistent state to -keep running, which might have unexpected consequences but does not -introduce unsafety as long as this only happens in safe code. The -performance cost of assertions, however, is not measurable in general. -Replacing assert*! with debug_assert*! is thus only encouraged -after thorough profiling, and more importantly, only in safe code!

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is intended to work in a similar way to -std::debug_assert.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  §Module macros

                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_le_expr!.html b/doc/lib/macro.debug_read_to_string_le_expr!.html deleted file mode 100644 index 1c65c5e56..000000000 --- a/doc/lib/macro.debug_read_to_string_le_expr!.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Redirection - - -

                                                                                                                                                                                                                                                  Redirecting to macro.debug_assert_fs_read_to_string_le_expr.html...

                                                                                                                                                                                                                                                  - - - \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_le_expr.html b/doc/lib/macro.debug_read_to_string_le_expr.html deleted file mode 100644 index c0d5c75f0..000000000 --- a/doc/lib/macro.debug_read_to_string_le_expr.html +++ /dev/null @@ -1,25 +0,0 @@ -debug_assert_fs_read_to_string_le_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_le_expr {
                                                                                                                                                                                                                                                  -    ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() value is less than or equal to an expression.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_le_expr, -except this macro’s statements are only enabled in non-optimized -builds by default. An optimized build will not execute this macro’s -statements unless -C debug-assertions is passed to the compiler.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is useful for checks that are too expensive to be present -in a release build but may be helpful during development.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  The result of expanding this macro is always type checked.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  An unchecked assertion allows a program in an inconsistent state to -keep running, which might have unexpected consequences but does not -introduce unsafety as long as this only happens in safe code. The -performance cost of assertions, however, is not measurable in general. -Replacing assert*! with debug_assert*! is thus only encouraged -after thorough profiling, and more importantly, only in safe code!

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is intended to work in a similar way to -std::debug_assert.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  §Module macros

                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_lt!.html b/doc/lib/macro.debug_read_to_string_lt!.html deleted file mode 100644 index c5a6acdd1..000000000 --- a/doc/lib/macro.debug_read_to_string_lt!.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Redirection - - -

                                                                                                                                                                                                                                                  Redirecting to macro.debug_assert_fs_read_to_string_lt.html...

                                                                                                                                                                                                                                                  - - - \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_lt.html b/doc/lib/macro.debug_read_to_string_lt.html deleted file mode 100644 index 292a35ab6..000000000 --- a/doc/lib/macro.debug_read_to_string_lt.html +++ /dev/null @@ -1,25 +0,0 @@ -debug_assert_fs_read_to_string_lt in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fs_read_to_string_lt

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_lt {
                                                                                                                                                                                                                                                  -    ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() value is less than another.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_lt, -except this macro’s statements are only enabled in non-optimized -builds by default. An optimized build will not execute this macro’s -statements unless -C debug-assertions is passed to the compiler.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is useful for checks that are too expensive to be present -in a release build but may be helpful during development.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  The result of expanding this macro is always type checked.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  An unchecked assertion allows a program in an inconsistent state to -keep running, which might have unexpected consequences but does not -introduce unsafety as long as this only happens in safe code. The -performance cost of assertions, however, is not measurable in general. -Replacing assert*! with debug_assert*! is thus only encouraged -after thorough profiling, and more importantly, only in safe code!

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is intended to work in a similar way to -std::debug_assert.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  §Module macros

                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_lt_expr!.html b/doc/lib/macro.debug_read_to_string_lt_expr!.html deleted file mode 100644 index 881e9938f..000000000 --- a/doc/lib/macro.debug_read_to_string_lt_expr!.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Redirection - - -

                                                                                                                                                                                                                                                  Redirecting to macro.debug_assert_fs_read_to_string_lt_expr.html...

                                                                                                                                                                                                                                                  - - - \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_lt_expr.html b/doc/lib/macro.debug_read_to_string_lt_expr.html deleted file mode 100644 index 092a84571..000000000 --- a/doc/lib/macro.debug_read_to_string_lt_expr.html +++ /dev/null @@ -1,25 +0,0 @@ -debug_assert_fs_read_to_string_lt_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_lt_expr {
                                                                                                                                                                                                                                                  -    ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() value is less than an expression.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_lt_expr, -except this macro’s statements are only enabled in non-optimized -builds by default. An optimized build will not execute this macro’s -statements unless -C debug-assertions is passed to the compiler.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is useful for checks that are too expensive to be present -in a release build but may be helpful during development.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  The result of expanding this macro is always type checked.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  An unchecked assertion allows a program in an inconsistent state to -keep running, which might have unexpected consequences but does not -introduce unsafety as long as this only happens in safe code. The -performance cost of assertions, however, is not measurable in general. -Replacing assert*! with debug_assert*! is thus only encouraged -after thorough profiling, and more importantly, only in safe code!

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is intended to work in a similar way to -std::debug_assert.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  §Module macros

                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_matches!.html b/doc/lib/macro.debug_read_to_string_matches!.html deleted file mode 100644 index 6dda63d5c..000000000 --- a/doc/lib/macro.debug_read_to_string_matches!.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Redirection - - -

                                                                                                                                                                                                                                                  Redirecting to macro.debug_assert_fs_read_to_string_matches.html...

                                                                                                                                                                                                                                                  - - - \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_matches.html b/doc/lib/macro.debug_read_to_string_matches.html deleted file mode 100644 index 392d29f3d..000000000 --- a/doc/lib/macro.debug_read_to_string_matches.html +++ /dev/null @@ -1,25 +0,0 @@ -debug_assert_fs_read_to_string_matches in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_matches {
                                                                                                                                                                                                                                                  -    ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() is a match to a regex.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_matches, -except this macro’s statements are only enabled in non-optimized -builds by default. An optimized build will not execute this macro’s -statements unless -C debug-assertions is passed to the compiler.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is useful for checks that are too expensive to be present -in a release build but may be helpful during development.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  The result of expanding this macro is always type checked.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  An unchecked assertion allows a program in an inconsistent state to -keep running, which might have unexpected consequences but does not -introduce unsafety as long as this only happens in safe code. The -performance cost of assertions, however, is not measurable in general. -Replacing assert*! with debug_assert*! is thus only encouraged -after thorough profiling, and more importantly, only in safe code!

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is intended to work in a similar way to -std::debug_assert.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  §Module macros

                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_ne!.html b/doc/lib/macro.debug_read_to_string_ne!.html deleted file mode 100644 index 479fd787b..000000000 --- a/doc/lib/macro.debug_read_to_string_ne!.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Redirection - - -

                                                                                                                                                                                                                                                  Redirecting to macro.debug_assert_fs_read_to_string_ne.html...

                                                                                                                                                                                                                                                  - - - \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_ne.html b/doc/lib/macro.debug_read_to_string_ne.html deleted file mode 100644 index e5fb0514e..000000000 --- a/doc/lib/macro.debug_read_to_string_ne.html +++ /dev/null @@ -1,25 +0,0 @@ -debug_assert_fs_read_to_string_ne in lib - Rust

                                                                                                                                                                                                                                                  Macro lib::debug_assert_fs_read_to_string_ne

                                                                                                                                                                                                                                                  source ·
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_ne {
                                                                                                                                                                                                                                                  -    ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() is not equal to another.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_ne, -except this macro’s statements are only enabled in non-optimized -builds by default. An optimized build will not execute this macro’s -statements unless -C debug-assertions is passed to the compiler.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is useful for checks that are too expensive to be present -in a release build but may be helpful during development.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  The result of expanding this macro is always type checked.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  An unchecked assertion allows a program in an inconsistent state to -keep running, which might have unexpected consequences but does not -introduce unsafety as long as this only happens in safe code. The -performance cost of assertions, however, is not measurable in general. -Replacing assert*! with debug_assert*! is thus only encouraged -after thorough profiling, and more importantly, only in safe code!

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is intended to work in a similar way to -std::debug_assert.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  §Module macros

                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_ne_expr!.html b/doc/lib/macro.debug_read_to_string_ne_expr!.html deleted file mode 100644 index 18c818a76..000000000 --- a/doc/lib/macro.debug_read_to_string_ne_expr!.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Redirection - - -

                                                                                                                                                                                                                                                  Redirecting to macro.debug_assert_fs_read_to_string_ne_expr.html...

                                                                                                                                                                                                                                                  - - - \ No newline at end of file diff --git a/doc/lib/macro.debug_read_to_string_ne_expr.html b/doc/lib/macro.debug_read_to_string_ne_expr.html deleted file mode 100644 index a2b4100af..000000000 --- a/doc/lib/macro.debug_read_to_string_ne_expr.html +++ /dev/null @@ -1,25 +0,0 @@ -debug_assert_fs_read_to_string_ne_expr in lib - Rust
                                                                                                                                                                                                                                                  macro_rules! debug_assert_fs_read_to_string_ne_expr {
                                                                                                                                                                                                                                                  -    ($($arg:tt)*) => { ... };
                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                  Expand description

                                                                                                                                                                                                                                                  Assert a std::fs::read_to_string() is not equal to an expression.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro provides the same statements as assert_fs_read_to_string_ne_expr, -except this macro’s statements are only enabled in non-optimized -builds by default. An optimized build will not execute this macro’s -statements unless -C debug-assertions is passed to the compiler.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is useful for checks that are too expensive to be present -in a release build but may be helpful during development.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  The result of expanding this macro is always type checked.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  An unchecked assertion allows a program in an inconsistent state to -keep running, which might have unexpected consequences but does not -introduce unsafety as long as this only happens in safe code. The -performance cost of assertions, however, is not measurable in general. -Replacing assert*! with debug_assert*! is thus only encouraged -after thorough profiling, and more importantly, only in safe code!

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  This macro is intended to work in a similar way to -std::debug_assert.

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  §Module macros

                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/lib/sidebar-items.js b/doc/lib/sidebar-items.js index dd61b2054..d8a7d27cd 100644 --- a/doc/lib/sidebar-items.js +++ b/doc/lib/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"macro":["assert_as_result","assert_bag_eq","assert_bag_eq_as_result","assert_bag_ne","assert_bag_ne_as_result","assert_bag_subbag","assert_bag_subbag_as_result","assert_bag_superbag","assert_bag_superbag_as_result","assert_command_stderr_contains","assert_command_stderr_contains_as_result","assert_command_stderr_eq","assert_command_stderr_eq_as_result","assert_command_stderr_eq_expr","assert_command_stderr_eq_expr_as_result","assert_command_stderr_is_match","assert_command_stderr_is_match_as_result","assert_command_stdout_contains","assert_command_stdout_contains_as_result","assert_command_stdout_eq","assert_command_stdout_eq_as_result","assert_command_stdout_eq_expr","assert_command_stdout_eq_expr_as_result","assert_command_stdout_is_match","assert_command_stdout_is_match_as_result","assert_contains","assert_contains_as_result","assert_ends_with","assert_ends_with_as_result","assert_eq_as_result","assert_fn_eq","assert_fn_eq_as_result","assert_fn_eq_expr","assert_fn_eq_expr_as_result","assert_fn_err_eq","assert_fn_err_eq_as_result","assert_fn_err_eq_expr","assert_fn_err_eq_expr_as_result","assert_fn_err_ge","assert_fn_err_ge_as_result","assert_fn_err_ge_expr","assert_fn_err_ge_expr_as_result","assert_fn_err_gt","assert_fn_err_gt_as_result","assert_fn_err_gt_expr","assert_fn_err_gt_expr_as_result","assert_fn_err_le","assert_fn_err_le_as_result","assert_fn_err_le_expr","assert_fn_err_le_expr_as_result","assert_fn_err_lt","assert_fn_err_lt_as_result","assert_fn_err_lt_expr","assert_fn_err_lt_expr_as_result","assert_fn_err_ne","assert_fn_err_ne_as_result","assert_fn_err_ne_expr","assert_fn_err_ne_expr_as_result","assert_fn_ge","assert_fn_ge_as_result","assert_fn_ge_expr","assert_fn_ge_expr_as_result","assert_fn_gt","assert_fn_gt_as_result","assert_fn_gt_expr","assert_fn_gt_expr_as_result","assert_fn_le","assert_fn_le_as_result","assert_fn_le_expr","assert_fn_le_expr_as_result","assert_fn_lt","assert_fn_lt_as_result","assert_fn_lt_expr","assert_fn_lt_expr_as_result","assert_fn_ne","assert_fn_ne_as_result","assert_fn_ne_expr","assert_fn_ne_expr_as_result","assert_fn_ok_eq","assert_fn_ok_eq_as_result","assert_fn_ok_eq_expr","assert_fn_ok_eq_expr_as_result","assert_fn_ok_ge","assert_fn_ok_ge_as_result","assert_fn_ok_ge_expr","assert_fn_ok_ge_expr_as_result","assert_fn_ok_gt","assert_fn_ok_gt_as_result","assert_fn_ok_gt_expr","assert_fn_ok_gt_expr_as_result","assert_fn_ok_le","assert_fn_ok_le_as_result","assert_fn_ok_le_expr","assert_fn_ok_le_expr_as_result","assert_fn_ok_lt","assert_fn_ok_lt_as_result","assert_fn_ok_lt_expr","assert_fn_ok_lt_expr_as_result","assert_fn_ok_ne","assert_fn_ok_ne_as_result","assert_fn_ok_ne_expr","assert_fn_ok_ne_expr_as_result","assert_fs_read_to_string_contains","assert_fs_read_to_string_contains_as_result","assert_fs_read_to_string_eq","assert_fs_read_to_string_eq_as_result","assert_fs_read_to_string_eq_expr","assert_fs_read_to_string_eq_expr_as_result","assert_fs_read_to_string_ge","assert_fs_read_to_string_ge_as_result","assert_fs_read_to_string_ge_expr","assert_fs_read_to_string_ge_expr_as_result","assert_fs_read_to_string_gt","assert_fs_read_to_string_gt_as_result","assert_fs_read_to_string_gt_expr","assert_fs_read_to_string_gt_expr_as_result","assert_fs_read_to_string_le","assert_fs_read_to_string_le_as_result","assert_fs_read_to_string_le_expr","assert_fs_read_to_string_le_expr_as_result","assert_fs_read_to_string_lt","assert_fs_read_to_string_lt_as_result","assert_fs_read_to_string_lt_expr","assert_fs_read_to_string_lt_expr_as_result","assert_fs_read_to_string_matches","assert_fs_read_to_string_matches_as_result","assert_fs_read_to_string_ne","assert_fs_read_to_string_ne_as_result","assert_fs_read_to_string_ne_expr","assert_fs_read_to_string_ne_expr_as_result","assert_ge","assert_ge_as_result","assert_gt","assert_gt_as_result","assert_in_delta","assert_in_delta_as_result","assert_in_epsilon","assert_in_epsilon_as_result","assert_io_read_to_string_contains","assert_io_read_to_string_contains_as_result","assert_io_read_to_string_eq","assert_io_read_to_string_eq_as_result","assert_io_read_to_string_eq_expr","assert_io_read_to_string_eq_expr_as_result","assert_io_read_to_string_ge","assert_io_read_to_string_ge_as_result","assert_io_read_to_string_ge_expr","assert_io_read_to_string_ge_expr_as_result","assert_io_read_to_string_gt","assert_io_read_to_string_gt_as_result","assert_io_read_to_string_gt_expr","assert_io_read_to_string_gt_expr_as_result","assert_io_read_to_string_le","assert_io_read_to_string_le_as_result","assert_io_read_to_string_le_expr","assert_io_read_to_string_le_expr_as_result","assert_io_read_to_string_lt","assert_io_read_to_string_lt_as_result","assert_io_read_to_string_lt_expr","assert_io_read_to_string_lt_expr_as_result","assert_io_read_to_string_matches","assert_io_read_to_string_matches_as_result","assert_io_read_to_string_ne","assert_io_read_to_string_ne_as_result","assert_io_read_to_string_ne_expr","assert_io_read_to_string_ne_expr_as_result","assert_is_match","assert_is_match_as_result","assert_le","assert_le_as_result","assert_lt","assert_lt_as_result","assert_ne_as_result","assert_not_contains","assert_not_contains_as_result","assert_not_ends_with","assert_not_ends_with_as_result","assert_not_match","assert_not_match_as_result","assert_not_starts_with","assert_not_starts_with_as_result","assert_program_args_stderr_contains","assert_program_args_stderr_contains_as_result","assert_program_args_stderr_eq","assert_program_args_stderr_eq_as_result","assert_program_args_stderr_eq_expr","assert_program_args_stderr_eq_expr_as_result","assert_program_args_stderr_ge","assert_program_args_stderr_ge_as_result","assert_program_args_stderr_ge_expr","assert_program_args_stderr_ge_expr_as_result","assert_program_args_stderr_gt","assert_program_args_stderr_gt_as_result","assert_program_args_stderr_gt_expr","assert_program_args_stderr_gt_expr_as_result","assert_program_args_stderr_is_match","assert_program_args_stderr_is_match_as_result","assert_program_args_stderr_le","assert_program_args_stderr_le_as_result","assert_program_args_stderr_le_expr","assert_program_args_stderr_le_expr_as_result","assert_program_args_stderr_lt","assert_program_args_stderr_lt_as_result","assert_program_args_stderr_lt_expr","assert_program_args_stderr_lt_expr_as_result","assert_program_args_stderr_ne","assert_program_args_stderr_ne_as_result","assert_program_args_stderr_ne_expr","assert_program_args_stderr_ne_expr_as_result","assert_program_args_stdout_contains","assert_program_args_stdout_contains_as_result","assert_program_args_stdout_eq","assert_program_args_stdout_eq_as_result","assert_program_args_stdout_eq_expr","assert_program_args_stdout_eq_expr_as_result","assert_program_args_stdout_ge","assert_program_args_stdout_ge_as_result","assert_program_args_stdout_ge_expr","assert_program_args_stdout_ge_expr_as_result","assert_program_args_stdout_gt","assert_program_args_stdout_gt_as_result","assert_program_args_stdout_gt_expr","assert_program_args_stdout_gt_expr_as_result","assert_program_args_stdout_is_match","assert_program_args_stdout_is_match_as_result","assert_program_args_stdout_le","assert_program_args_stdout_le_as_result","assert_program_args_stdout_le_expr","assert_program_args_stdout_le_expr_as_result","assert_program_args_stdout_lt","assert_program_args_stdout_lt_as_result","assert_program_args_stdout_lt_expr","assert_program_args_stdout_lt_expr_as_result","assert_program_args_stdout_ne","assert_program_args_stdout_ne_as_result","assert_program_args_stdout_ne_expr","assert_program_args_stdout_ne_expr_as_result","assert_set_disjoint","assert_set_disjoint_as_result","assert_set_eq","assert_set_eq_as_result","assert_set_joint","assert_set_joint_as_result","assert_set_ne","assert_set_ne_as_result","assert_set_subset","assert_set_subset_as_result","assert_set_superset","assert_set_superset_as_result","assert_starts_with","assert_starts_with_as_result","debug_assert_bag_eq","debug_assert_bag_ne","debug_assert_bag_subbag","debug_assert_bag_superbag","debug_assert_command_stderr_contains","debug_assert_command_stderr_eq","debug_assert_command_stderr_eq_expr","debug_assert_command_stderr_is_match","debug_assert_command_stdout_contains","debug_assert_command_stdout_eq","debug_assert_command_stdout_eq_expr","debug_assert_command_stdout_is_match","debug_assert_contains","debug_assert_ends_with","debug_assert_fn_eq","debug_assert_fn_eq_expr","debug_assert_fn_err_eq","debug_assert_fn_err_eq_expr","debug_assert_fn_err_ge","debug_assert_fn_err_ge_expr","debug_assert_fn_err_gt","debug_assert_fn_err_gt_expr","debug_assert_fn_err_le","debug_assert_fn_err_le_expr","debug_assert_fn_err_lt","debug_assert_fn_err_lt_expr","debug_assert_fn_err_ne","debug_assert_fn_err_ne_expr","debug_assert_fn_ge","debug_assert_fn_ge_expr","debug_assert_fn_gt","debug_assert_fn_gt_expr","debug_assert_fn_le","debug_assert_fn_le_expr","debug_assert_fn_lt","debug_assert_fn_lt_expr","debug_assert_fn_ne","debug_assert_fn_ne_expr","debug_assert_fn_ok_eq","debug_assert_fn_ok_eq_expr","debug_assert_fn_ok_ge","debug_assert_fn_ok_ge_expr","debug_assert_fn_ok_gt","debug_assert_fn_ok_gt_expr","debug_assert_fn_ok_le","debug_assert_fn_ok_le_expr","debug_assert_fn_ok_lt","debug_assert_fn_ok_lt_expr","debug_assert_fn_ok_ne","debug_assert_fn_ok_ne_expr","debug_assert_fs_read_to_string_contains","debug_assert_fs_read_to_string_eq","debug_assert_fs_read_to_string_eq_expr","debug_assert_fs_read_to_string_ge","debug_assert_fs_read_to_string_ge_expr","debug_assert_fs_read_to_string_gt","debug_assert_fs_read_to_string_gt_expr","debug_assert_fs_read_to_string_le","debug_assert_fs_read_to_string_le_expr","debug_assert_fs_read_to_string_lt","debug_assert_fs_read_to_string_lt_expr","debug_assert_fs_read_to_string_matches","debug_assert_fs_read_to_string_ne","debug_assert_fs_read_to_string_ne_expr","debug_assert_ge","debug_assert_gt","debug_assert_in_delta","debug_assert_in_epsilon","debug_assert_io_read_to_string_contains","debug_assert_io_read_to_string_eq","debug_assert_io_read_to_string_eq_expr","debug_assert_io_read_to_string_ge","debug_assert_io_read_to_string_ge_expr","debug_assert_io_read_to_string_gt","debug_assert_io_read_to_string_gt_expr","debug_assert_io_read_to_string_le","debug_assert_io_read_to_string_le_expr","debug_assert_io_read_to_string_lt","debug_assert_io_read_to_string_lt_expr","debug_assert_io_read_to_string_matches","debug_assert_io_read_to_string_ne","debug_assert_io_read_to_string_ne_expr","debug_assert_is_match","debug_assert_le","debug_assert_lt","debug_assert_not_contains","debug_assert_not_ends_with","debug_assert_not_match","debug_assert_not_starts_with","debug_assert_program_args_stderr_contains","debug_assert_program_args_stderr_eq","debug_assert_program_args_stderr_eq_expr","debug_assert_program_args_stderr_ge","debug_assert_program_args_stderr_ge_expr","debug_assert_program_args_stderr_gt","debug_assert_program_args_stderr_gt_expr","debug_assert_program_args_stderr_is_match","debug_assert_program_args_stderr_le","debug_assert_program_args_stderr_le_expr","debug_assert_program_args_stderr_lt","debug_assert_program_args_stderr_lt_expr","debug_assert_program_args_stderr_ne","debug_assert_program_args_stderr_ne_expr","debug_assert_program_args_stdout_contains","debug_assert_program_args_stdout_eq","debug_assert_program_args_stdout_eq_expr","debug_assert_program_args_stdout_ge","debug_assert_program_args_stdout_ge_expr","debug_assert_program_args_stdout_gt","debug_assert_program_args_stdout_gt_expr","debug_assert_program_args_stdout_is_match","debug_assert_program_args_stdout_le","debug_assert_program_args_stdout_le_expr","debug_assert_program_args_stdout_lt","debug_assert_program_args_stdout_lt_expr","debug_assert_program_args_stdout_ne","debug_assert_program_args_stdout_ne_expr","debug_assert_set_disjoint","debug_assert_set_eq","debug_assert_set_joint","debug_assert_set_ne","debug_assert_set_subset","debug_assert_set_superset","debug_assert_starts_with"],"mod":["assert","assert_bag_eq","assert_bag_ne","assert_bag_subbag","assert_bag_superbag","assert_command_stderr_contains","assert_command_stderr_eq","assert_command_stderr_eq_expr","assert_command_stderr_is_match","assert_command_stdout_contains","assert_command_stdout_eq","assert_command_stdout_eq_expr","assert_command_stdout_is_match","assert_contains","assert_ends_with","assert_eq","assert_fn_eq","assert_fn_eq_expr","assert_fn_err_eq","assert_fn_err_eq_expr","assert_fn_err_ge","assert_fn_err_ge_expr","assert_fn_err_gt","assert_fn_err_gt_expr","assert_fn_err_le","assert_fn_err_le_expr","assert_fn_err_lt","assert_fn_err_lt_expr","assert_fn_err_ne","assert_fn_err_ne_expr","assert_fn_ge","assert_fn_ge_expr","assert_fn_gt","assert_fn_gt_expr","assert_fn_le","assert_fn_le_expr","assert_fn_lt","assert_fn_lt_expr","assert_fn_ne","assert_fn_ne_expr","assert_fn_ok_eq","assert_fn_ok_eq_expr","assert_fn_ok_ge","assert_fn_ok_ge_expr","assert_fn_ok_gt","assert_fn_ok_gt_expr","assert_fn_ok_le","assert_fn_ok_le_expr","assert_fn_ok_lt","assert_fn_ok_lt_expr","assert_fn_ok_ne","assert_fn_ok_ne_expr","assert_fs_read_to_string_contains","assert_fs_read_to_string_eq","assert_fs_read_to_string_eq_expr","assert_fs_read_to_string_ge","assert_fs_read_to_string_ge_expr","assert_fs_read_to_string_gt","assert_fs_read_to_string_gt_expr","assert_fs_read_to_string_le","assert_fs_read_to_string_le_expr","assert_fs_read_to_string_lt","assert_fs_read_to_string_lt_expr","assert_fs_read_to_string_matches","assert_fs_read_to_string_ne","assert_fs_read_to_string_ne_expr","assert_ge","assert_gt","assert_in_delta","assert_in_epsilon","assert_io_read_to_string_contains","assert_io_read_to_string_eq","assert_io_read_to_string_eq_expr","assert_io_read_to_string_ge","assert_io_read_to_string_ge_expr","assert_io_read_to_string_gt","assert_io_read_to_string_gt_expr","assert_io_read_to_string_le","assert_io_read_to_string_le_expr","assert_io_read_to_string_lt","assert_io_read_to_string_lt_expr","assert_io_read_to_string_matches","assert_io_read_to_string_ne","assert_io_read_to_string_ne_expr","assert_is_match","assert_le","assert_lt","assert_ne","assert_not_contains","assert_not_ends_with","assert_not_match","assert_not_starts_with","assert_program_args_stderr_contains","assert_program_args_stderr_eq","assert_program_args_stderr_eq_expr","assert_program_args_stderr_ge","assert_program_args_stderr_ge_expr","assert_program_args_stderr_gt","assert_program_args_stderr_gt_expr","assert_program_args_stderr_is_match","assert_program_args_stderr_le","assert_program_args_stderr_le_expr","assert_program_args_stderr_lt","assert_program_args_stderr_lt_expr","assert_program_args_stderr_ne","assert_program_args_stderr_ne_expr","assert_program_args_stdout_contains","assert_program_args_stdout_eq","assert_program_args_stdout_eq_expr","assert_program_args_stdout_ge","assert_program_args_stdout_ge_expr","assert_program_args_stdout_gt","assert_program_args_stdout_gt_expr","assert_program_args_stdout_is_match","assert_program_args_stdout_le","assert_program_args_stdout_le_expr","assert_program_args_stdout_lt","assert_program_args_stdout_lt_expr","assert_program_args_stdout_ne","assert_program_args_stdout_ne_expr","assert_set_disjoint","assert_set_eq","assert_set_joint","assert_set_ne","assert_set_subset","assert_set_superset","assert_starts_with"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"macro":["assert_as_result","assert_bag_eq","assert_bag_eq_as_result","assert_bag_ne","assert_bag_ne_as_result","assert_bag_subbag","assert_bag_subbag_as_result","assert_bag_superbag","assert_bag_superbag_as_result","assert_command_stderr_contains","assert_command_stderr_contains_as_result","assert_command_stderr_eq","assert_command_stderr_eq_as_result","assert_command_stderr_eq_expr","assert_command_stderr_eq_expr_as_result","assert_command_stderr_is_match","assert_command_stderr_is_match_as_result","assert_command_stdout_contains","assert_command_stdout_contains_as_result","assert_command_stdout_eq","assert_command_stdout_eq_as_result","assert_command_stdout_eq_expr","assert_command_stdout_eq_expr_as_result","assert_command_stdout_is_match","assert_command_stdout_is_match_as_result","assert_contains","assert_contains_as_result","assert_ends_with","assert_ends_with_as_result","assert_eq_as_result","assert_fn_eq","assert_fn_eq_as_result","assert_fn_eq_expr","assert_fn_eq_expr_as_result","assert_fn_err_eq","assert_fn_err_eq_as_result","assert_fn_err_eq_expr","assert_fn_err_eq_expr_as_result","assert_fn_err_ge","assert_fn_err_ge_as_result","assert_fn_err_ge_expr","assert_fn_err_ge_expr_as_result","assert_fn_err_gt","assert_fn_err_gt_as_result","assert_fn_err_gt_expr","assert_fn_err_gt_expr_as_result","assert_fn_err_le","assert_fn_err_le_as_result","assert_fn_err_le_expr","assert_fn_err_le_expr_as_result","assert_fn_err_lt","assert_fn_err_lt_as_result","assert_fn_err_lt_expr","assert_fn_err_lt_expr_as_result","assert_fn_err_ne","assert_fn_err_ne_as_result","assert_fn_err_ne_expr","assert_fn_err_ne_expr_as_result","assert_fn_ge","assert_fn_ge_as_result","assert_fn_ge_expr","assert_fn_ge_expr_as_result","assert_fn_gt","assert_fn_gt_as_result","assert_fn_gt_expr","assert_fn_gt_expr_as_result","assert_fn_le","assert_fn_le_as_result","assert_fn_le_expr","assert_fn_le_expr_as_result","assert_fn_lt","assert_fn_lt_as_result","assert_fn_lt_expr","assert_fn_lt_expr_as_result","assert_fn_ne","assert_fn_ne_as_result","assert_fn_ne_expr","assert_fn_ne_expr_as_result","assert_fn_ok_eq","assert_fn_ok_eq_as_result","assert_fn_ok_eq_expr","assert_fn_ok_eq_expr_as_result","assert_fn_ok_ge","assert_fn_ok_ge_as_result","assert_fn_ok_ge_expr","assert_fn_ok_ge_expr_as_result","assert_fn_ok_gt","assert_fn_ok_gt_as_result","assert_fn_ok_gt_expr","assert_fn_ok_gt_expr_as_result","assert_fn_ok_le","assert_fn_ok_le_as_result","assert_fn_ok_le_expr","assert_fn_ok_le_expr_as_result","assert_fn_ok_lt","assert_fn_ok_lt_as_result","assert_fn_ok_lt_expr","assert_fn_ok_lt_expr_as_result","assert_fn_ok_ne","assert_fn_ok_ne_as_result","assert_fn_ok_ne_expr","assert_fn_ok_ne_expr_as_result","assert_fs_read_to_string_contains","assert_fs_read_to_string_contains_as_result","assert_fs_read_to_string_eq","assert_fs_read_to_string_eq_as_result","assert_fs_read_to_string_eq_expr","assert_fs_read_to_string_eq_expr_as_result","assert_fs_read_to_string_ge","assert_fs_read_to_string_ge_as_result","assert_fs_read_to_string_ge_expr","assert_fs_read_to_string_ge_expr_as_result","assert_fs_read_to_string_gt","assert_fs_read_to_string_gt_as_result","assert_fs_read_to_string_gt_expr","assert_fs_read_to_string_gt_expr_as_result","assert_fs_read_to_string_le","assert_fs_read_to_string_le_as_result","assert_fs_read_to_string_le_expr","assert_fs_read_to_string_le_expr_as_result","assert_fs_read_to_string_lt","assert_fs_read_to_string_lt_as_result","assert_fs_read_to_string_lt_expr","assert_fs_read_to_string_lt_expr_as_result","assert_fs_read_to_string_matches","assert_fs_read_to_string_matches_as_result","assert_fs_read_to_string_ne","assert_fs_read_to_string_ne_as_result","assert_fs_read_to_string_ne_expr","assert_fs_read_to_string_ne_expr_as_result","assert_ge","assert_ge_as_result","assert_gt","assert_gt_as_result","assert_in_delta","assert_in_delta_as_result","assert_in_epsilon","assert_in_epsilon_as_result","assert_infix","assert_infix_as_result","assert_io_read_to_string_contains","assert_io_read_to_string_contains_as_result","assert_io_read_to_string_eq","assert_io_read_to_string_eq_as_result","assert_io_read_to_string_eq_expr","assert_io_read_to_string_eq_expr_as_result","assert_io_read_to_string_ge","assert_io_read_to_string_ge_as_result","assert_io_read_to_string_ge_expr","assert_io_read_to_string_ge_expr_as_result","assert_io_read_to_string_gt","assert_io_read_to_string_gt_as_result","assert_io_read_to_string_gt_expr","assert_io_read_to_string_gt_expr_as_result","assert_io_read_to_string_le","assert_io_read_to_string_le_as_result","assert_io_read_to_string_le_expr","assert_io_read_to_string_le_expr_as_result","assert_io_read_to_string_lt","assert_io_read_to_string_lt_as_result","assert_io_read_to_string_lt_expr","assert_io_read_to_string_lt_expr_as_result","assert_io_read_to_string_matches","assert_io_read_to_string_matches_as_result","assert_io_read_to_string_ne","assert_io_read_to_string_ne_as_result","assert_io_read_to_string_ne_expr","assert_io_read_to_string_ne_expr_as_result","assert_is_match","assert_is_match_as_result","assert_le","assert_le_as_result","assert_lt","assert_lt_as_result","assert_ne_as_result","assert_not_contains","assert_not_contains_as_result","assert_not_ends_with","assert_not_ends_with_as_result","assert_not_match","assert_not_match_as_result","assert_not_starts_with","assert_not_starts_with_as_result","assert_option_none","assert_option_none_as_result","assert_option_some","assert_option_some_as_result","assert_program_args_stderr_contains","assert_program_args_stderr_contains_as_result","assert_program_args_stderr_eq","assert_program_args_stderr_eq_as_result","assert_program_args_stderr_eq_expr","assert_program_args_stderr_eq_expr_as_result","assert_program_args_stderr_ge","assert_program_args_stderr_ge_as_result","assert_program_args_stderr_ge_expr","assert_program_args_stderr_ge_expr_as_result","assert_program_args_stderr_gt","assert_program_args_stderr_gt_as_result","assert_program_args_stderr_gt_expr","assert_program_args_stderr_gt_expr_as_result","assert_program_args_stderr_is_match","assert_program_args_stderr_is_match_as_result","assert_program_args_stderr_le","assert_program_args_stderr_le_as_result","assert_program_args_stderr_le_expr","assert_program_args_stderr_le_expr_as_result","assert_program_args_stderr_lt","assert_program_args_stderr_lt_as_result","assert_program_args_stderr_lt_expr","assert_program_args_stderr_lt_expr_as_result","assert_program_args_stderr_ne","assert_program_args_stderr_ne_as_result","assert_program_args_stderr_ne_expr","assert_program_args_stderr_ne_expr_as_result","assert_program_args_stdout_contains","assert_program_args_stdout_contains_as_result","assert_program_args_stdout_eq","assert_program_args_stdout_eq_as_result","assert_program_args_stdout_eq_expr","assert_program_args_stdout_eq_expr_as_result","assert_program_args_stdout_ge","assert_program_args_stdout_ge_as_result","assert_program_args_stdout_ge_expr","assert_program_args_stdout_ge_expr_as_result","assert_program_args_stdout_gt","assert_program_args_stdout_gt_as_result","assert_program_args_stdout_gt_expr","assert_program_args_stdout_gt_expr_as_result","assert_program_args_stdout_is_match","assert_program_args_stdout_is_match_as_result","assert_program_args_stdout_le","assert_program_args_stdout_le_as_result","assert_program_args_stdout_le_expr","assert_program_args_stdout_le_expr_as_result","assert_program_args_stdout_lt","assert_program_args_stdout_lt_as_result","assert_program_args_stdout_lt_expr","assert_program_args_stdout_lt_expr_as_result","assert_program_args_stdout_ne","assert_program_args_stdout_ne_as_result","assert_program_args_stdout_ne_expr","assert_program_args_stdout_ne_expr_as_result","assert_result_err","assert_result_err_as_result","assert_result_ok","assert_result_ok_as_result","assert_set_disjoint","assert_set_disjoint_as_result","assert_set_eq","assert_set_eq_as_result","assert_set_joint","assert_set_joint_as_result","assert_set_ne","assert_set_ne_as_result","assert_set_subset","assert_set_subset_as_result","assert_set_superset","assert_set_superset_as_result","assert_starts_with","assert_starts_with_as_result","debug_assert_bag_eq","debug_assert_bag_ne","debug_assert_bag_subbag","debug_assert_bag_superbag","debug_assert_command_stderr_contains","debug_assert_command_stderr_eq","debug_assert_command_stderr_eq_expr","debug_assert_command_stderr_is_match","debug_assert_command_stdout_contains","debug_assert_command_stdout_eq","debug_assert_command_stdout_eq_expr","debug_assert_command_stdout_is_match","debug_assert_contains","debug_assert_ends_with","debug_assert_fn_eq","debug_assert_fn_eq_expr","debug_assert_fn_err_eq","debug_assert_fn_err_eq_expr","debug_assert_fn_err_ge","debug_assert_fn_err_ge_expr","debug_assert_fn_err_gt","debug_assert_fn_err_gt_expr","debug_assert_fn_err_le","debug_assert_fn_err_le_expr","debug_assert_fn_err_lt","debug_assert_fn_err_lt_expr","debug_assert_fn_err_ne","debug_assert_fn_err_ne_expr","debug_assert_fn_ge","debug_assert_fn_ge_expr","debug_assert_fn_gt","debug_assert_fn_gt_expr","debug_assert_fn_le","debug_assert_fn_le_expr","debug_assert_fn_lt","debug_assert_fn_lt_expr","debug_assert_fn_ne","debug_assert_fn_ne_expr","debug_assert_fn_ok_eq","debug_assert_fn_ok_eq_expr","debug_assert_fn_ok_ge","debug_assert_fn_ok_ge_expr","debug_assert_fn_ok_gt","debug_assert_fn_ok_gt_expr","debug_assert_fn_ok_le","debug_assert_fn_ok_le_expr","debug_assert_fn_ok_lt","debug_assert_fn_ok_lt_expr","debug_assert_fn_ok_ne","debug_assert_fn_ok_ne_expr","debug_assert_fs_read_to_string_contains","debug_assert_fs_read_to_string_eq","debug_assert_fs_read_to_string_eq_expr","debug_assert_fs_read_to_string_ge","debug_assert_fs_read_to_string_ge_expr","debug_assert_fs_read_to_string_gt","debug_assert_fs_read_to_string_gt_expr","debug_assert_fs_read_to_string_le","debug_assert_fs_read_to_string_le_expr","debug_assert_fs_read_to_string_lt","debug_assert_fs_read_to_string_lt_expr","debug_assert_fs_read_to_string_matches","debug_assert_fs_read_to_string_ne","debug_assert_fs_read_to_string_ne_expr","debug_assert_ge","debug_assert_gt","debug_assert_in_delta","debug_assert_in_epsilon","debug_assert_infix","debug_assert_io_read_to_string_contains","debug_assert_io_read_to_string_eq","debug_assert_io_read_to_string_eq_expr","debug_assert_io_read_to_string_ge","debug_assert_io_read_to_string_ge_expr","debug_assert_io_read_to_string_gt","debug_assert_io_read_to_string_gt_expr","debug_assert_io_read_to_string_le","debug_assert_io_read_to_string_le_expr","debug_assert_io_read_to_string_lt","debug_assert_io_read_to_string_lt_expr","debug_assert_io_read_to_string_matches","debug_assert_io_read_to_string_ne","debug_assert_io_read_to_string_ne_expr","debug_assert_is_match","debug_assert_le","debug_assert_lt","debug_assert_not_contains","debug_assert_not_ends_with","debug_assert_not_match","debug_assert_not_starts_with","debug_assert_option_none","debug_assert_option_some","debug_assert_program_args_stderr_contains","debug_assert_program_args_stderr_eq","debug_assert_program_args_stderr_eq_expr","debug_assert_program_args_stderr_ge","debug_assert_program_args_stderr_ge_expr","debug_assert_program_args_stderr_gt","debug_assert_program_args_stderr_gt_expr","debug_assert_program_args_stderr_is_match","debug_assert_program_args_stderr_le","debug_assert_program_args_stderr_le_expr","debug_assert_program_args_stderr_lt","debug_assert_program_args_stderr_lt_expr","debug_assert_program_args_stderr_ne","debug_assert_program_args_stderr_ne_expr","debug_assert_program_args_stdout_contains","debug_assert_program_args_stdout_eq","debug_assert_program_args_stdout_eq_expr","debug_assert_program_args_stdout_ge","debug_assert_program_args_stdout_ge_expr","debug_assert_program_args_stdout_gt","debug_assert_program_args_stdout_gt_expr","debug_assert_program_args_stdout_is_match","debug_assert_program_args_stdout_le","debug_assert_program_args_stdout_le_expr","debug_assert_program_args_stdout_lt","debug_assert_program_args_stdout_lt_expr","debug_assert_program_args_stdout_ne","debug_assert_program_args_stdout_ne_expr","debug_assert_result_err","debug_assert_result_ok","debug_assert_set_disjoint","debug_assert_set_eq","debug_assert_set_joint","debug_assert_set_ne","debug_assert_set_subset","debug_assert_set_superset","debug_assert_starts_with"],"mod":["assert","assert_bag","assert_command","assert_contains","assert_ends_with","assert_eq","assert_fn","assert_fn_err","assert_fn_ok","assert_fs_read_to_string","assert_ge","assert_gt","assert_in_delta","assert_in_epsilon","assert_infix","assert_io_read_to_string","assert_is_match","assert_le","assert_lt","assert_ne","assert_not_contains","assert_not_ends_with","assert_not_match","assert_not_starts_with","assert_option","assert_program_args","assert_result","assert_set","assert_starts_with"]}; \ No newline at end of file diff --git a/doc/naming.md b/doc/naming.md deleted file mode 100644 index 5dfc96801..000000000 --- a/doc/naming.md +++ /dev/null @@ -1,29 +0,0 @@ -## Naming - -Abbreviations: - -* `eq` ≈ equal - -* `ne` ≈ not equal. - -* `ge` ≈ greater than or equal. - -* `gt` ≈ greater than - -* `le` ≈ less than or equal. - -* `lt` ≈ less than - -Shorthands: - -* `reader` ≈ implements `.read_to_string(…)` such as `std::io::Read`. - -* `matcher` ≈ implements `.is_match(…)` such as `regex::Regex`. - -* `containee` ≈ usable inside `.contains(…)` such as a - `std::string::String` substring. - -* `set` ≈ a collection such as `::std::collections::BTreeSet`. - -* `bag` ≈ a collection such as `::std::collections::BTreeMap` which has - key counts. diff --git a/doc/release.md b/doc/release.md deleted file mode 100644 index 2b17831e6..000000000 --- a/doc/release.md +++ /dev/null @@ -1,20 +0,0 @@ -# Release - -## Setup - -Install cargo tools: - -```sh -cargo install cargo-dist -cargo install cargo-release -``` - -Install GitHub CLI, which we use to build and release with version tags, optimized settings, and binary artifacts. - -Example using macOS and brew package manager: - -```sh -brew install gh -``` - -You may want to look at the file `.github/workflows/release.yml` because it describes the release process. diff --git a/doc/search-index.js b/doc/search-index.js index f0ab49c13..00341bab8 100644 --- a/doc/search-index.js +++ b/doc/search-index.js @@ -1,5 +1,5 @@ var searchIndex = new Map(JSON.parse('[\ -["lib",{"t":"CQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQCQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ","n":["assert","assert_as_result","assert_bag_eq","assert_bag_eq","assert_bag_eq_as_result","assert_bag_ne","assert_bag_ne","assert_bag_ne_as_result","assert_bag_subbag","assert_bag_subbag","assert_bag_subbag_as_result","assert_bag_superbag","assert_bag_superbag","assert_bag_superbag_as_result","assert_command_stderr_contains","assert_command_stderr_contains","assert_command_stderr_contains_as_result","assert_command_stderr_eq","assert_command_stderr_eq","assert_command_stderr_eq_as_result","assert_command_stderr_eq_expr","assert_command_stderr_eq_expr","assert_command_stderr_eq_expr_as_result","assert_command_stderr_is_match","assert_command_stderr_is_match","assert_command_stderr_is_match_as_result","assert_command_stdout_contains","assert_command_stdout_contains","assert_command_stdout_contains_as_result","assert_command_stdout_eq","assert_command_stdout_eq","assert_command_stdout_eq_as_result","assert_command_stdout_eq_expr","assert_command_stdout_eq_expr","assert_command_stdout_eq_expr_as_result","assert_command_stdout_is_match","assert_command_stdout_is_match","assert_command_stdout_is_match_as_result","assert_contains","assert_contains","assert_contains_as_result","assert_ends_with","assert_ends_with","assert_ends_with_as_result","assert_eq","assert_eq_as_result","assert_fn_eq","assert_fn_eq","assert_fn_eq_as_result","assert_fn_eq_expr","assert_fn_eq_expr","assert_fn_eq_expr_as_result","assert_fn_err_eq","assert_fn_err_eq","assert_fn_err_eq_as_result","assert_fn_err_eq_expr","assert_fn_err_eq_expr","assert_fn_err_eq_expr_as_result","assert_fn_err_ge","assert_fn_err_ge","assert_fn_err_ge_as_result","assert_fn_err_ge_expr","assert_fn_err_ge_expr","assert_fn_err_ge_expr_as_result","assert_fn_err_gt","assert_fn_err_gt","assert_fn_err_gt_as_result","assert_fn_err_gt_expr","assert_fn_err_gt_expr","assert_fn_err_gt_expr_as_result","assert_fn_err_le","assert_fn_err_le","assert_fn_err_le_as_result","assert_fn_err_le_expr","assert_fn_err_le_expr","assert_fn_err_le_expr_as_result","assert_fn_err_lt","assert_fn_err_lt","assert_fn_err_lt_as_result","assert_fn_err_lt_expr","assert_fn_err_lt_expr","assert_fn_err_lt_expr_as_result","assert_fn_err_ne","assert_fn_err_ne","assert_fn_err_ne_as_result","assert_fn_err_ne_expr","assert_fn_err_ne_expr","assert_fn_err_ne_expr_as_result","assert_fn_ge","assert_fn_ge","assert_fn_ge_as_result","assert_fn_ge_expr","assert_fn_ge_expr","assert_fn_ge_expr_as_result","assert_fn_gt","assert_fn_gt","assert_fn_gt_as_result","assert_fn_gt_expr","assert_fn_gt_expr","assert_fn_gt_expr_as_result","assert_fn_le","assert_fn_le","assert_fn_le_as_result","assert_fn_le_expr","assert_fn_le_expr","assert_fn_le_expr_as_result","assert_fn_lt","assert_fn_lt","assert_fn_lt_as_result","assert_fn_lt_expr","assert_fn_lt_expr","assert_fn_lt_expr_as_result","assert_fn_ne","assert_fn_ne","assert_fn_ne_as_result","assert_fn_ne_expr","assert_fn_ne_expr","assert_fn_ne_expr_as_result","assert_fn_ok_eq","assert_fn_ok_eq","assert_fn_ok_eq_as_result","assert_fn_ok_eq_expr","assert_fn_ok_eq_expr","assert_fn_ok_eq_expr_as_result","assert_fn_ok_ge","assert_fn_ok_ge","assert_fn_ok_ge_as_result","assert_fn_ok_ge_expr","assert_fn_ok_ge_expr","assert_fn_ok_ge_expr_as_result","assert_fn_ok_gt","assert_fn_ok_gt","assert_fn_ok_gt_as_result","assert_fn_ok_gt_expr","assert_fn_ok_gt_expr","assert_fn_ok_gt_expr_as_result","assert_fn_ok_le","assert_fn_ok_le","assert_fn_ok_le_as_result","assert_fn_ok_le_expr","assert_fn_ok_le_expr","assert_fn_ok_le_expr_as_result","assert_fn_ok_lt","assert_fn_ok_lt","assert_fn_ok_lt_as_result","assert_fn_ok_lt_expr","assert_fn_ok_lt_expr","assert_fn_ok_lt_expr_as_result","assert_fn_ok_ne","assert_fn_ok_ne","assert_fn_ok_ne_as_result","assert_fn_ok_ne_expr","assert_fn_ok_ne_expr","assert_fn_ok_ne_expr_as_result","assert_fs_read_to_string_contains","assert_fs_read_to_string_contains","assert_fs_read_to_string_contains_as_result","assert_fs_read_to_string_eq","assert_fs_read_to_string_eq","assert_fs_read_to_string_eq_as_result","assert_fs_read_to_string_eq_expr","assert_fs_read_to_string_eq_expr","assert_fs_read_to_string_eq_expr_as_result","assert_fs_read_to_string_ge","assert_fs_read_to_string_ge","assert_fs_read_to_string_ge_as_result","assert_fs_read_to_string_ge_expr","assert_fs_read_to_string_ge_expr","assert_fs_read_to_string_ge_expr_as_result","assert_fs_read_to_string_gt","assert_fs_read_to_string_gt","assert_fs_read_to_string_gt_as_result","assert_fs_read_to_string_gt_expr","assert_fs_read_to_string_gt_expr","assert_fs_read_to_string_gt_expr_as_result","assert_fs_read_to_string_le","assert_fs_read_to_string_le","assert_fs_read_to_string_le_as_result","assert_fs_read_to_string_le_expr","assert_fs_read_to_string_le_expr","assert_fs_read_to_string_le_expr_as_result","assert_fs_read_to_string_lt","assert_fs_read_to_string_lt","assert_fs_read_to_string_lt_as_result","assert_fs_read_to_string_lt_expr","assert_fs_read_to_string_lt_expr","assert_fs_read_to_string_lt_expr_as_result","assert_fs_read_to_string_matches","assert_fs_read_to_string_matches","assert_fs_read_to_string_matches_as_result","assert_fs_read_to_string_ne","assert_fs_read_to_string_ne","assert_fs_read_to_string_ne_as_result","assert_fs_read_to_string_ne_expr","assert_fs_read_to_string_ne_expr","assert_fs_read_to_string_ne_expr_as_result","assert_ge","assert_ge","assert_ge_as_result","assert_gt","assert_gt","assert_gt_as_result","assert_in_delta","assert_in_delta","assert_in_delta_as_result","assert_in_epsilon","assert_in_epsilon","assert_in_epsilon_as_result","assert_io_read_to_string_contains","assert_io_read_to_string_contains","assert_io_read_to_string_contains_as_result","assert_io_read_to_string_eq","assert_io_read_to_string_eq","assert_io_read_to_string_eq_as_result","assert_io_read_to_string_eq_expr","assert_io_read_to_string_eq_expr","assert_io_read_to_string_eq_expr_as_result","assert_io_read_to_string_ge","assert_io_read_to_string_ge","assert_io_read_to_string_ge_as_result","assert_io_read_to_string_ge_expr","assert_io_read_to_string_ge_expr","assert_io_read_to_string_ge_expr_as_result","assert_io_read_to_string_gt","assert_io_read_to_string_gt","assert_io_read_to_string_gt_as_result","assert_io_read_to_string_gt_expr","assert_io_read_to_string_gt_expr","assert_io_read_to_string_gt_expr_as_result","assert_io_read_to_string_le","assert_io_read_to_string_le","assert_io_read_to_string_le_as_result","assert_io_read_to_string_le_expr","assert_io_read_to_string_le_expr","assert_io_read_to_string_le_expr_as_result","assert_io_read_to_string_lt","assert_io_read_to_string_lt","assert_io_read_to_string_lt_as_result","assert_io_read_to_string_lt_expr","assert_io_read_to_string_lt_expr","assert_io_read_to_string_lt_expr_as_result","assert_io_read_to_string_matches","assert_io_read_to_string_matches","assert_io_read_to_string_matches_as_result","assert_io_read_to_string_ne","assert_io_read_to_string_ne","assert_io_read_to_string_ne_as_result","assert_io_read_to_string_ne_expr","assert_io_read_to_string_ne_expr","assert_io_read_to_string_ne_expr_as_result","assert_is_match","assert_is_match","assert_is_match_as_result","assert_le","assert_le","assert_le_as_result","assert_lt","assert_lt","assert_lt_as_result","assert_ne","assert_ne_as_result","assert_not_contains","assert_not_contains","assert_not_contains_as_result","assert_not_ends_with","assert_not_ends_with","assert_not_ends_with_as_result","assert_not_match","assert_not_match","assert_not_match_as_result","assert_not_starts_with","assert_not_starts_with","assert_not_starts_with_as_result","assert_program_args_stderr_contains","assert_program_args_stderr_contains","assert_program_args_stderr_contains_as_result","assert_program_args_stderr_eq","assert_program_args_stderr_eq","assert_program_args_stderr_eq_as_result","assert_program_args_stderr_eq_expr","assert_program_args_stderr_eq_expr","assert_program_args_stderr_eq_expr_as_result","assert_program_args_stderr_ge","assert_program_args_stderr_ge","assert_program_args_stderr_ge_as_result","assert_program_args_stderr_ge_expr","assert_program_args_stderr_ge_expr","assert_program_args_stderr_ge_expr_as_result","assert_program_args_stderr_gt","assert_program_args_stderr_gt","assert_program_args_stderr_gt_as_result","assert_program_args_stderr_gt_expr","assert_program_args_stderr_gt_expr","assert_program_args_stderr_gt_expr_as_result","assert_program_args_stderr_is_match","assert_program_args_stderr_is_match","assert_program_args_stderr_is_match_as_result","assert_program_args_stderr_le","assert_program_args_stderr_le","assert_program_args_stderr_le_as_result","assert_program_args_stderr_le_expr","assert_program_args_stderr_le_expr","assert_program_args_stderr_le_expr_as_result","assert_program_args_stderr_lt","assert_program_args_stderr_lt","assert_program_args_stderr_lt_as_result","assert_program_args_stderr_lt_expr","assert_program_args_stderr_lt_expr","assert_program_args_stderr_lt_expr_as_result","assert_program_args_stderr_ne","assert_program_args_stderr_ne","assert_program_args_stderr_ne_as_result","assert_program_args_stderr_ne_expr","assert_program_args_stderr_ne_expr","assert_program_args_stderr_ne_expr_as_result","assert_program_args_stdout_contains","assert_program_args_stdout_contains","assert_program_args_stdout_contains_as_result","assert_program_args_stdout_eq","assert_program_args_stdout_eq","assert_program_args_stdout_eq_as_result","assert_program_args_stdout_eq_expr","assert_program_args_stdout_eq_expr","assert_program_args_stdout_eq_expr_as_result","assert_program_args_stdout_ge","assert_program_args_stdout_ge","assert_program_args_stdout_ge_as_result","assert_program_args_stdout_ge_expr","assert_program_args_stdout_ge_expr","assert_program_args_stdout_ge_expr_as_result","assert_program_args_stdout_gt","assert_program_args_stdout_gt","assert_program_args_stdout_gt_as_result","assert_program_args_stdout_gt_expr","assert_program_args_stdout_gt_expr","assert_program_args_stdout_gt_expr_as_result","assert_program_args_stdout_is_match","assert_program_args_stdout_is_match","assert_program_args_stdout_is_match_as_result","assert_program_args_stdout_le","assert_program_args_stdout_le","assert_program_args_stdout_le_as_result","assert_program_args_stdout_le_expr","assert_program_args_stdout_le_expr","assert_program_args_stdout_le_expr_as_result","assert_program_args_stdout_lt","assert_program_args_stdout_lt","assert_program_args_stdout_lt_as_result","assert_program_args_stdout_lt_expr","assert_program_args_stdout_lt_expr","assert_program_args_stdout_lt_expr_as_result","assert_program_args_stdout_ne","assert_program_args_stdout_ne","assert_program_args_stdout_ne_as_result","assert_program_args_stdout_ne_expr","assert_program_args_stdout_ne_expr","assert_program_args_stdout_ne_expr_as_result","assert_set_disjoint","assert_set_disjoint","assert_set_disjoint_as_result","assert_set_eq","assert_set_eq","assert_set_eq_as_result","assert_set_joint","assert_set_joint","assert_set_joint_as_result","assert_set_ne","assert_set_ne","assert_set_ne_as_result","assert_set_subset","assert_set_subset","assert_set_subset_as_result","assert_set_superset","assert_set_superset","assert_set_superset_as_result","assert_starts_with","assert_starts_with","assert_starts_with_as_result","debug_assert_bag_eq","debug_assert_bag_ne","debug_assert_bag_subbag","debug_assert_bag_superbag","debug_assert_command_stderr_contains","debug_assert_command_stderr_eq","debug_assert_command_stderr_eq_expr","debug_assert_command_stderr_is_match","debug_assert_command_stdout_contains","debug_assert_command_stdout_eq","debug_assert_command_stdout_eq_expr","debug_assert_command_stdout_is_match","debug_assert_contains","debug_assert_ends_with","debug_assert_fn_eq","debug_assert_fn_eq_expr","debug_assert_fn_err_eq","debug_assert_fn_err_eq_expr","debug_assert_fn_err_ge","debug_assert_fn_err_ge_expr","debug_assert_fn_err_gt","debug_assert_fn_err_gt_expr","debug_assert_fn_err_le","debug_assert_fn_err_le_expr","debug_assert_fn_err_lt","debug_assert_fn_err_lt_expr","debug_assert_fn_err_ne","debug_assert_fn_err_ne_expr","debug_assert_fn_ge","debug_assert_fn_ge_expr","debug_assert_fn_gt","debug_assert_fn_gt_expr","debug_assert_fn_le","debug_assert_fn_le_expr","debug_assert_fn_lt","debug_assert_fn_lt_expr","debug_assert_fn_ne","debug_assert_fn_ne_expr","debug_assert_fn_ok_eq","debug_assert_fn_ok_eq_expr","debug_assert_fn_ok_ge","debug_assert_fn_ok_ge_expr","debug_assert_fn_ok_gt","debug_assert_fn_ok_gt_expr","debug_assert_fn_ok_le","debug_assert_fn_ok_le_expr","debug_assert_fn_ok_lt","debug_assert_fn_ok_lt_expr","debug_assert_fn_ok_ne","debug_assert_fn_ok_ne_expr","debug_assert_fs_read_to_string_contains","debug_assert_fs_read_to_string_eq","debug_assert_fs_read_to_string_eq_expr","debug_assert_fs_read_to_string_ge","debug_assert_fs_read_to_string_ge_expr","debug_assert_fs_read_to_string_gt","debug_assert_fs_read_to_string_gt_expr","debug_assert_fs_read_to_string_le","debug_assert_fs_read_to_string_le_expr","debug_assert_fs_read_to_string_lt","debug_assert_fs_read_to_string_lt_expr","debug_assert_fs_read_to_string_matches","debug_assert_fs_read_to_string_ne","debug_assert_fs_read_to_string_ne_expr","debug_assert_ge","debug_assert_gt","debug_assert_in_delta","debug_assert_in_epsilon","debug_assert_io_read_to_string_contains","debug_assert_io_read_to_string_eq","debug_assert_io_read_to_string_eq_expr","debug_assert_io_read_to_string_ge","debug_assert_io_read_to_string_ge_expr","debug_assert_io_read_to_string_gt","debug_assert_io_read_to_string_gt_expr","debug_assert_io_read_to_string_le","debug_assert_io_read_to_string_le_expr","debug_assert_io_read_to_string_lt","debug_assert_io_read_to_string_lt_expr","debug_assert_io_read_to_string_matches","debug_assert_io_read_to_string_ne","debug_assert_io_read_to_string_ne_expr","debug_assert_is_match","debug_assert_le","debug_assert_lt","debug_assert_not_contains","debug_assert_not_ends_with","debug_assert_not_match","debug_assert_not_starts_with","debug_assert_program_args_stderr_contains","debug_assert_program_args_stderr_eq","debug_assert_program_args_stderr_eq_expr","debug_assert_program_args_stderr_ge","debug_assert_program_args_stderr_ge_expr","debug_assert_program_args_stderr_gt","debug_assert_program_args_stderr_gt_expr","debug_assert_program_args_stderr_is_match","debug_assert_program_args_stderr_le","debug_assert_program_args_stderr_le_expr","debug_assert_program_args_stderr_lt","debug_assert_program_args_stderr_lt_expr","debug_assert_program_args_stderr_ne","debug_assert_program_args_stderr_ne_expr","debug_assert_program_args_stdout_contains","debug_assert_program_args_stdout_eq","debug_assert_program_args_stdout_eq_expr","debug_assert_program_args_stdout_ge","debug_assert_program_args_stdout_ge_expr","debug_assert_program_args_stdout_gt","debug_assert_program_args_stdout_gt_expr","debug_assert_program_args_stdout_is_match","debug_assert_program_args_stdout_le","debug_assert_program_args_stdout_le_expr","debug_assert_program_args_stdout_lt","debug_assert_program_args_stdout_lt_expr","debug_assert_program_args_stdout_ne","debug_assert_program_args_stdout_ne_expr","debug_assert_set_disjoint","debug_assert_set_eq","debug_assert_set_joint","debug_assert_set_ne","debug_assert_set_subset","debug_assert_set_superset","debug_assert_starts_with"],"q":[[0,"lib"]],"i":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"f":"``````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````","D":"CNn","p":[],"r":[],"b":[],"c":"OjAAAAAAAAA=","e":"OjAAAAAAAAA="}]\ +["lib",{"t":"CQCQQQQQQQQCQQQQQQQQQQQQQQQQCQQCQQCQCQQQQCQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQCQQQQQQQQQQQQQQQQQQQQQQQQCQQQQQQQQQQQQQQQQQQQQQQQQQQQQCQQCQQCQQCQQCQQCQQQQQQQQQQQQQQQQQQQQQQQQQQQQCQQCQQCQQCQCQQCQQCQQCQQCQQQQCQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQCQQQQCQQQQQQQQQQQQCQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC","n":["assert","assert_as_result","assert_bag","assert_bag_eq","assert_bag_eq_as_result","assert_bag_ne","assert_bag_ne_as_result","assert_bag_subbag","assert_bag_subbag_as_result","assert_bag_superbag","assert_bag_superbag_as_result","assert_command","assert_command_stderr_contains","assert_command_stderr_contains_as_result","assert_command_stderr_eq","assert_command_stderr_eq_as_result","assert_command_stderr_eq_expr","assert_command_stderr_eq_expr_as_result","assert_command_stderr_is_match","assert_command_stderr_is_match_as_result","assert_command_stdout_contains","assert_command_stdout_contains_as_result","assert_command_stdout_eq","assert_command_stdout_eq_as_result","assert_command_stdout_eq_expr","assert_command_stdout_eq_expr_as_result","assert_command_stdout_is_match","assert_command_stdout_is_match_as_result","assert_contains","assert_contains","assert_contains_as_result","assert_ends_with","assert_ends_with","assert_ends_with_as_result","assert_eq","assert_eq_as_result","assert_fn","assert_fn_eq","assert_fn_eq_as_result","assert_fn_eq_expr","assert_fn_eq_expr_as_result","assert_fn_err","assert_fn_err_eq","assert_fn_err_eq_as_result","assert_fn_err_eq_expr","assert_fn_err_eq_expr_as_result","assert_fn_err_ge","assert_fn_err_ge_as_result","assert_fn_err_ge_expr","assert_fn_err_ge_expr_as_result","assert_fn_err_gt","assert_fn_err_gt_as_result","assert_fn_err_gt_expr","assert_fn_err_gt_expr_as_result","assert_fn_err_le","assert_fn_err_le_as_result","assert_fn_err_le_expr","assert_fn_err_le_expr_as_result","assert_fn_err_lt","assert_fn_err_lt_as_result","assert_fn_err_lt_expr","assert_fn_err_lt_expr_as_result","assert_fn_err_ne","assert_fn_err_ne_as_result","assert_fn_err_ne_expr","assert_fn_err_ne_expr_as_result","assert_fn_ge","assert_fn_ge_as_result","assert_fn_ge_expr","assert_fn_ge_expr_as_result","assert_fn_gt","assert_fn_gt_as_result","assert_fn_gt_expr","assert_fn_gt_expr_as_result","assert_fn_le","assert_fn_le_as_result","assert_fn_le_expr","assert_fn_le_expr_as_result","assert_fn_lt","assert_fn_lt_as_result","assert_fn_lt_expr","assert_fn_lt_expr_as_result","assert_fn_ne","assert_fn_ne_as_result","assert_fn_ne_expr","assert_fn_ne_expr_as_result","assert_fn_ok","assert_fn_ok_eq","assert_fn_ok_eq_as_result","assert_fn_ok_eq_expr","assert_fn_ok_eq_expr_as_result","assert_fn_ok_ge","assert_fn_ok_ge_as_result","assert_fn_ok_ge_expr","assert_fn_ok_ge_expr_as_result","assert_fn_ok_gt","assert_fn_ok_gt_as_result","assert_fn_ok_gt_expr","assert_fn_ok_gt_expr_as_result","assert_fn_ok_le","assert_fn_ok_le_as_result","assert_fn_ok_le_expr","assert_fn_ok_le_expr_as_result","assert_fn_ok_lt","assert_fn_ok_lt_as_result","assert_fn_ok_lt_expr","assert_fn_ok_lt_expr_as_result","assert_fn_ok_ne","assert_fn_ok_ne_as_result","assert_fn_ok_ne_expr","assert_fn_ok_ne_expr_as_result","assert_fs_read_to_string","assert_fs_read_to_string_contains","assert_fs_read_to_string_contains_as_result","assert_fs_read_to_string_eq","assert_fs_read_to_string_eq_as_result","assert_fs_read_to_string_eq_expr","assert_fs_read_to_string_eq_expr_as_result","assert_fs_read_to_string_ge","assert_fs_read_to_string_ge_as_result","assert_fs_read_to_string_ge_expr","assert_fs_read_to_string_ge_expr_as_result","assert_fs_read_to_string_gt","assert_fs_read_to_string_gt_as_result","assert_fs_read_to_string_gt_expr","assert_fs_read_to_string_gt_expr_as_result","assert_fs_read_to_string_le","assert_fs_read_to_string_le_as_result","assert_fs_read_to_string_le_expr","assert_fs_read_to_string_le_expr_as_result","assert_fs_read_to_string_lt","assert_fs_read_to_string_lt_as_result","assert_fs_read_to_string_lt_expr","assert_fs_read_to_string_lt_expr_as_result","assert_fs_read_to_string_matches","assert_fs_read_to_string_matches_as_result","assert_fs_read_to_string_ne","assert_fs_read_to_string_ne_as_result","assert_fs_read_to_string_ne_expr","assert_fs_read_to_string_ne_expr_as_result","assert_ge","assert_ge","assert_ge_as_result","assert_gt","assert_gt","assert_gt_as_result","assert_in_delta","assert_in_delta","assert_in_delta_as_result","assert_in_epsilon","assert_in_epsilon","assert_in_epsilon_as_result","assert_infix","assert_infix","assert_infix_as_result","assert_io_read_to_string","assert_io_read_to_string_contains","assert_io_read_to_string_contains_as_result","assert_io_read_to_string_eq","assert_io_read_to_string_eq_as_result","assert_io_read_to_string_eq_expr","assert_io_read_to_string_eq_expr_as_result","assert_io_read_to_string_ge","assert_io_read_to_string_ge_as_result","assert_io_read_to_string_ge_expr","assert_io_read_to_string_ge_expr_as_result","assert_io_read_to_string_gt","assert_io_read_to_string_gt_as_result","assert_io_read_to_string_gt_expr","assert_io_read_to_string_gt_expr_as_result","assert_io_read_to_string_le","assert_io_read_to_string_le_as_result","assert_io_read_to_string_le_expr","assert_io_read_to_string_le_expr_as_result","assert_io_read_to_string_lt","assert_io_read_to_string_lt_as_result","assert_io_read_to_string_lt_expr","assert_io_read_to_string_lt_expr_as_result","assert_io_read_to_string_matches","assert_io_read_to_string_matches_as_result","assert_io_read_to_string_ne","assert_io_read_to_string_ne_as_result","assert_io_read_to_string_ne_expr","assert_io_read_to_string_ne_expr_as_result","assert_is_match","assert_is_match","assert_is_match_as_result","assert_le","assert_le","assert_le_as_result","assert_lt","assert_lt","assert_lt_as_result","assert_ne","assert_ne_as_result","assert_not_contains","assert_not_contains","assert_not_contains_as_result","assert_not_ends_with","assert_not_ends_with","assert_not_ends_with_as_result","assert_not_match","assert_not_match","assert_not_match_as_result","assert_not_starts_with","assert_not_starts_with","assert_not_starts_with_as_result","assert_option","assert_option_none","assert_option_none_as_result","assert_option_some","assert_option_some_as_result","assert_program_args","assert_program_args_stderr_contains","assert_program_args_stderr_contains_as_result","assert_program_args_stderr_eq","assert_program_args_stderr_eq_as_result","assert_program_args_stderr_eq_expr","assert_program_args_stderr_eq_expr_as_result","assert_program_args_stderr_ge","assert_program_args_stderr_ge_as_result","assert_program_args_stderr_ge_expr","assert_program_args_stderr_ge_expr_as_result","assert_program_args_stderr_gt","assert_program_args_stderr_gt_as_result","assert_program_args_stderr_gt_expr","assert_program_args_stderr_gt_expr_as_result","assert_program_args_stderr_is_match","assert_program_args_stderr_is_match_as_result","assert_program_args_stderr_le","assert_program_args_stderr_le_as_result","assert_program_args_stderr_le_expr","assert_program_args_stderr_le_expr_as_result","assert_program_args_stderr_lt","assert_program_args_stderr_lt_as_result","assert_program_args_stderr_lt_expr","assert_program_args_stderr_lt_expr_as_result","assert_program_args_stderr_ne","assert_program_args_stderr_ne_as_result","assert_program_args_stderr_ne_expr","assert_program_args_stderr_ne_expr_as_result","assert_program_args_stdout_contains","assert_program_args_stdout_contains_as_result","assert_program_args_stdout_eq","assert_program_args_stdout_eq_as_result","assert_program_args_stdout_eq_expr","assert_program_args_stdout_eq_expr_as_result","assert_program_args_stdout_ge","assert_program_args_stdout_ge_as_result","assert_program_args_stdout_ge_expr","assert_program_args_stdout_ge_expr_as_result","assert_program_args_stdout_gt","assert_program_args_stdout_gt_as_result","assert_program_args_stdout_gt_expr","assert_program_args_stdout_gt_expr_as_result","assert_program_args_stdout_is_match","assert_program_args_stdout_is_match_as_result","assert_program_args_stdout_le","assert_program_args_stdout_le_as_result","assert_program_args_stdout_le_expr","assert_program_args_stdout_le_expr_as_result","assert_program_args_stdout_lt","assert_program_args_stdout_lt_as_result","assert_program_args_stdout_lt_expr","assert_program_args_stdout_lt_expr_as_result","assert_program_args_stdout_ne","assert_program_args_stdout_ne_as_result","assert_program_args_stdout_ne_expr","assert_program_args_stdout_ne_expr_as_result","assert_result","assert_result_err","assert_result_err_as_result","assert_result_ok","assert_result_ok_as_result","assert_set","assert_set_disjoint","assert_set_disjoint_as_result","assert_set_eq","assert_set_eq_as_result","assert_set_joint","assert_set_joint_as_result","assert_set_ne","assert_set_ne_as_result","assert_set_subset","assert_set_subset_as_result","assert_set_superset","assert_set_superset_as_result","assert_starts_with","assert_starts_with","assert_starts_with_as_result","debug_assert_bag_eq","debug_assert_bag_ne","debug_assert_bag_subbag","debug_assert_bag_superbag","debug_assert_command_stderr_contains","debug_assert_command_stderr_eq","debug_assert_command_stderr_eq_expr","debug_assert_command_stderr_is_match","debug_assert_command_stdout_contains","debug_assert_command_stdout_eq","debug_assert_command_stdout_eq_expr","debug_assert_command_stdout_is_match","debug_assert_contains","debug_assert_ends_with","debug_assert_fn_eq","debug_assert_fn_eq_expr","debug_assert_fn_err_eq","debug_assert_fn_err_eq_expr","debug_assert_fn_err_ge","debug_assert_fn_err_ge_expr","debug_assert_fn_err_gt","debug_assert_fn_err_gt_expr","debug_assert_fn_err_le","debug_assert_fn_err_le_expr","debug_assert_fn_err_lt","debug_assert_fn_err_lt_expr","debug_assert_fn_err_ne","debug_assert_fn_err_ne_expr","debug_assert_fn_ge","debug_assert_fn_ge_expr","debug_assert_fn_gt","debug_assert_fn_gt_expr","debug_assert_fn_le","debug_assert_fn_le_expr","debug_assert_fn_lt","debug_assert_fn_lt_expr","debug_assert_fn_ne","debug_assert_fn_ne_expr","debug_assert_fn_ok_eq","debug_assert_fn_ok_eq_expr","debug_assert_fn_ok_ge","debug_assert_fn_ok_ge_expr","debug_assert_fn_ok_gt","debug_assert_fn_ok_gt_expr","debug_assert_fn_ok_le","debug_assert_fn_ok_le_expr","debug_assert_fn_ok_lt","debug_assert_fn_ok_lt_expr","debug_assert_fn_ok_ne","debug_assert_fn_ok_ne_expr","debug_assert_fs_read_to_string_contains","debug_assert_fs_read_to_string_eq","debug_assert_fs_read_to_string_eq_expr","debug_assert_fs_read_to_string_ge","debug_assert_fs_read_to_string_ge_expr","debug_assert_fs_read_to_string_gt","debug_assert_fs_read_to_string_gt_expr","debug_assert_fs_read_to_string_le","debug_assert_fs_read_to_string_le_expr","debug_assert_fs_read_to_string_lt","debug_assert_fs_read_to_string_lt_expr","debug_assert_fs_read_to_string_matches","debug_assert_fs_read_to_string_ne","debug_assert_fs_read_to_string_ne_expr","debug_assert_ge","debug_assert_gt","debug_assert_in_delta","debug_assert_in_epsilon","debug_assert_infix","debug_assert_io_read_to_string_contains","debug_assert_io_read_to_string_eq","debug_assert_io_read_to_string_eq_expr","debug_assert_io_read_to_string_ge","debug_assert_io_read_to_string_ge_expr","debug_assert_io_read_to_string_gt","debug_assert_io_read_to_string_gt_expr","debug_assert_io_read_to_string_le","debug_assert_io_read_to_string_le_expr","debug_assert_io_read_to_string_lt","debug_assert_io_read_to_string_lt_expr","debug_assert_io_read_to_string_matches","debug_assert_io_read_to_string_ne","debug_assert_io_read_to_string_ne_expr","debug_assert_is_match","debug_assert_le","debug_assert_lt","debug_assert_not_contains","debug_assert_not_ends_with","debug_assert_not_match","debug_assert_not_starts_with","debug_assert_option_none","debug_assert_option_some","debug_assert_program_args_stderr_contains","debug_assert_program_args_stderr_eq","debug_assert_program_args_stderr_eq_expr","debug_assert_program_args_stderr_ge","debug_assert_program_args_stderr_ge_expr","debug_assert_program_args_stderr_gt","debug_assert_program_args_stderr_gt_expr","debug_assert_program_args_stderr_is_match","debug_assert_program_args_stderr_le","debug_assert_program_args_stderr_le_expr","debug_assert_program_args_stderr_lt","debug_assert_program_args_stderr_lt_expr","debug_assert_program_args_stderr_ne","debug_assert_program_args_stderr_ne_expr","debug_assert_program_args_stdout_contains","debug_assert_program_args_stdout_eq","debug_assert_program_args_stdout_eq_expr","debug_assert_program_args_stdout_ge","debug_assert_program_args_stdout_ge_expr","debug_assert_program_args_stdout_gt","debug_assert_program_args_stdout_gt_expr","debug_assert_program_args_stdout_is_match","debug_assert_program_args_stdout_le","debug_assert_program_args_stdout_le_expr","debug_assert_program_args_stdout_lt","debug_assert_program_args_stdout_lt_expr","debug_assert_program_args_stdout_ne","debug_assert_program_args_stdout_ne_expr","debug_assert_result_err","debug_assert_result_ok","debug_assert_set_disjoint","debug_assert_set_eq","debug_assert_set_joint","debug_assert_set_ne","debug_assert_set_subset","debug_assert_set_superset","debug_assert_starts_with","assert_bag_eq","assert_bag_ne","assert_bag_subbag","assert_bag_superbag","assert_command_stderr_contains","assert_command_stderr_eq","assert_command_stderr_eq_expr","assert_command_stderr_is_match","assert_command_stdout_contains","assert_command_stdout_eq","assert_command_stdout_eq_expr","assert_command_stdout_is_match","assert_fn_eq","assert_fn_eq_expr","assert_fn_ge","assert_fn_ge_expr","assert_fn_gt","assert_fn_gt_expr","assert_fn_le","assert_fn_le_expr","assert_fn_lt","assert_fn_lt_expr","assert_fn_ne","assert_fn_ne_expr","assert_fn_err_eq","assert_fn_err_eq_expr","assert_fn_err_ge","assert_fn_err_ge_expr","assert_fn_err_gt","assert_fn_err_gt_expr","assert_fn_err_le","assert_fn_err_le_expr","assert_fn_err_lt","assert_fn_err_lt_expr","assert_fn_err_ne","assert_fn_err_ne_expr","assert_fn_ok_eq","assert_fn_ok_eq_expr","assert_fn_ok_ge","assert_fn_ok_ge_expr","assert_fn_ok_gt","assert_fn_ok_gt_expr","assert_fn_ok_le","assert_fn_ok_le_expr","assert_fn_ok_lt","assert_fn_ok_lt_expr","assert_fn_ok_ne","assert_fn_ok_ne_expr","assert_fs_read_to_string_contains","assert_fs_read_to_string_eq","assert_fs_read_to_string_eq_expr","assert_fs_read_to_string_ge","assert_fs_read_to_string_ge_expr","assert_fs_read_to_string_gt","assert_fs_read_to_string_gt_expr","assert_fs_read_to_string_le","assert_fs_read_to_string_le_expr","assert_fs_read_to_string_lt","assert_fs_read_to_string_lt_expr","assert_fs_read_to_string_matches","assert_fs_read_to_string_ne","assert_fs_read_to_string_ne_expr","assert_io_read_to_string_contains","assert_io_read_to_string_eq","assert_io_read_to_string_eq_expr","assert_io_read_to_string_ge","assert_io_read_to_string_ge_expr","assert_io_read_to_string_gt","assert_io_read_to_string_gt_expr","assert_io_read_to_string_le","assert_io_read_to_string_le_expr","assert_io_read_to_string_lt","assert_io_read_to_string_lt_expr","assert_io_read_to_string_matches","assert_io_read_to_string_ne","assert_io_read_to_string_ne_expr","assert_option_none","assert_option_some","assert_program_args_stderr_contains","assert_program_args_stderr_eq","assert_program_args_stderr_eq_expr","assert_program_args_stderr_ge","assert_program_args_stderr_ge_expr","assert_program_args_stderr_gt","assert_program_args_stderr_gt_expr","assert_program_args_stderr_is_match","assert_program_args_stderr_le","assert_program_args_stderr_le_expr","assert_program_args_stderr_lt","assert_program_args_stderr_lt_expr","assert_program_args_stderr_ne","assert_program_args_stderr_ne_expr","assert_program_args_stdout_contains","assert_program_args_stdout_eq","assert_program_args_stdout_eq_expr","assert_program_args_stdout_ge","assert_program_args_stdout_ge_expr","assert_program_args_stdout_gt","assert_program_args_stdout_gt_expr","assert_program_args_stdout_is_match","assert_program_args_stdout_le","assert_program_args_stdout_le_expr","assert_program_args_stdout_lt","assert_program_args_stdout_lt_expr","assert_program_args_stdout_ne","assert_program_args_stdout_ne_expr","assert_result_err","assert_result_ok","assert_set_disjoint","assert_set_eq","assert_set_joint","assert_set_ne","assert_set_subset","assert_set_superset"],"q":[[0,"lib"],[419,"lib::assert_bag"],[423,"lib::assert_command"],[431,"lib::assert_fn"],[443,"lib::assert_fn_err"],[455,"lib::assert_fn_ok"],[467,"lib::assert_fs_read_to_string"],[481,"lib::assert_io_read_to_string"],[495,"lib::assert_option"],[497,"lib::assert_program_args"],[525,"lib::assert_result"],[527,"lib::assert_set"]],"i":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"f":"`````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````","D":"DBl","p":[],"r":[],"b":[],"c":"OjAAAAAAAAA=","e":"OjAAAAAAAAA="}]\ ]')); if (typeof exports !== 'undefined') exports.searchIndex = searchIndex; else if (window.initSearch) window.initSearch(searchIndex); diff --git a/doc/search.desc/lib/lib-desc-0-.js b/doc/search.desc/lib/lib-desc-0-.js index 1e041130c..4bd08d3c6 100644 --- a/doc/search.desc/lib/lib-desc-0-.js +++ b/doc/search.desc/lib/lib-desc-0-.js @@ -1 +1 @@ -searchState.loadedDescShard("lib", 0, "Assertables: Rust crate of assert macros for testing\nAssert a condition is true.\nAssert a condition is true.\nAssert a bag is equal to another.\nAssert a bag is equal to another.\nAssert a bag is equal to another.\nAssert a bag is not equal to another.\nAssert a bag is not equal to another.\nAssert a bag is not equal to another.\nAssert a bag is a subbag of another.\nAssert a bag is a subbag of another.\nAssert a bag is a subbag of another.\nAssert a bag is a superbag of another.\nAssert a bag is a superbag of another.\nAssert a bag is a superbag of another.\nAssert a command stderr string contains a given containee.\nAssert a command stderr string contains a given containee.\nAssert a command stderr string contains a given containee.\nAssert a command stderr string is equal to another.\nAssert a command stderr string is equal to another.\nAssert a command stderr string is equal to another.\nAssert a command stderr string is equal to an expression.\nAssert a command stderr string is equal to an expression.\nAssert a command stderr string is equal to an expression.\nAssert a command stderr string is a match to a regex.\nAssert a command stderr string is a match to a regex.\nAssert a command stderr string is a match to a regex.\nAssert a command stdout string contains a given containee.\nAssert a command stdout string contains a given containee.\nAssert a command stdout string contains a given containee.\nAssert a command stdout string is equal to another.\nAssert a command stdout string is equal to another.\nAssert a command stdout string is equal to another.\nAssert a command stdout string is equal to an expression.\nAssert a command stdout string is equal to an expression.\nAssert a command stdout string is equal to an expression.\nAssert a command stdout string is a match to a regex.\nAssert a command stdout string is a match to a regex.\nAssert a command stdout string is a match to a regex.\nAssert a container is a match for an expression.\nAssert a container is a match for an expression.\nAssert an expression (such as a string) contains an …\nAssert an expression (such as a string) ends with an …\nAssert an expression (such as a string) ends with an …\nAssert an expression (such as a string) ends with an …\nAssert an expression is equal to another.\nAssert an expression is equal to another.\nAssert a function output is equal to another function …\nAssert a function output is equal to another function …\nAssert a function output is equal to another function …\nAssert a function output is equal to an expression.\nAssert a function output is equal to an expression.\nAssert a function output is equal to an expression.\nAssert a function err() is equal to another.\nAssert a function err() is equal to another.\nAssert a function err() is equal to another.\nAssert a function err() is equal to an expression.\nAssert a function err() is equal to an expression.\nAssert a function err() is equal to an expression.\nAssert a function err() is greater than or equal to …\nAssert a function err() is greater than or equal to …\nAssert a function err() is greater than or equal to …\nAssert a function err() is greater than or equal to an …\nAssert a function err() is greater than or equal to an …\nAssert a function err() is greater than or equal to an …\nAssert a function err() is greater than another.\nAssert a function err() is greater than another.\nAssert a function err() is greater than another.\nAssert a function err() is greater than an expression.\nAssert a function err() is greater than an expression.\nAssert a function err() is greater than an expression.\nAssert a function err() is less than or equal to another.\nAssert a function err() is less than or equal to another.\nAssert a function err() is less than or equal to another.\nAssert a function err() is less than or equal to an …\nAssert a function err() is less than or equal to an …\nAssert a function err() is less than or equal to an …\nAssert a function err() is less than another.\nAssert a function err() is less than another.\nAssert a function err() is less than another.\nAssert a function err() is less than an expression.\nAssert a function err() is less than an expression.\nAssert a function err() is less than an expression.\nAssert a function err() is not equal to another.\nAssert a function err() is not equal to another.\nAssert a function err() is not equal to another.\nAssert a function err() is not equal to an expression.\nAssert a function err() is not equal to an expression.\nAssert a function err() is not equal to an expression.\nAssert a function output is greater than or equal to …\nAssert a function output is greater than or equal to …\nAssert a function output is greater than or equal to …\nAssert a function output is greater than or equal to an …\nAssert a function output is greater than or equal to an …\nAssert a function output is greater than or equal to an …\nAssert a function output is greater than another.\nAssert a function output is greater than another.\nAssert a function output is greater than another.\nAssert a function output is greater than an expression.\nAssert a function output is greater than an expression.\nAssert a function output is greater than an expression.\nAssert a function output is less than or equal to another.\nAssert a function output is less than or equal to another.\nAssert a function output is less than or equal to another.\nAssert a function output is less than or equal to an …\nAssert a function output is less than or equal to an …\nAssert a function output is less than or equal to an …\nAssert a function output is less than another.\nAssert a function output is less than another.\nAssert a function output is less than another.\nAssert a function output is less than an expression.\nAssert a function output is less than an expression.\nAssert a function output is less than an expression.\nAssert a function output is not equal to another.\nAssert a function output is not equal to another.\nAssert a function output is not equal to another.\nAssert a function output is not equal to an expression.\nAssert a function output is not equal to an expression.\nAssert a function output is not equal to an expression.\nAssert a function ok() is equal to another.\nAssert a function ok() is equal to another.\nAssert a function ok() is equal to another.\nAssert a function ok() is equal to an expression.\nAssert a function ok() is equal to an expression.\nAssert a function ok() is equal to an expression.\nAssert a function ok() is greater than or equal to another.\nAssert a function ok() is greater than or equal to another.\nAssert a function ok() is greater than or equal to another.\nAssert a function ok() is greater than or equal to an …\nAssert a function ok() is greater than or equal to an …\nAssert a function ok() is greater than or equal to an …\nAssert a function ok() is greater than another.\nAssert a function ok() is greater than another.\nAssert a function ok() is greater than another.\nAssert a function ok() is greater than an expression.\nAssert a function ok() is greater than an expression.\nAssert a function ok() is greater than an expression.\nAssert a function ok() is less than or equal to another.\nAssert a function ok() is less than or equal to another.\nAssert a function ok() is less than or equal to another.\nAssert a function ok() is less than or equal to an …\nAssert a function ok() is less than or equal to an …\nAssert a function ok() is less than or equal to an …\nAssert a function ok() is less than another.\nAssert a function ok() is less than another.\nAssert a function ok() is less than another.\nAssert a function ok() is less than an expression.\nAssert a function ok() is less than an expression.\nAssert a function ok() is less than an expression.\nAssert a function ok() is not equal to another.\nAssert a function ok() is not equal to another.\nAssert a function ok() is not equal to another.\nAssert a function ok() is not equal to an expression.\nAssert a function ok() is not equal to an expression.\nAssert a function ok() is not equal to an expression.\nAssert a std::fs::read_to_string() contains a pattern.\nAssert a std::fs::read_to_string() contains a pattern.\nAssert a std::fs::read_to_string() contains a pattern.\nAssert a std::fs::read_to_string() value is equal to …\nAssert a std::fs::read_to_string() value is equal to …\nAssert a std::fs::read_to_string() is equal to another.\nAssert a std::fs::read_to_string() value is equal to an …\nAssert a std::fs::read_to_string() value is equal to an …\nAssert a std::fs::read_to_string() value is equal to an …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is less than or …\nAssert a std::fs::read_to_string() value is less than or …\nAssert a std::fs::read_to_string() value is less than or …\nAssert a std::fs::read_to_string() value is less than or …\nAssert a std::fs::read_to_string() value is less than or …\nAssert a std::fs::read_to_string() value is less than or …\nAssert a std::fs::read_to_string() value is less than …\nAssert a std::fs::read_to_string() value is less than …\nAssert a std::fs::read_to_string() value is less than …\nAssert a std::fs::read_to_string() value is less than an …\nAssert a std::fs::read_to_string() value is less than an …\nAssert a std::fs::read_to_string() value is less than an …\nAssert a std::fs::read_to_string() is a match to a regex.\nAssert a std::fs::read_to_string() is a match to a regex.\nAssert a std::fs::read_to_string() is a match to a regex.\nAssert a std::fs::read_to_string() is not equal to another.\nAssert a std::fs::read_to_string() is not equal to another.\nAssert a std::fs::read_to_string() is not equal to another.\nAssert a std::fs::read_to_string() is not equal to an …\nAssert a std::fs::read_to_string() is not equal to an …\nAssert a std::fs::read_to_string() is not equal to an …\nAssert a value is greater than or equal to an expression.\nAssert a value is greater than or equal to an expression.\nAssert a value is greater than or equal to an expression.\nAssert a value is greater than an expression.\nAssert a value is greater than an expression.\nAssert a value is greater than an expression.\nAssert a number is within delta of another number.\nAssert a number is within delta of another number.\nAssert a number is within delta of another number.\nAssert a number is within epsilon of another number.\nAssert a number is within epsilon of another number.\nAssert a number is within epsilon of another number.\nAssert a std::io::Read read_to_string() contains a pattern.\nAssert a std::io::Read read_to_string() contains a pattern.\nAssert a std::io::Read read_to_string() contains a pattern.\nAssert a std::io::Read read_to_string() value is equal to …\nAssert a std::io::Read read_to_string() value is equal to …\nAssert a std::io::Read read_to_string() is equal to …\nAssert a std::io::Read read_to_string() value is equal to …\nAssert a std::io::Read read_to_string() value is equal to …\nAssert a std::io::Read read_to_string() value is equal to …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() is a match to a …\nAssert a std::io::Read read_to_string() is a match to a …\nAssert a std::io::Read read_to_string() is a match to a …\nAssert a std::io::Read read_to_string() is not equal to …\nAssert a std::io::Read read_to_string() is not equal to …\nAssert a std::io::Read read_to_string() is not equal to …\nAssert a std::io::Read read_to_string() is not equal to an …\nAssert a std::io::Read read_to_string() is not equal to an …\nAssert a std::io::Read read_to_string() is not equal to an …\nAssert a matcher is a match for an expression.\nAssert a matcher is a match for an expression.\nAssert an expression (such as a regex) is a match for an …\nAssert a value is less than or equal to an expression.\nAssert a value is less than or equal to an expression.\nAssert a value is less than or equal to an expression.\nAssert a value is less than an expression.\nAssert a value is less than an expression.\nAssert a value is less than an expression.\nAssert an expression is not equal to an expression.\nAssert an expression is not equal to an expression.\nAssert an expression (such as a string) does not contain …\nAssert an expression (such as a string) does not contain …\nAssert an expression (such as a string) does not contain …\nAssert an expression (such as a string) does not end with …\nAssert an expression (such as a string) does not end with …\nAssert an expression (such as a string) does not end with …\nAssert an expression (such as a regex) is not a match for …\nAssert an expression (such as a regex) is not a match for …\nAssert an expression (such as a regex) is not a match for …\nAssert an expression (such as a string) does not start …\nAssert an expression (such as a string) does not start …\nAssert an expression (such as a string) does not start …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a set is disjoint with another.\nAssert a set is disjoint with another.\nAssert a set is disjoint with another.\nAssert a set is equal to another.\nAssert a set is equal to another.\nAssert a set is equal to another.\nAssert a set is joint with another.\nAssert a set is joint with another.\nAssert a set is joint with another.\nAssert a set is not equal to another.\nAssert a set is not equal to another.\nAssert a set is not equal to another.\nAssert a set is a subset of another.\nAssert a set is a subset of another.\nAssert a set is a subset of another.\nAssert a set is a superset of another.\nAssert a set is a superset of another.\nAssert a set is a superset of another.\nAssert an expression (such as a string) starts with an …\nAssert an expression (such as a string) starts with an …\nAssert an expression (such as a string) starts with an …\nAssert a bag is equal to another.\nAssert a bag is not equal to another.\nAssert a bag is a subbag of another.\nAssert a bag is a superbag of another.\nAssert a command stderr string contains a given containee.\nAssert a command stderr string is equal to another.\nAssert a command stderr string is equal to an expression.\nAssert a command stderr string is a match to a regex.\nAssert a command stdout string contains a given containee.\nAssert a command stdout string is equal to another.\nAssert a command stdout string is equal to an expression.\nAssert a command stdout string is a match to a regex.\nAssert a container is a match for an expression.\nAssert an expression (such as a string) ends with an …\nAssert a function output is equal to another function …\nAssert a function output is equal to an expression.\nAssert a function err() is equal to another.\nAssert a function err() is equal to an expression.\nAssert a function err() is greater than or equal to …\nAssert a function err() is greater than or equal to an …\nAssert a function err() is greater than another.\nAssert a function err() is greater than an expression.\nAssert a function err() is less than or equal to another.\nAssert a function err() is less than or equal to an …\nAssert a function err() is less than another.\nAssert a function err() is less than an expression.\nAssert a function err() is not equal to another.\nAssert a function err() is not equal to an expression.\nAssert a function output is greater than or equal to …\nAssert a function output is greater than or equal to an …\nAssert a function output is greater than another.\nAssert a function output is greater than an expression.\nAssert a function output is less than or equal to another.\nAssert a function output is less than or equal to an …\nAssert a function output is less than another.\nAssert a function output is less than an expression.\nAssert a function output is not equal to another.\nAssert a function output is not equal to an expression.\nAssert a function ok() is equal to another.\nAssert a function ok() is equal to an expression.\nAssert a function ok() is greater than or equal to another.\nAssert a function ok() is greater than or equal to an …\nAssert a function ok() is greater than another.\nAssert a function ok() is greater than an expression.\nAssert a function ok() is less than or equal to another.\nAssert a function ok() is less than or equal to an …\nAssert a function ok() is less than another.\nAssert a function ok() is less than an expression.\nAssert a function ok() is not equal to another.\nAssert a function ok() is not equal to an expression.\nAssert a std::fs::read_to_string() contains a pattern.\nAssert a std::fs::read_to_string() value is equal to …\nAssert a std::fs::read_to_string() value is equal to an …\nAssert a std::fs::read_to_string() value is greater than …\nAssert zzz.\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is less than or …\nAssert a std::fs::read_to_string() value is less than or …\nAssert a std::fs::read_to_string() value is less than …\nAssert a std::fs::read_to_string() value is less than an …\nAssert a std::fs::read_to_string() is a match to a regex.\nAssert a std::fs::read_to_string() is not equal to another.\nAssert a std::fs::read_to_string() is not equal to an …\nAssert a value is greater than or equal to an expression.\nAssert a value is greater than an expression.\nAssert a number is within delta of another number.\nAssert a number is within epsilon of another number.\nAssert a std::io::Read read_to_string() contains a pattern.\nAssert a std::io::Read read_to_string() value is equal to …\nAssert a std::io::Read read_to_string() value is equal to …\nAssert a std::io::Read read_to_string() value is greater …\nAssert zzz.\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() is a match to a …\nAssert a std::io::Read read_to_string() is not equal to …\nAssert a std::io::Read read_to_string() is not equal to an …\nAssert a matcher is a match for an expression.\nAssert a value is less than or equal to an expression.\nAssert a value is less than an expression.\nAssert an expression (such as a string) does not contain …\nAssert an expression (such as a string) does not end with …\nAssert an expression (such as a regex) is not a match for …\nAssert an expression (such as a string) does not start …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a set is disjoint with another.\nAssert a set is equal to another.\nAssert a set is joint with another.\nAssert a set is not equal to another.\nAssert a set is a subset of another.\nAssert a set is a superset of another.\nAssert an expression (such as a string) starts with an …") \ No newline at end of file +searchState.loadedDescShard("lib", 0, "Assertables: Rust crate of assert macros for testing\nAssert a condition is true.\nAssert a condition is true.\nAssert macros for comparing bags.\nAssert a bag is equal to another.\nAssert a bag is equal to another.\nAssert a bag is not equal to another.\nAssert a bag is not equal to another.\nAssert a bag is a subbag of another.\nAssert a bag is a subbag of another.\nAssert a bag is a superbag of another.\nAssert a bag is a superbag of another.\nAssert macros for comparing commands and their stdout & …\nAssert a command stderr string contains a given containee.\nAssert a command stderr string contains a given containee.\nAssert a command stderr string is equal to another.\nAssert a command stderr string is equal to another.\nAssert a command stderr string is equal to an expression.\nAssert a command stderr string is equal to an expression.\nAssert a command stderr string is a match to a regex.\nAssert a command stderr string is a match to a regex.\nAssert a command stdout string contains a given containee.\nAssert a command stdout string contains a given containee.\nAssert a command stdout string is equal to another.\nAssert a command stdout string is equal to another.\nAssert a command stdout string is equal to an expression.\nAssert a command stdout string is equal to an expression.\nAssert a command stdout string is a match to a regex.\nAssert a command stdout string is a match to a regex.\nAssert a container is a match for an expression.\nAssert a container is a match for an expression.\nAssert an expression (such as a string) contains an …\nAssert an expression (such as a string) ends with an …\nAssert an expression (such as a string) ends with an …\nAssert an expression (such as a string) ends with an …\nAssert an expression is equal to another.\nAssert an expression is equal to another.\nAssert macros for comparing functions.\nAssert a function output is equal to another function …\nAssert a function output is equal to another function …\nAssert a function output is equal to an expression.\nAssert a function output is equal to an expression.\nAssert macros for comparing functions that return errors.\nAssert a function err() is equal to another.\nAssert a function err() is equal to another.\nAssert a function err() is equal to an expression.\nAssert a function err() is equal to an expression.\nAssert a function err() is greater than or equal to …\nAssert a function err() is greater than or equal to …\nAssert a function err() is greater than or equal to an …\nAssert a function err() is greater than or equal to an …\nAssert a function err() is greater than another.\nAssert a function err() is greater than another.\nAssert a function err() is greater than an expression.\nAssert a function err() is greater than an expression.\nAssert a function err() is less than or equal to another.\nAssert a function err() is less than or equal to another.\nAssert a function err() is less than or equal to an …\nAssert a function err() is less than or equal to an …\nAssert a function err() is less than another.\nAssert a function err() is less than another.\nAssert a function err() is less than an expression.\nAssert a function err() is less than an expression.\nAssert a function err() is not equal to another.\nAssert a function err() is not equal to another.\nAssert a function err() is not equal to an expression.\nAssert a function err() is not equal to an expression.\nAssert a function output is greater than or equal to …\nAssert a function output is greater than or equal to …\nAssert a function output is greater than or equal to an …\nAssert a function output is greater than or equal to an …\nAssert a function output is greater than another.\nAssert a function output is greater than another.\nAssert a function output is greater than an expression.\nAssert a function output is greater than an expression.\nAssert a function output is less than or equal to another.\nAssert a function output is less than or equal to another.\nAssert a function output is less than or equal to an …\nAssert a function output is less than or equal to an …\nAssert a function output is less than another.\nAssert a function output is less than another.\nAssert a function output is less than an expression.\nAssert a function output is less than an expression.\nAssert a function output is not equal to another.\nAssert a function output is not equal to another.\nAssert a function output is not equal to an expression.\nAssert a function output is not equal to an expression.\nAssert macros for comparing functions that return …\nAssert a function ok() is equal to another.\nAssert a function ok() is equal to another.\nAssert a function ok() is equal to an expression.\nAssert a function ok() is equal to an expression.\nAssert a function ok() is greater than or equal to another.\nAssert a function ok() is greater than or equal to another.\nAssert a function ok() is greater than or equal to an …\nAssert a function ok() is greater than or equal to an …\nAssert a function ok() is greater than another.\nAssert a function ok() is greater than another.\nAssert a function ok() is greater than an expression.\nAssert a function ok() is greater than an expression.\nAssert a function ok() is less than or equal to another.\nAssert a function ok() is less than or equal to another.\nAssert a function ok() is less than or equal to an …\nAssert a function ok() is less than or equal to an …\nAssert a function ok() is less than another.\nAssert a function ok() is less than another.\nAssert a function ok() is less than an expression.\nAssert a function ok() is less than an expression.\nAssert a function ok() is not equal to another.\nAssert a function ok() is not equal to another.\nAssert a function ok() is not equal to an expression.\nAssert a function ok() is not equal to an expression.\nAssert macros for comparing file system path contents.\nAssert a std::fs::read_to_string() contains a pattern.\nAssert a std::fs::read_to_string() contains a pattern.\nAssert a std::fs::read_to_string() value is equal to …\nAssert a std::fs::read_to_string() is equal to another.\nAssert a std::fs::read_to_string() value is equal to an …\nAssert a std::fs::read_to_string() value is equal to an …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is less than or …\nAssert a std::fs::read_to_string() value is less than or …\nAssert a std::fs::read_to_string() value is less than or …\nAssert a std::fs::read_to_string() value is less than or …\nAssert a std::fs::read_to_string() value is less than …\nAssert a std::fs::read_to_string() value is less than …\nAssert a std::fs::read_to_string() value is less than an …\nAssert a std::fs::read_to_string() value is less than an …\nAssert a std::fs::read_to_string() is a match to a regex.\nAssert a std::fs::read_to_string() is a match to a regex.\nAssert a std::fs::read_to_string() is not equal to another.\nAssert a std::fs::read_to_string() is not equal to another.\nAssert a std::fs::read_to_string() is not equal to an …\nAssert a std::fs::read_to_string() is not equal to an …\nAssert a value is greater than or equal to an expression.\nAssert a value is greater than or equal to an expression.\nAssert a value is greater than or equal to an expression.\nAssert a value is greater than an expression.\nAssert a value is greater than an expression.\nAssert a value is greater than an expression.\nAssert a number is within delta of another number.\nAssert a number is within delta of another number.\nAssert a number is within delta of another number.\nAssert a number is within epsilon of another number.\nAssert a number is within epsilon of another number.\nAssert a number is within epsilon of another number.\nAssert a infix operator, such as assert_infix!(a == b).\nAssert a infix operator, such as assert_infix!(a == b).\nAssert a infix operator, such as assert_infix!(a == b).\nAssert macros for comparing input/output reader streams.\nAssert a std::io::Read read_to_string() contains a pattern.\nAssert a std::io::Read read_to_string() contains a pattern.\nAssert a std::io::Read read_to_string() value is equal to …\nAssert a std::io::Read read_to_string() is equal to …\nAssert a std::io::Read read_to_string() value is equal to …\nAssert a std::io::Read read_to_string() value is equal to …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() is a match to a …\nAssert a std::io::Read read_to_string() is a match to a …\nAssert a std::io::Read read_to_string() is not equal to …\nAssert a std::io::Read read_to_string() is not equal to …\nAssert a std::io::Read read_to_string() is not equal to an …\nAssert a std::io::Read read_to_string() is not equal to an …\nAssert a matcher is a match for an expression.\nAssert a matcher is a match for an expression.\nAssert an expression (such as a regex) is a match for an …\nAssert a value is less than or equal to an expression.\nAssert a value is less than or equal to an expression.\nAssert a value is less than or equal to an expression.\nAssert a value is less than an expression.\nAssert a value is less than an expression.\nAssert a value is less than an expression.\nAssert an expression is not equal to an expression.\nAssert an expression is not equal to an expression.\nAssert an expression (such as a string) does not contain …\nAssert an expression (such as a string) does not contain …\nAssert an expression (such as a string) does not contain …\nAssert an expression (such as a string) does not end with …\nAssert an expression (such as a string) does not end with …\nAssert an expression (such as a string) does not end with …\nAssert an expression (such as a regex) is not a match for …\nAssert an expression (such as a regex) is not a match for …\nAssert an expression (such as a regex) is not a match for …\nAssert an expression (such as a string) does not start …\nAssert an expression (such as a string) does not start …\nAssert an expression (such as a string) does not start …\nAssert macros for Option (Some or None)\nAssert expression.is_none() is true.\nAssert an expression.is_none() is true.\nAssert expression.is_some() is true.\nAssert an expression.is_some() is true.\nAssert macros for comparing programs with arguments.\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert macros for Result (Ok or Err)\nAssert expression.is_err() is true.\nAssert an expression.is_err() is true.\nAssert expression.is_ok() is true.\nAssert an expression.is_ok() is true.\nAssert macros for comparing set collections.\nAssert a set is disjoint with another.\nAssert a set is disjoint with another.\nAssert a set is equal to another.\nAssert a set is equal to another.\nAssert a set is joint with another.\nAssert a set is joint with another.\nAssert a set is not equal to another.\nAssert a set is not equal to another.\nAssert a set is a subset of another.\nAssert a set is a subset of another.\nAssert a set is a superset of another.\nAssert a set is a superset of another.\nAssert an expression (such as a string) starts with an …\nAssert an expression (such as a string) starts with an …\nAssert an expression (such as a string) starts with an …\nAssert a bag is equal to another.\nAssert a bag is not equal to another.\nAssert a bag is a subbag of another.\nAssert a bag is a superbag of another.\nAssert a command stderr string contains a given containee.\nAssert a command stderr string is equal to another.\nAssert a command stderr string is equal to an expression.\nAssert a command stderr string is a match to a regex.\nAssert a command stdout string contains a given containee.\nAssert a command stdout string is equal to another.\nAssert a command stdout string is equal to an expression.\nAssert a command stdout string is a match to a regex.\nAssert a container is a match for an expression.\nAssert an expression (such as a string) ends with an …\nAssert a function output is equal to another function …\nAssert a function output is equal to an expression.\nAssert a function err() is equal to another.\nAssert a function err() is equal to an expression.\nAssert a function err() is greater than or equal to …\nAssert a function err() is greater than or equal to an …\nAssert a function err() is greater than another.\nAssert a function err() is greater than an expression.\nAssert a function err() is less than or equal to another.\nAssert a function err() is less than or equal to an …\nAssert a function err() is less than another.\nAssert a function err() is less than an expression.\nAssert a function err() is not equal to another.\nAssert a function err() is not equal to an expression.\nAssert a function output is greater than or equal to …\nAssert a function output is greater than or equal to an …\nAssert a function output is greater than another.\nAssert a function output is greater than an expression.\nAssert a function output is less than or equal to another.\nAssert a function output is less than or equal to an …\nAssert a function output is less than another.\nAssert a function output is less than an expression.\nAssert a function output is not equal to another.\nAssert a function output is not equal to an expression.\nAssert a function ok() is equal to another.\nAssert a function ok() is equal to an expression.\nAssert a function ok() is greater than or equal to another.\nAssert a function ok() is greater than or equal to an …\nAssert a function ok() is greater than another.\nAssert a function ok() is greater than an expression.\nAssert a function ok() is less than or equal to another.\nAssert a function ok() is less than or equal to an …\nAssert a function ok() is less than another.\nAssert a function ok() is less than an expression.\nAssert a function ok() is not equal to another.\nAssert a function ok() is not equal to an expression.\nAssert a std::fs::read_to_string() contains a pattern.\nAssert a std::fs::read_to_string() value is equal to …\nAssert a std::fs::read_to_string() value is equal to an …\nAssert a std::fs::read_to_string() value is greater than …\nAssert zzz.\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is less than or …\nAssert a std::fs::read_to_string() value is less than or …\nAssert a std::fs::read_to_string() value is less than …\nAssert a std::fs::read_to_string() value is less than an …\nAssert a std::fs::read_to_string() is a match to a regex.\nAssert a std::fs::read_to_string() is not equal to another.\nAssert a std::fs::read_to_string() is not equal to an …\nAssert a value is greater than or equal to an expression.\nAssert a value is greater than an expression.\nAssert a number is within delta of another number.\nAssert a number is within epsilon of another number.\nAssert a infix operator, such as assert_infix!(a == b).\nAssert a std::io::Read read_to_string() contains a pattern.\nAssert a std::io::Read read_to_string() value is equal to …\nAssert a std::io::Read read_to_string() value is equal to …\nAssert a std::io::Read read_to_string() value is greater …\nAssert zzz.\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() is a match to a …\nAssert a std::io::Read read_to_string() is not equal to …\nAssert a std::io::Read read_to_string() is not equal to an …\nAssert a matcher is a match for an expression.\nAssert a value is less than or equal to an expression.\nAssert a value is less than an expression.\nAssert an expression (such as a string) does not contain …\nAssert an expression (such as a string) does not end with …\nAssert an expression (such as a regex) is not a match for …\nAssert an expression (such as a string) does not start …\nAssert expression.is_none() is true.\nAssert expression.is_some() is true.\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert expression.is_err() is true.\nAssert expression.is_ok() is true.\nAssert a set is disjoint with another.\nAssert a set is equal to another.\nAssert a set is joint with another.\nAssert a set is not equal to another.\nAssert a set is a subset of another.\nAssert a set is a superset of another.\nAssert an expression (such as a string) starts with an …\nAssert a bag is equal to another.\nAssert a bag is not equal to another.\nAssert a bag is a subbag of another.\nAssert a bag is a superbag of another.\nAssert a command stderr string contains a given containee.\nAssert a command stderr string is equal to another.\nAssert a command stderr string is equal to an expression.\nAssert a command stderr string is a match to a regex.\nAssert a command stdout string contains a given containee.\nAssert a command stdout string is equal to another.\nAssert a command stdout string is equal to an expression.\nAssert a command stdout string is a match to a regex.\nAssert a function output is equal to another function …\nAssert a function output is equal to an expression.\nAssert a function output is greater than or equal to …\nAssert a function output is greater than or equal to an …\nAssert a function output is greater than another.\nAssert a function output is greater than an expression.\nAssert a function output is less than or equal to another.\nAssert a function output is less than or equal to an …\nAssert a function output is less than another.\nAssert a function output is less than an expression.\nAssert a function output is not equal to another.\nAssert a function output is not equal to an expression.\nAssert a function err() is equal to another.\nAssert a function err() is equal to an expression.\nAssert a function err() is greater than or equal to …\nAssert a function err() is greater than or equal to an …\nAssert a function err() is greater than another.\nAssert a function err() is greater than an expression.\nAssert a function err() is less than or equal to another.\nAssert a function err() is less than or equal to an …\nAssert a function err() is less than another.\nAssert a function err() is less than an expression.\nAssert a function err() is not equal to another.\nAssert a function err() is not equal to an expression.\nAssert a function ok() is equal to another.\nAssert a function ok() is equal to an expression.\nAssert a function ok() is greater than or equal to another.\nAssert a function ok() is greater than or equal to an …\nAssert a function ok() is greater than another.\nAssert a function ok() is greater than an expression.\nAssert a function ok() is less than or equal to another.\nAssert a function ok() is less than or equal to an …\nAssert a function ok() is less than another.\nAssert a function ok() is less than an expression.\nAssert a function ok() is not equal to another.\nAssert a function ok() is not equal to an expression.\nAssert a std::fs::read_to_string() contains a pattern.\nAssert a std::fs::read_to_string() value is equal to …\nAssert a std::fs::read_to_string() value is equal to an …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is greater than …\nAssert a std::fs::read_to_string() value is less than or …\nAssert a std::fs::read_to_string() value is less than or …\nAssert a std::fs::read_to_string() value is less than …\nAssert a std::fs::read_to_string() value is less than an …\nAssert a std::fs::read_to_string() is a match to a regex.\nAssert a std::fs::read_to_string() is not equal to another.\nAssert a std::fs::read_to_string() is not equal to an …\nAssert a std::io::Read read_to_string() contains a pattern.\nAssert a std::io::Read read_to_string() value is equal to …\nAssert a std::io::Read read_to_string() value is equal to …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is greater …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() value is less than …\nAssert a std::io::Read read_to_string() is a match to a …\nAssert a std::io::Read read_to_string() is not equal to …\nAssert a std::io::Read read_to_string() is not equal to an …\nAssert expression.is_none() is true.\nAssert expression.is_some() is true.\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stderr …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert a command (built with program and args) stdout …\nAssert expression.is_err() is true.\nAssert expression.is_ok() is true.\nAssert a set is disjoint with another.\nAssert a set is equal to another.\nAssert a set is joint with another.\nAssert a set is not equal to another.\nAssert a set is a subset of another.\nAssert a set is a superset of another.") \ No newline at end of file diff --git a/doc/src-files.js b/doc/src-files.js index 88820f818..4518ebc40 100644 --- a/doc/src-files.js +++ b/doc/src-files.js @@ -1,4 +1,4 @@ var srcIndex = new Map(JSON.parse('[\ -["lib",["",[],["assert.rs","assert_bag_eq.rs","assert_bag_ne.rs","assert_bag_subbag.rs","assert_bag_superbag.rs","assert_command_stderr_contains.rs","assert_command_stderr_eq.rs","assert_command_stderr_eq_expr.rs","assert_command_stderr_is_match.rs","assert_command_stdout_contains.rs","assert_command_stdout_eq.rs","assert_command_stdout_eq_expr.rs","assert_command_stdout_is_match.rs","assert_contains.rs","assert_ends_with.rs","assert_eq.rs","assert_fn_eq.rs","assert_fn_eq_expr.rs","assert_fn_err_eq.rs","assert_fn_err_eq_expr.rs","assert_fn_err_ge.rs","assert_fn_err_ge_expr.rs","assert_fn_err_gt.rs","assert_fn_err_gt_expr.rs","assert_fn_err_le.rs","assert_fn_err_le_expr.rs","assert_fn_err_lt.rs","assert_fn_err_lt_expr.rs","assert_fn_err_ne.rs","assert_fn_err_ne_expr.rs","assert_fn_ge.rs","assert_fn_ge_expr.rs","assert_fn_gt.rs","assert_fn_gt_expr.rs","assert_fn_le.rs","assert_fn_le_expr.rs","assert_fn_lt.rs","assert_fn_lt_expr.rs","assert_fn_ne.rs","assert_fn_ne_expr.rs","assert_fn_ok_eq.rs","assert_fn_ok_eq_expr.rs","assert_fn_ok_ge.rs","assert_fn_ok_ge_expr.rs","assert_fn_ok_gt.rs","assert_fn_ok_gt_expr.rs","assert_fn_ok_le.rs","assert_fn_ok_le_expr.rs","assert_fn_ok_lt.rs","assert_fn_ok_lt_expr.rs","assert_fn_ok_ne.rs","assert_fn_ok_ne_expr.rs","assert_fs_read_to_string_contains.rs","assert_fs_read_to_string_eq.rs","assert_fs_read_to_string_eq_expr.rs","assert_fs_read_to_string_ge.rs","assert_fs_read_to_string_ge_expr.rs","assert_fs_read_to_string_gt.rs","assert_fs_read_to_string_gt_expr.rs","assert_fs_read_to_string_le.rs","assert_fs_read_to_string_le_expr.rs","assert_fs_read_to_string_lt.rs","assert_fs_read_to_string_lt_expr.rs","assert_fs_read_to_string_matches.rs","assert_fs_read_to_string_ne.rs","assert_fs_read_to_string_ne_expr.rs","assert_ge.rs","assert_gt.rs","assert_in_delta.rs","assert_in_epsilon.rs","assert_io_read_to_string_contains.rs","assert_io_read_to_string_eq.rs","assert_io_read_to_string_eq_expr.rs","assert_io_read_to_string_ge.rs","assert_io_read_to_string_ge_expr.rs","assert_io_read_to_string_gt.rs","assert_io_read_to_string_gt_expr.rs","assert_io_read_to_string_le.rs","assert_io_read_to_string_le_expr.rs","assert_io_read_to_string_lt.rs","assert_io_read_to_string_lt_expr.rs","assert_io_read_to_string_matches.rs","assert_io_read_to_string_ne.rs","assert_io_read_to_string_ne_expr.rs","assert_is_match.rs","assert_le.rs","assert_lt.rs","assert_ne.rs","assert_not_contains.rs","assert_not_ends_with.rs","assert_not_match.rs","assert_not_starts_with.rs","assert_program_args_stderr_contains.rs","assert_program_args_stderr_eq.rs","assert_program_args_stderr_eq_expr.rs","assert_program_args_stderr_ge.rs","assert_program_args_stderr_ge_expr.rs","assert_program_args_stderr_gt.rs","assert_program_args_stderr_gt_expr.rs","assert_program_args_stderr_is_match.rs","assert_program_args_stderr_le.rs","assert_program_args_stderr_le_expr.rs","assert_program_args_stderr_lt.rs","assert_program_args_stderr_lt_expr.rs","assert_program_args_stderr_ne.rs","assert_program_args_stderr_ne_expr.rs","assert_program_args_stdout_contains.rs","assert_program_args_stdout_eq.rs","assert_program_args_stdout_eq_expr.rs","assert_program_args_stdout_ge.rs","assert_program_args_stdout_ge_expr.rs","assert_program_args_stdout_gt.rs","assert_program_args_stdout_gt_expr.rs","assert_program_args_stdout_is_match.rs","assert_program_args_stdout_le.rs","assert_program_args_stdout_le_expr.rs","assert_program_args_stdout_lt.rs","assert_program_args_stdout_lt_expr.rs","assert_program_args_stdout_ne.rs","assert_program_args_stdout_ne_expr.rs","assert_set_disjoint.rs","assert_set_eq.rs","assert_set_joint.rs","assert_set_ne.rs","assert_set_subset.rs","assert_set_superset.rs","assert_starts_with.rs","lib.rs"]]]\ +["lib",["",[["assert_bag",[],["assert_bag_eq.rs","assert_bag_ne.rs","assert_bag_subbag.rs","assert_bag_superbag.rs","mod.rs"]],["assert_command",[],["assert_command_stderr_contains.rs","assert_command_stderr_eq.rs","assert_command_stderr_eq_expr.rs","assert_command_stderr_is_match.rs","assert_command_stdout_contains.rs","assert_command_stdout_eq.rs","assert_command_stdout_eq_expr.rs","assert_command_stdout_is_match.rs","mod.rs"]],["assert_fn",[],["assert_fn_eq.rs","assert_fn_eq_expr.rs","assert_fn_ge.rs","assert_fn_ge_expr.rs","assert_fn_gt.rs","assert_fn_gt_expr.rs","assert_fn_le.rs","assert_fn_le_expr.rs","assert_fn_lt.rs","assert_fn_lt_expr.rs","assert_fn_ne.rs","assert_fn_ne_expr.rs","mod.rs"]],["assert_fn_err",[],["assert_fn_err_eq.rs","assert_fn_err_eq_expr.rs","assert_fn_err_ge.rs","assert_fn_err_ge_expr.rs","assert_fn_err_gt.rs","assert_fn_err_gt_expr.rs","assert_fn_err_le.rs","assert_fn_err_le_expr.rs","assert_fn_err_lt.rs","assert_fn_err_lt_expr.rs","assert_fn_err_ne.rs","assert_fn_err_ne_expr.rs","mod.rs"]],["assert_fn_ok",[],["assert_fn_ok_eq.rs","assert_fn_ok_eq_expr.rs","assert_fn_ok_ge.rs","assert_fn_ok_ge_expr.rs","assert_fn_ok_gt.rs","assert_fn_ok_gt_expr.rs","assert_fn_ok_le.rs","assert_fn_ok_le_expr.rs","assert_fn_ok_lt.rs","assert_fn_ok_lt_expr.rs","assert_fn_ok_ne.rs","assert_fn_ok_ne_expr.rs","mod.rs"]],["assert_fs_read_to_string",[],["assert_fs_read_to_string_contains.rs","assert_fs_read_to_string_eq.rs","assert_fs_read_to_string_eq_expr.rs","assert_fs_read_to_string_ge.rs","assert_fs_read_to_string_ge_expr.rs","assert_fs_read_to_string_gt.rs","assert_fs_read_to_string_gt_expr.rs","assert_fs_read_to_string_le.rs","assert_fs_read_to_string_le_expr.rs","assert_fs_read_to_string_lt.rs","assert_fs_read_to_string_lt_expr.rs","assert_fs_read_to_string_matches.rs","assert_fs_read_to_string_ne.rs","assert_fs_read_to_string_ne_expr.rs","mod.rs"]],["assert_io_read_to_string",[],["assert_io_read_to_string_contains.rs","assert_io_read_to_string_eq.rs","assert_io_read_to_string_eq_expr.rs","assert_io_read_to_string_ge.rs","assert_io_read_to_string_ge_expr.rs","assert_io_read_to_string_gt.rs","assert_io_read_to_string_gt_expr.rs","assert_io_read_to_string_le.rs","assert_io_read_to_string_le_expr.rs","assert_io_read_to_string_lt.rs","assert_io_read_to_string_lt_expr.rs","assert_io_read_to_string_matches.rs","assert_io_read_to_string_ne.rs","assert_io_read_to_string_ne_expr.rs","mod.rs"]],["assert_option",[],["assert_option_none.rs","assert_option_some.rs","mod.rs"]],["assert_program_args",[],["assert_program_args_stderr_contains.rs","assert_program_args_stderr_eq.rs","assert_program_args_stderr_eq_expr.rs","assert_program_args_stderr_ge.rs","assert_program_args_stderr_ge_expr.rs","assert_program_args_stderr_gt.rs","assert_program_args_stderr_gt_expr.rs","assert_program_args_stderr_is_match.rs","assert_program_args_stderr_le.rs","assert_program_args_stderr_le_expr.rs","assert_program_args_stderr_lt.rs","assert_program_args_stderr_lt_expr.rs","assert_program_args_stderr_ne.rs","assert_program_args_stderr_ne_expr.rs","assert_program_args_stdout_contains.rs","assert_program_args_stdout_eq.rs","assert_program_args_stdout_eq_expr.rs","assert_program_args_stdout_ge.rs","assert_program_args_stdout_ge_expr.rs","assert_program_args_stdout_gt.rs","assert_program_args_stdout_gt_expr.rs","assert_program_args_stdout_is_match.rs","assert_program_args_stdout_le.rs","assert_program_args_stdout_le_expr.rs","assert_program_args_stdout_lt.rs","assert_program_args_stdout_lt_expr.rs","assert_program_args_stdout_ne.rs","assert_program_args_stdout_ne_expr.rs","mod.rs"]],["assert_result",[],["assert_result_err.rs","assert_result_ok.rs","mod.rs"]],["assert_set",[],["assert_set_disjoint.rs","assert_set_eq.rs","assert_set_joint.rs","assert_set_ne.rs","assert_set_subset.rs","assert_set_superset.rs","mod.rs"]]],["assert.rs","assert_contains.rs","assert_ends_with.rs","assert_eq.rs","assert_ge.rs","assert_gt.rs","assert_in_delta.rs","assert_in_epsilon.rs","assert_infix.rs","assert_is_match.rs","assert_le.rs","assert_lt.rs","assert_ne.rs","assert_not_contains.rs","assert_not_ends_with.rs","assert_not_match.rs","assert_not_starts_with.rs","assert_starts_with.rs","lib.rs"]]]\ ]')); createSrcSidebar(); diff --git a/doc/src/lib/assert_bag_eq.rs.html b/doc/src/lib/assert_bag/assert_bag_eq.rs.html similarity index 90% rename from doc/src/lib/assert_bag_eq.rs.html rename to doc/src/lib/assert_bag/assert_bag_eq.rs.html index 21eb2767b..a0544d424 100644 --- a/doc/src/lib/assert_bag_eq.rs.html +++ b/doc/src/lib/assert_bag/assert_bag_eq.rs.html @@ -1,4 +1,4 @@ -assert_bag_eq.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_bag_eq.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -264,7 +264,7 @@
                                                                                                                                                                                                                                                   264
                                                                                                                                                                                                                                                   265
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  //! Assert a bag is equal to another.
                                                                                                                                                                                                                                                  -//! 
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                   //! * If true, return `()`.
                                                                                                                                                                                                                                                   //!
                                                                                                                                                                                                                                                   //! * Otherwise, call [`panic!`] in order to print the values of the
                                                                                                                                                                                                                                                  @@ -315,7 +315,7 @@
                                                                                                                                                                                                                                                   //! assert_eq!(actual, expect);
                                                                                                                                                                                                                                                   //! # }
                                                                                                                                                                                                                                                   //! ```
                                                                                                                                                                                                                                                  -//! 
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                   //! # Module macros
                                                                                                                                                                                                                                                   //!
                                                                                                                                                                                                                                                   //! * [`assert_bag_eq`](macro@crate::assert_bag_eq)
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_bag_ne.rs.html b/doc/src/lib/assert_bag/assert_bag_ne.rs.html
                                                                                                                                                                                                                                                  similarity index 90%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_bag_ne.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_bag/assert_bag_ne.rs.html
                                                                                                                                                                                                                                                  index d828fe10e..38e5ba830 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_bag_ne.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_bag/assert_bag_ne.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_bag_ne.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_bag_ne.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_bag_subbag.rs.html b/doc/src/lib/assert_bag/assert_bag_subbag.rs.html
                                                                                                                                                                                                                                                  similarity index 92%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_bag_subbag.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_bag/assert_bag_subbag.rs.html
                                                                                                                                                                                                                                                  index 43de29c01..6220b89c2 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_bag_subbag.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_bag/assert_bag_subbag.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_bag_subbag.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_bag_subbag.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_bag_superbag.rs.html b/doc/src/lib/assert_bag/assert_bag_superbag.rs.html
                                                                                                                                                                                                                                                  similarity index 92%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_bag_superbag.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_bag/assert_bag_superbag.rs.html
                                                                                                                                                                                                                                                  index 629cdc1ba..1757f0861 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_bag_superbag.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_bag/assert_bag_superbag.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_bag_superbag.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_bag_superbag.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_bag/mod.rs.html b/doc/src/lib/assert_bag/mod.rs.html
                                                                                                                                                                                                                                                  new file mode 100644
                                                                                                                                                                                                                                                  index 000000000..25ff0010a
                                                                                                                                                                                                                                                  --- /dev/null
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_bag/mod.rs.html
                                                                                                                                                                                                                                                  @@ -0,0 +1,71 @@
                                                                                                                                                                                                                                                  +mod.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +2
                                                                                                                                                                                                                                                  +3
                                                                                                                                                                                                                                                  +4
                                                                                                                                                                                                                                                  +5
                                                                                                                                                                                                                                                  +6
                                                                                                                                                                                                                                                  +7
                                                                                                                                                                                                                                                  +8
                                                                                                                                                                                                                                                  +9
                                                                                                                                                                                                                                                  +10
                                                                                                                                                                                                                                                  +11
                                                                                                                                                                                                                                                  +12
                                                                                                                                                                                                                                                  +13
                                                                                                                                                                                                                                                  +14
                                                                                                                                                                                                                                                  +15
                                                                                                                                                                                                                                                  +16
                                                                                                                                                                                                                                                  +17
                                                                                                                                                                                                                                                  +18
                                                                                                                                                                                                                                                  +19
                                                                                                                                                                                                                                                  +20
                                                                                                                                                                                                                                                  +21
                                                                                                                                                                                                                                                  +22
                                                                                                                                                                                                                                                  +23
                                                                                                                                                                                                                                                  +24
                                                                                                                                                                                                                                                  +25
                                                                                                                                                                                                                                                  +26
                                                                                                                                                                                                                                                  +27
                                                                                                                                                                                                                                                  +28
                                                                                                                                                                                                                                                  +29
                                                                                                                                                                                                                                                  +30
                                                                                                                                                                                                                                                  +31
                                                                                                                                                                                                                                                  +32
                                                                                                                                                                                                                                                  +33
                                                                                                                                                                                                                                                  +34
                                                                                                                                                                                                                                                  +35
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  //! Assert macros for comparing bags.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! These macros help with comparison of bag parameters, such as comparison of
                                                                                                                                                                                                                                                  +//! two arrays or two vectors, where the item order does not matter, and the
                                                                                                                                                                                                                                                  +//! item count does matter. These macros convert their inputs into HashMap
                                                                                                                                                                                                                                                  +//! iterators.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! For eq & ne:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_bag_eq!(a, b)`](macro@crate::assert_bag_eq) ≈ bag a = bag b
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_bag_ne!(a, b)`](macro@crate::assert_bag_ne) ≈ bag a ≠ bag b
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! For subbag & superbag:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_bag_subbag(a, b)`](macro@crate::assert_bag_subbag) ≈ bag a ⊆ bag b
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_bag_superbag!(a, b)`](macro@crate::assert_bag_superbag) ≈ bag a ⊇ bag b
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # Example
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! ```rust
                                                                                                                                                                                                                                                  +//! # #[macro_use] extern crate assertables;
                                                                                                                                                                                                                                                  +//! # fn main() {
                                                                                                                                                                                                                                                  +//! let a = [1, 1];
                                                                                                                                                                                                                                                  +//! let b = [1, 1];
                                                                                                                                                                                                                                                  +//! assert_bag_eq!(&a, &b);
                                                                                                                                                                                                                                                  +//! # }
                                                                                                                                                                                                                                                  +//! ```
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +pub mod assert_bag_eq;
                                                                                                                                                                                                                                                  +pub mod assert_bag_ne;
                                                                                                                                                                                                                                                  +pub mod assert_bag_subbag;
                                                                                                                                                                                                                                                  +pub mod assert_bag_superbag;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/src/lib/assert_command_stderr_contains.rs.html b/doc/src/lib/assert_command/assert_command_stderr_contains.rs.html similarity index 91% rename from doc/src/lib/assert_command_stderr_contains.rs.html rename to doc/src/lib/assert_command/assert_command_stderr_contains.rs.html index 0e486a0f9..d14bd7470 100644 --- a/doc/src/lib/assert_command_stderr_contains.rs.html +++ b/doc/src/lib/assert_command/assert_command_stderr_contains.rs.html @@ -1,4 +1,4 @@ -assert_command_stderr_contains.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_command_stderr_contains.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_command_stderr_eq.rs.html b/doc/src/lib/assert_command/assert_command_stderr_eq.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_command_stderr_eq.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_command/assert_command_stderr_eq.rs.html
                                                                                                                                                                                                                                                  index fdd768d81..d61612289 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_command_stderr_eq.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_command/assert_command_stderr_eq.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_command_stderr_eq.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_command_stderr_eq.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_command_stderr_eq_expr.rs.html b/doc/src/lib/assert_command/assert_command_stderr_eq_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_command_stderr_eq_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_command/assert_command_stderr_eq_expr.rs.html
                                                                                                                                                                                                                                                  index 291b3b4ce..299f5d785 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_command_stderr_eq_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_command/assert_command_stderr_eq_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_command_stderr_eq_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_command_stderr_eq_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_command_stderr_is_match.rs.html b/doc/src/lib/assert_command/assert_command_stderr_is_match.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_command_stderr_is_match.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_command/assert_command_stderr_is_match.rs.html
                                                                                                                                                                                                                                                  index 434a0f9e9..f5aadeabc 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_command_stderr_is_match.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_command/assert_command_stderr_is_match.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_command_stderr_is_match.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_command_stderr_is_match.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_command_stdout_contains.rs.html b/doc/src/lib/assert_command/assert_command_stdout_contains.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_command_stdout_contains.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_command/assert_command_stdout_contains.rs.html
                                                                                                                                                                                                                                                  index 77030602a..b02b304e3 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_command_stdout_contains.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_command/assert_command_stdout_contains.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_command_stdout_contains.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_command_stdout_contains.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_command_stdout_eq.rs.html b/doc/src/lib/assert_command/assert_command_stdout_eq.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_command_stdout_eq.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_command/assert_command_stdout_eq.rs.html
                                                                                                                                                                                                                                                  index b992ea26f..d8f48bc79 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_command_stdout_eq.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_command/assert_command_stdout_eq.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_command_stdout_eq.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_command_stdout_eq.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_command_stdout_eq_expr.rs.html b/doc/src/lib/assert_command/assert_command_stdout_eq_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_command_stdout_eq_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_command/assert_command_stdout_eq_expr.rs.html
                                                                                                                                                                                                                                                  index 77b48bc95..8324305b3 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_command_stdout_eq_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_command/assert_command_stdout_eq_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_command_stdout_eq_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_command_stdout_eq_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_command_stdout_is_match.rs.html b/doc/src/lib/assert_command/assert_command_stdout_is_match.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_command_stdout_is_match.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_command/assert_command_stdout_is_match.rs.html
                                                                                                                                                                                                                                                  index 0a0fcae0a..c44c330fe 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_command_stdout_is_match.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_command/assert_command_stdout_is_match.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_command_stdout_is_match.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_command_stdout_is_match.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_command/mod.rs.html b/doc/src/lib/assert_command/mod.rs.html
                                                                                                                                                                                                                                                  new file mode 100644
                                                                                                                                                                                                                                                  index 000000000..84b7d5db3
                                                                                                                                                                                                                                                  --- /dev/null
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_command/mod.rs.html
                                                                                                                                                                                                                                                  @@ -0,0 +1,117 @@
                                                                                                                                                                                                                                                  +mod.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +2
                                                                                                                                                                                                                                                  +3
                                                                                                                                                                                                                                                  +4
                                                                                                                                                                                                                                                  +5
                                                                                                                                                                                                                                                  +6
                                                                                                                                                                                                                                                  +7
                                                                                                                                                                                                                                                  +8
                                                                                                                                                                                                                                                  +9
                                                                                                                                                                                                                                                  +10
                                                                                                                                                                                                                                                  +11
                                                                                                                                                                                                                                                  +12
                                                                                                                                                                                                                                                  +13
                                                                                                                                                                                                                                                  +14
                                                                                                                                                                                                                                                  +15
                                                                                                                                                                                                                                                  +16
                                                                                                                                                                                                                                                  +17
                                                                                                                                                                                                                                                  +18
                                                                                                                                                                                                                                                  +19
                                                                                                                                                                                                                                                  +20
                                                                                                                                                                                                                                                  +21
                                                                                                                                                                                                                                                  +22
                                                                                                                                                                                                                                                  +23
                                                                                                                                                                                                                                                  +24
                                                                                                                                                                                                                                                  +25
                                                                                                                                                                                                                                                  +26
                                                                                                                                                                                                                                                  +27
                                                                                                                                                                                                                                                  +28
                                                                                                                                                                                                                                                  +29
                                                                                                                                                                                                                                                  +30
                                                                                                                                                                                                                                                  +31
                                                                                                                                                                                                                                                  +32
                                                                                                                                                                                                                                                  +33
                                                                                                                                                                                                                                                  +34
                                                                                                                                                                                                                                                  +35
                                                                                                                                                                                                                                                  +36
                                                                                                                                                                                                                                                  +37
                                                                                                                                                                                                                                                  +38
                                                                                                                                                                                                                                                  +39
                                                                                                                                                                                                                                                  +40
                                                                                                                                                                                                                                                  +41
                                                                                                                                                                                                                                                  +42
                                                                                                                                                                                                                                                  +43
                                                                                                                                                                                                                                                  +44
                                                                                                                                                                                                                                                  +45
                                                                                                                                                                                                                                                  +46
                                                                                                                                                                                                                                                  +47
                                                                                                                                                                                                                                                  +48
                                                                                                                                                                                                                                                  +49
                                                                                                                                                                                                                                                  +50
                                                                                                                                                                                                                                                  +51
                                                                                                                                                                                                                                                  +52
                                                                                                                                                                                                                                                  +53
                                                                                                                                                                                                                                                  +54
                                                                                                                                                                                                                                                  +55
                                                                                                                                                                                                                                                  +56
                                                                                                                                                                                                                                                  +57
                                                                                                                                                                                                                                                  +58
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  //! Assert macros for comparing commands and their stdout & stderr.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! These macros help with calling external commands, then capturing the
                                                                                                                                                                                                                                                  +//! standard output stream and standard error stream.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! These macros have corresponding the macros in the module [`assert_program_args`](module@crate::assert_program_args).
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! Compare command standard output string:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_command_stdout_eq!(command1, command2)`](macro@crate::assert_command_stdout_eq) ≈ command1 stdout = command2 stdout
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_command_stdout_eq_expr!(command, expr)`](macro@crate::assert_command_stdout_eq_expr) ≈ command stdout = expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_command_stdout_contains!(command, containee)`](macro@crate::assert_command_stdout_contains) ≈ command stdout contains containee
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_command_stdout_is_match!(command, matcher)`](macro@crate::assert_command_stdout_is_match) ≈ command stdout is a matcher match
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! Compare command standard error string:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_command_stderr_eq!(command1, command2)`](macro@crate::assert_command_stderr_eq) ≈ command1 stderr = command2 stderr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_command_stderr_eq_expr!(command, expr)`](macro@crate::assert_command_stderr_eq_expr) ≈ command stderr = expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_command_stderr_contains!(command, containee)`](macro@crate::assert_command_stderr_contains) ≈ command stderr contains containee
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_command_stderr_is_match!(command, matcher)`](macro@crate::assert_command_stderr_is_match) ≈ command stderr is a matcher match
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # Example
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! ```rust
                                                                                                                                                                                                                                                  +//! # #[macro_use] extern crate assertables;
                                                                                                                                                                                                                                                  +//! use std::process::Command;
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # fn main() {
                                                                                                                                                                                                                                                  +//! let mut a = Command::new("bin/printf-stdout");
                                                                                                                                                                                                                                                  +//! a.args(["%s", "hello"]);
                                                                                                                                                                                                                                                  +//! let mut b = Command::new("bin/printf-stdout");
                                                                                                                                                                                                                                                  +//! b.args(["%s%s%s%s%s", "h", "e", "l", "l", "o"]);
                                                                                                                                                                                                                                                  +//! assert_command_stdout_eq!(a, b);
                                                                                                                                                                                                                                                  +//! # }
                                                                                                                                                                                                                                                  +//! ```
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +// stdout
                                                                                                                                                                                                                                                  +pub mod assert_command_stdout_eq;
                                                                                                                                                                                                                                                  +pub mod assert_command_stdout_eq_expr;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +// stdout searches
                                                                                                                                                                                                                                                  +pub mod assert_command_stdout_contains;
                                                                                                                                                                                                                                                  +pub mod assert_command_stdout_is_match;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +// stderr
                                                                                                                                                                                                                                                  +pub mod assert_command_stderr_eq;
                                                                                                                                                                                                                                                  +pub mod assert_command_stderr_eq_expr;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +// stderr searchers
                                                                                                                                                                                                                                                  +pub mod assert_command_stderr_contains;
                                                                                                                                                                                                                                                  +pub mod assert_command_stderr_is_match;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/src/lib/assert_eq.rs.html b/doc/src/lib/assert_eq.rs.html index 5c0ecb7b4..27e194367 100644 --- a/doc/src/lib/assert_eq.rs.html +++ b/doc/src/lib/assert_eq.rs.html @@ -117,9 +117,9 @@ //! # Module macro //! //! * [`assert_eq_as_result`](macro@crate::assert_eq_as_result) -//! +//! //! # Rust standard macros -//! +//! //! * [`assert_eq`](https://doc.rust-lang.org/std/macro.assert_eq.html) //! * [`debug_assert_eq`](https://doc.rust-lang.org/std/macro.debug_assert_eq.html) diff --git a/doc/src/lib/assert_fn_eq.rs.html b/doc/src/lib/assert_fn/assert_fn_eq.rs.html similarity index 90% rename from doc/src/lib/assert_fn_eq.rs.html rename to doc/src/lib/assert_fn/assert_fn_eq.rs.html index d05b34c9b..bdf867e55 100644 --- a/doc/src/lib/assert_fn_eq.rs.html +++ b/doc/src/lib/assert_fn/assert_fn_eq.rs.html @@ -1,4 +1,4 @@ -assert_fn_eq.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_eq.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -365,26 +365,26 @@
                                                                                                                                                                                                                                                   //! # use std::panic;
                                                                                                                                                                                                                                                   //! # fn main() {
                                                                                                                                                                                                                                                   //! // Return Ok
                                                                                                                                                                                                                                                  -//! let a: i32 = -1;
                                                                                                                                                                                                                                                  -//! let b: i32 = 1;
                                                                                                                                                                                                                                                  -//! assert_fn_eq!(i32::abs, a, i32::abs, b);
                                                                                                                                                                                                                                                  +//! let a: i8 = -1;
                                                                                                                                                                                                                                                  +//! let b: i8 = 1;
                                                                                                                                                                                                                                                  +//! assert_fn_eq!(i8::abs, a, i8::abs, b);
                                                                                                                                                                                                                                                   //! //-> ()
                                                                                                                                                                                                                                                   //!
                                                                                                                                                                                                                                                   //! // Panic with error message
                                                                                                                                                                                                                                                   //! let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -//! let a: i32 = -1;
                                                                                                                                                                                                                                                  -//! let b: i32 = 2;
                                                                                                                                                                                                                                                  -//! assert_fn_eq!(i32::abs, a, i32::abs, b);
                                                                                                                                                                                                                                                  +//! let a: i8 = -1;
                                                                                                                                                                                                                                                  +//! let b: i8 = 2;
                                                                                                                                                                                                                                                  +//! assert_fn_eq!(i8::abs, a, i8::abs, b);
                                                                                                                                                                                                                                                   //! //-> panic!
                                                                                                                                                                                                                                                   //! });
                                                                                                                                                                                                                                                   //! assert!(result.is_err());
                                                                                                                                                                                                                                                   //! let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                   //! let expect = concat!(
                                                                                                                                                                                                                                                   //!     "assertion failed: `assert_fn_eq!(left_function, left_param, right_function, right_param)`\n",
                                                                                                                                                                                                                                                  -//!     "  left_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +//!     "  left_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   //!     "     left_param label: `a`,\n",
                                                                                                                                                                                                                                                   //!     "     left_param debug: `-1`,\n",
                                                                                                                                                                                                                                                  -//!     " right_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +//!     " right_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   //!     "    right_param label: `b`,\n",
                                                                                                                                                                                                                                                   //!     "    right_param debug: `2`,\n",
                                                                                                                                                                                                                                                   //!     "                 left: `1`,\n",
                                                                                                                                                                                                                                                  @@ -394,9 +394,9 @@
                                                                                                                                                                                                                                                   //!
                                                                                                                                                                                                                                                   //! // Panic with error message
                                                                                                                                                                                                                                                   //! let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -//! let a: i32 = -1;
                                                                                                                                                                                                                                                  -//! let b: i32 = 2;
                                                                                                                                                                                                                                                  -//! assert_fn_eq!(i32::abs, a, i32::abs, b, "message");
                                                                                                                                                                                                                                                  +//! let a: i8 = -1;
                                                                                                                                                                                                                                                  +//! let b: i8 = 2;
                                                                                                                                                                                                                                                  +//! assert_fn_eq!(i8::abs, a, i8::abs, b, "message");
                                                                                                                                                                                                                                                   //! //-> panic!
                                                                                                                                                                                                                                                   //! });
                                                                                                                                                                                                                                                   //! assert!(result.is_err());
                                                                                                                                                                                                                                                  @@ -435,7 +435,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_output = $a_function($a_param);
                                                                                                                                                                                                                                                           let b_output = $b_function($b_param);
                                                                                                                                                                                                                                                           if a_output == b_output {
                                                                                                                                                                                                                                                  @@ -584,26 +584,26 @@
                                                                                                                                                                                                                                                   /// # use std::panic;
                                                                                                                                                                                                                                                   /// # fn main() {
                                                                                                                                                                                                                                                   /// // Return Ok
                                                                                                                                                                                                                                                  -/// let a: i32 = -1;
                                                                                                                                                                                                                                                  -/// let b: i32 = 1;
                                                                                                                                                                                                                                                  -/// assert_fn_eq!(i32::abs, a, i32::abs, b);
                                                                                                                                                                                                                                                  +/// let a: i8 = -1;
                                                                                                                                                                                                                                                  +/// let b: i8 = 1;
                                                                                                                                                                                                                                                  +/// assert_fn_eq!(i8::abs, a, i8::abs, b);
                                                                                                                                                                                                                                                   /// //-> ()
                                                                                                                                                                                                                                                   ///
                                                                                                                                                                                                                                                   /// // Panic with error message
                                                                                                                                                                                                                                                   /// let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -/// let a: i32 = -1;
                                                                                                                                                                                                                                                  -/// let b: i32 = 2;
                                                                                                                                                                                                                                                  -/// assert_fn_eq!(i32::abs, a, i32::abs, b);
                                                                                                                                                                                                                                                  +/// let a: i8 = -1;
                                                                                                                                                                                                                                                  +/// let b: i8 = 2;
                                                                                                                                                                                                                                                  +/// assert_fn_eq!(i8::abs, a, i8::abs, b);
                                                                                                                                                                                                                                                   /// //-> panic!
                                                                                                                                                                                                                                                   /// });
                                                                                                                                                                                                                                                   /// assert!(result.is_err());
                                                                                                                                                                                                                                                   /// let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                   /// let expect = concat!(
                                                                                                                                                                                                                                                   ///     "assertion failed: `assert_fn_eq!(left_function, left_param, right_function, right_param)`\n",
                                                                                                                                                                                                                                                  -///     "  left_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +///     "  left_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   ///     "     left_param label: `a`,\n",
                                                                                                                                                                                                                                                   ///     "     left_param debug: `-1`,\n",
                                                                                                                                                                                                                                                  -///     " right_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +///     " right_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   ///     "    right_param label: `b`,\n",
                                                                                                                                                                                                                                                   ///     "    right_param debug: `2`,\n",
                                                                                                                                                                                                                                                   ///     "                 left: `1`,\n",
                                                                                                                                                                                                                                                  @@ -613,9 +613,9 @@
                                                                                                                                                                                                                                                   ///
                                                                                                                                                                                                                                                   /// // Panic with error message
                                                                                                                                                                                                                                                   /// let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -/// let a: i32 = -1;
                                                                                                                                                                                                                                                  -/// let b: i32 = 2;
                                                                                                                                                                                                                                                  -/// assert_fn_eq!(i32::abs, a, i32::abs, b, "message");
                                                                                                                                                                                                                                                  +/// let a: i8 = -1;
                                                                                                                                                                                                                                                  +/// let b: i8 = 2;
                                                                                                                                                                                                                                                  +/// assert_fn_eq!(i8::abs, a, i8::abs, b, "message");
                                                                                                                                                                                                                                                   /// //-> panic!
                                                                                                                                                                                                                                                   /// });
                                                                                                                                                                                                                                                   /// assert!(result.is_err());
                                                                                                                                                                                                                                                  @@ -636,7 +636,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_eq_as_result!($a_function, $a_param, $b_function, $b_param) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_eq_expr.rs.html b/doc/src/lib/assert_fn/assert_fn_eq_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 89%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_eq_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn/assert_fn_eq_expr.rs.html
                                                                                                                                                                                                                                                  index a23c06b16..6f6c8350c 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_eq_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn/assert_fn_eq_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_eq_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_eq_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -350,23 +350,23 @@
                                                                                                                                                                                                                                                   //! # use std::panic;
                                                                                                                                                                                                                                                   //! # fn main() {
                                                                                                                                                                                                                                                   //! // Return Ok
                                                                                                                                                                                                                                                  -//! let a: i32 = -1;
                                                                                                                                                                                                                                                  -//! let b: i32 = 1;
                                                                                                                                                                                                                                                  -//! assert_fn_eq_expr!(i32::abs, a, b);
                                                                                                                                                                                                                                                  +//! let a: i8 = -1;
                                                                                                                                                                                                                                                  +//! let b: i8 = 1;
                                                                                                                                                                                                                                                  +//! assert_fn_eq_expr!(i8::abs, a, b);
                                                                                                                                                                                                                                                   //! //-> ()
                                                                                                                                                                                                                                                   //!
                                                                                                                                                                                                                                                  -//! let a: i32 = -1;
                                                                                                                                                                                                                                                  -//! let b: i32 = 2;
                                                                                                                                                                                                                                                  +//! let a: i8 = -1;
                                                                                                                                                                                                                                                  +//! let b: i8 = 2;
                                                                                                                                                                                                                                                   //! // Panic with error message
                                                                                                                                                                                                                                                   //! let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -//! assert_fn_eq_expr!(i32::abs, a, b);
                                                                                                                                                                                                                                                  +//! assert_fn_eq_expr!(i8::abs, a, b);
                                                                                                                                                                                                                                                   //! //-> panic!
                                                                                                                                                                                                                                                   //! });
                                                                                                                                                                                                                                                   //! assert!(result.is_err());
                                                                                                                                                                                                                                                   //! let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                   //! let expect = concat!(
                                                                                                                                                                                                                                                   //!     "assertion failed: `assert_fn_eq_expr!(left_function, left_param, right_expr)`\n",
                                                                                                                                                                                                                                                  -//!     " left_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +//!     " left_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   //!     "    left_param label: `a`,\n",
                                                                                                                                                                                                                                                   //!     "    left_param debug: `-1`,\n",
                                                                                                                                                                                                                                                   //!     "    right_expr label: `b`,\n",
                                                                                                                                                                                                                                                  @@ -378,7 +378,7 @@
                                                                                                                                                                                                                                                   //!
                                                                                                                                                                                                                                                   //! // Panic with error message
                                                                                                                                                                                                                                                   //! let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -//! assert_fn_eq_expr!(i32::abs, a, b, "message");
                                                                                                                                                                                                                                                  +//! assert_fn_eq_expr!(i8::abs, a, b, "message");
                                                                                                                                                                                                                                                   //! //-> panic!
                                                                                                                                                                                                                                                   //! });
                                                                                                                                                                                                                                                   //! assert!(result.is_err());
                                                                                                                                                                                                                                                  @@ -417,7 +417,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_output = $a_function($a_param);
                                                                                                                                                                                                                                                           if a_output == $b_expr {
                                                                                                                                                                                                                                                               Ok(())
                                                                                                                                                                                                                                                  @@ -444,7 +444,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_output = $a_function();
                                                                                                                                                                                                                                                           if a_output == $b_expr {
                                                                                                                                                                                                                                                               Ok(())
                                                                                                                                                                                                                                                  @@ -557,23 +557,23 @@
                                                                                                                                                                                                                                                   /// # use std::panic;
                                                                                                                                                                                                                                                   /// # fn main() {
                                                                                                                                                                                                                                                   /// // Return Ok
                                                                                                                                                                                                                                                  -/// let a: i32 = -1;
                                                                                                                                                                                                                                                  -/// let b: i32 = 1;
                                                                                                                                                                                                                                                  -/// assert_fn_eq_expr!(i32::abs, a, b);
                                                                                                                                                                                                                                                  +/// let a: i8 = -1;
                                                                                                                                                                                                                                                  +/// let b: i8 = 1;
                                                                                                                                                                                                                                                  +/// assert_fn_eq_expr!(i8::abs, a, b);
                                                                                                                                                                                                                                                   /// //-> ()
                                                                                                                                                                                                                                                   ///
                                                                                                                                                                                                                                                  -/// let a: i32 = -1;
                                                                                                                                                                                                                                                  -/// let b: i32 = 2;
                                                                                                                                                                                                                                                  +/// let a: i8 = -1;
                                                                                                                                                                                                                                                  +/// let b: i8 = 2;
                                                                                                                                                                                                                                                   /// // Panic with error message
                                                                                                                                                                                                                                                   /// let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -/// assert_fn_eq_expr!(i32::abs, a, b);
                                                                                                                                                                                                                                                  +/// assert_fn_eq_expr!(i8::abs, a, b);
                                                                                                                                                                                                                                                   /// //-> panic!
                                                                                                                                                                                                                                                   /// });
                                                                                                                                                                                                                                                   /// assert!(result.is_err());
                                                                                                                                                                                                                                                   /// let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                   /// let expect = concat!(
                                                                                                                                                                                                                                                   ///     "assertion failed: `assert_fn_eq_expr!(left_function, left_param, right_expr)`\n",
                                                                                                                                                                                                                                                  -///     " left_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +///     " left_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   ///     "    left_param label: `a`,\n",
                                                                                                                                                                                                                                                   ///     "    left_param debug: `-1`,\n",
                                                                                                                                                                                                                                                   ///     "    right_expr label: `b`,\n",
                                                                                                                                                                                                                                                  @@ -585,7 +585,7 @@
                                                                                                                                                                                                                                                   ///
                                                                                                                                                                                                                                                   /// // Panic with error message
                                                                                                                                                                                                                                                   /// let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -/// assert_fn_eq_expr!(i32::abs, a, b, "message");
                                                                                                                                                                                                                                                  +/// assert_fn_eq_expr!(i8::abs, a, b, "message");
                                                                                                                                                                                                                                                   /// //-> panic!
                                                                                                                                                                                                                                                   /// });
                                                                                                                                                                                                                                                   /// assert!(result.is_err());
                                                                                                                                                                                                                                                  @@ -606,7 +606,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_eq_expr_as_result!($a_function, $a_param, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  @@ -622,7 +622,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_eq_expr_as_result!($a_function, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_ge.rs.html b/doc/src/lib/assert_fn/assert_fn_ge.rs.html
                                                                                                                                                                                                                                                  similarity index 90%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_ge.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn/assert_fn_ge.rs.html
                                                                                                                                                                                                                                                  index 0c072450c..df7113834 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_ge.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn/assert_fn_ge.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_ge.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_ge.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -355,26 +355,26 @@
                                                                                                                                                                                                                                                   //! # use std::panic;
                                                                                                                                                                                                                                                   //! # fn main() {
                                                                                                                                                                                                                                                   //! // Return Ok
                                                                                                                                                                                                                                                  -//! let a: i32 = -2;
                                                                                                                                                                                                                                                  -//! let b: i32 = 1;
                                                                                                                                                                                                                                                  -//! assert_fn_ge!(i32::abs, a, i32::abs, b);
                                                                                                                                                                                                                                                  +//! let a: i8 = -2;
                                                                                                                                                                                                                                                  +//! let b: i8 = 1;
                                                                                                                                                                                                                                                  +//! assert_fn_ge!(i8::abs, a, i8::abs, b);
                                                                                                                                                                                                                                                   //! //-> ()
                                                                                                                                                                                                                                                   //!
                                                                                                                                                                                                                                                   //! // Panic with error message
                                                                                                                                                                                                                                                   //! let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -//! let a: i32 = 1;
                                                                                                                                                                                                                                                  -//! let b: i32 = -2;
                                                                                                                                                                                                                                                  -//! assert_fn_ge!(i32::abs, a, i32::abs, b);
                                                                                                                                                                                                                                                  +//! let a: i8 = 1;
                                                                                                                                                                                                                                                  +//! let b: i8 = -2;
                                                                                                                                                                                                                                                  +//! assert_fn_ge!(i8::abs, a, i8::abs, b);
                                                                                                                                                                                                                                                   //! //-> panic!
                                                                                                                                                                                                                                                   //! });
                                                                                                                                                                                                                                                   //! assert!(result.is_err());
                                                                                                                                                                                                                                                   //! let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                   //! let expect = concat!(
                                                                                                                                                                                                                                                   //!     "assertion failed: `assert_fn_ge!(left_function, left_param, right_function, right_param)`\n",
                                                                                                                                                                                                                                                  -//!     "  left_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +//!     "  left_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   //!     "     left_param label: `a`,\n",
                                                                                                                                                                                                                                                   //!     "     left_param debug: `1`,\n",
                                                                                                                                                                                                                                                  -//!     " right_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +//!     " right_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   //!     "    right_param label: `b`,\n",
                                                                                                                                                                                                                                                   //!     "    right_param debug: `-2`,\n",
                                                                                                                                                                                                                                                   //!     "                 left: `1`,\n",
                                                                                                                                                                                                                                                  @@ -413,7 +413,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_output = $a_function($a_param);
                                                                                                                                                                                                                                                           let b_output = $b_function($b_param);
                                                                                                                                                                                                                                                           if a_output >= b_output {
                                                                                                                                                                                                                                                  @@ -443,7 +443,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_function:path) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_function:path $(,)?) => ({
                                                                                                                                                                                                                                                           let a_output = $a_function();
                                                                                                                                                                                                                                                           let b_output = $b_function();
                                                                                                                                                                                                                                                           if a_output >= b_output {
                                                                                                                                                                                                                                                  @@ -576,26 +576,26 @@
                                                                                                                                                                                                                                                   /// # use std::panic;
                                                                                                                                                                                                                                                   /// # fn main() {
                                                                                                                                                                                                                                                   /// // Return Ok
                                                                                                                                                                                                                                                  -/// let a: i32 = -2;
                                                                                                                                                                                                                                                  -/// let b: i32 = 1;
                                                                                                                                                                                                                                                  -/// assert_fn_ge!(i32::abs, a, i32::abs, b);
                                                                                                                                                                                                                                                  +/// let a: i8 = -2;
                                                                                                                                                                                                                                                  +/// let b: i8 = 1;
                                                                                                                                                                                                                                                  +/// assert_fn_ge!(i8::abs, a, i8::abs, b);
                                                                                                                                                                                                                                                   /// //-> ()
                                                                                                                                                                                                                                                   ///
                                                                                                                                                                                                                                                   /// // Panic with error message
                                                                                                                                                                                                                                                   /// let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -/// let a: i32 = 1;
                                                                                                                                                                                                                                                  -/// let b: i32 = -2;
                                                                                                                                                                                                                                                  -/// assert_fn_ge!(i32::abs, a, i32::abs, b);
                                                                                                                                                                                                                                                  +/// let a: i8 = 1;
                                                                                                                                                                                                                                                  +/// let b: i8 = -2;
                                                                                                                                                                                                                                                  +/// assert_fn_ge!(i8::abs, a, i8::abs, b);
                                                                                                                                                                                                                                                   /// //-> panic!
                                                                                                                                                                                                                                                   /// });
                                                                                                                                                                                                                                                   /// assert!(result.is_err());
                                                                                                                                                                                                                                                   /// let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                   /// let expect = concat!(
                                                                                                                                                                                                                                                   ///     "assertion failed: `assert_fn_ge!(left_function, left_param, right_function, right_param)`\n",
                                                                                                                                                                                                                                                  -///     "  left_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +///     "  left_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   ///     "     left_param label: `a`,\n",
                                                                                                                                                                                                                                                   ///     "     left_param debug: `1`,\n",
                                                                                                                                                                                                                                                  -///     " right_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +///     " right_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   ///     "    right_param label: `b`,\n",
                                                                                                                                                                                                                                                   ///     "    right_param debug: `-2`,\n",
                                                                                                                                                                                                                                                   ///     "                 left: `1`,\n",
                                                                                                                                                                                                                                                  @@ -616,7 +616,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ge_as_result!($a_function, $a_param, $b_function, $b_param) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  @@ -632,7 +632,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_function:path, $(,)?) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_function:path $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ge_as_result!($a_function, $b_function) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_ge_expr.rs.html b/doc/src/lib/assert_fn/assert_fn_ge_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 90%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_ge_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn/assert_fn_ge_expr.rs.html
                                                                                                                                                                                                                                                  index d971ed63c..f3aea0a28 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_ge_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn/assert_fn_ge_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_ge_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_ge_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -349,23 +349,23 @@
                                                                                                                                                                                                                                                   //! # use std::panic;
                                                                                                                                                                                                                                                   //! # fn main() {
                                                                                                                                                                                                                                                   //! // Return Ok
                                                                                                                                                                                                                                                  -//! let a: i32 = -2;
                                                                                                                                                                                                                                                  -//! let b: i32 = 1;
                                                                                                                                                                                                                                                  -//! assert_fn_ge_expr!(i32::abs, a, b);
                                                                                                                                                                                                                                                  +//! let a: i8 = -2;
                                                                                                                                                                                                                                                  +//! let b: i8 = 1;
                                                                                                                                                                                                                                                  +//! assert_fn_ge_expr!(i8::abs, a, b);
                                                                                                                                                                                                                                                   //! //-> ()
                                                                                                                                                                                                                                                   //!
                                                                                                                                                                                                                                                   //! // Panic with error message
                                                                                                                                                                                                                                                   //! let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -//! let a: i32 = -1;
                                                                                                                                                                                                                                                  -//! let b: i32 = 2;
                                                                                                                                                                                                                                                  -//! assert_fn_ge_expr!(i32::abs, a, b);
                                                                                                                                                                                                                                                  +//! let a: i8 = -1;
                                                                                                                                                                                                                                                  +//! let b: i8 = 2;
                                                                                                                                                                                                                                                  +//! assert_fn_ge_expr!(i8::abs, a, b);
                                                                                                                                                                                                                                                   //! //-> panic!
                                                                                                                                                                                                                                                   //! });
                                                                                                                                                                                                                                                   //! assert!(result.is_err());
                                                                                                                                                                                                                                                   //! let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                   //! let expect = concat!(
                                                                                                                                                                                                                                                   //!     "assertion failed: `assert_fn_ge_expr!(left_function, left_param, right_expr)`\n",
                                                                                                                                                                                                                                                  -//!     " left_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +//!     " left_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   //!     "    left_param label: `a`,\n",
                                                                                                                                                                                                                                                   //!     "    left_param debug: `-1`,\n",
                                                                                                                                                                                                                                                   //!     "    right_expr label: `b`,\n",
                                                                                                                                                                                                                                                  @@ -406,7 +406,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_output = $a_function($a_param);
                                                                                                                                                                                                                                                           if a_output >= $b_expr {
                                                                                                                                                                                                                                                               Ok(())
                                                                                                                                                                                                                                                  @@ -433,7 +433,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_output = $a_function();
                                                                                                                                                                                                                                                           if a_output >= $b_expr {
                                                                                                                                                                                                                                                               Ok(())
                                                                                                                                                                                                                                                  @@ -565,23 +565,23 @@
                                                                                                                                                                                                                                                   /// # use std::panic;
                                                                                                                                                                                                                                                   /// # fn main() {
                                                                                                                                                                                                                                                   /// // Return Ok
                                                                                                                                                                                                                                                  -/// let a: i32 = -2;
                                                                                                                                                                                                                                                  -/// let b: i32 = 1;
                                                                                                                                                                                                                                                  -/// assert_fn_ge_expr!(i32::abs, a, b);
                                                                                                                                                                                                                                                  +/// let a: i8 = -2;
                                                                                                                                                                                                                                                  +/// let b: i8 = 1;
                                                                                                                                                                                                                                                  +/// assert_fn_ge_expr!(i8::abs, a, b);
                                                                                                                                                                                                                                                   /// //-> ()
                                                                                                                                                                                                                                                   ///
                                                                                                                                                                                                                                                   /// // Panic with error message
                                                                                                                                                                                                                                                   /// let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -/// let a: i32 = -1;
                                                                                                                                                                                                                                                  -/// let b: i32 = 2;
                                                                                                                                                                                                                                                  -/// assert_fn_ge_expr!(i32::abs, a, b);
                                                                                                                                                                                                                                                  +/// let a: i8 = -1;
                                                                                                                                                                                                                                                  +/// let b: i8 = 2;
                                                                                                                                                                                                                                                  +/// assert_fn_ge_expr!(i8::abs, a, b);
                                                                                                                                                                                                                                                   /// //-> panic!
                                                                                                                                                                                                                                                   /// });
                                                                                                                                                                                                                                                   /// assert!(result.is_err());
                                                                                                                                                                                                                                                   /// let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                   /// let expect = concat!(
                                                                                                                                                                                                                                                   ///     "assertion failed: `assert_fn_ge_expr!(left_function, left_param, right_expr)`\n",
                                                                                                                                                                                                                                                  -///     " left_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +///     " left_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   ///     "    left_param label: `a`,\n",
                                                                                                                                                                                                                                                   ///     "    left_param debug: `-1`,\n",
                                                                                                                                                                                                                                                   ///     "    right_expr label: `b`,\n",
                                                                                                                                                                                                                                                  @@ -604,7 +604,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ge_expr_as_result!($a_function, $a_param, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  @@ -620,7 +620,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ge_expr_as_result!($a_function, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_gt.rs.html b/doc/src/lib/assert_fn/assert_fn_gt.rs.html
                                                                                                                                                                                                                                                  similarity index 92%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_gt.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn/assert_fn_gt.rs.html
                                                                                                                                                                                                                                                  index 564c11409..4c3189714 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_gt.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn/assert_fn_gt.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_gt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_gt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -437,7 +437,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_output = $a_function($a_param);
                                                                                                                                                                                                                                                           let b_output = $b_function($b_param);
                                                                                                                                                                                                                                                           if a_output > b_output {
                                                                                                                                                                                                                                                  @@ -664,7 +664,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_gt_as_result!($a_function, $a_param, $b_function, $b_param) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_gt_expr.rs.html b/doc/src/lib/assert_fn/assert_fn_gt_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 90%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_gt_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn/assert_fn_gt_expr.rs.html
                                                                                                                                                                                                                                                  index 6734ce173..3932cdc08 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_gt_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn/assert_fn_gt_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_gt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_gt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -369,23 +369,23 @@
                                                                                                                                                                                                                                                   //! # use std::panic;
                                                                                                                                                                                                                                                   //! # fn main() {
                                                                                                                                                                                                                                                   //! // Return Ok
                                                                                                                                                                                                                                                  -//! let a: i32 = -2;
                                                                                                                                                                                                                                                  -//! let b: i32 = 1;
                                                                                                                                                                                                                                                  -//! assert_fn_gt_expr!(i32::abs, a, b);
                                                                                                                                                                                                                                                  +//! let a: i8 = -2;
                                                                                                                                                                                                                                                  +//! let b: i8 = 1;
                                                                                                                                                                                                                                                  +//! assert_fn_gt_expr!(i8::abs, a, b);
                                                                                                                                                                                                                                                   //! //-> ()
                                                                                                                                                                                                                                                   //!
                                                                                                                                                                                                                                                   //! // Panic with error message
                                                                                                                                                                                                                                                   //! let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -//! let a: i32 = -1;
                                                                                                                                                                                                                                                  -//! let b: i32 = 2;
                                                                                                                                                                                                                                                  -//! assert_fn_gt_expr!(i32::abs, a, b);
                                                                                                                                                                                                                                                  +//! let a: i8 = -1;
                                                                                                                                                                                                                                                  +//! let b: i8 = 2;
                                                                                                                                                                                                                                                  +//! assert_fn_gt_expr!(i8::abs, a, b);
                                                                                                                                                                                                                                                   //! //-> panic!
                                                                                                                                                                                                                                                   //! });
                                                                                                                                                                                                                                                   //! assert!(result.is_err());
                                                                                                                                                                                                                                                   //! let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                   //! let expect = concat!(
                                                                                                                                                                                                                                                   //!     "assertion failed: `assert_fn_gt_expr!(left_function, left_param, right_expr)`\n",
                                                                                                                                                                                                                                                  -//!     " left_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +//!     " left_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   //!     "    left_param label: `a`,\n",
                                                                                                                                                                                                                                                   //!     "    left_param debug: `-1`,\n",
                                                                                                                                                                                                                                                   //!     "    right_expr label: `b`,\n",
                                                                                                                                                                                                                                                  @@ -426,7 +426,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_output = $a_function($a_param);
                                                                                                                                                                                                                                                           if a_output > $b_expr {
                                                                                                                                                                                                                                                               Ok(())
                                                                                                                                                                                                                                                  @@ -453,7 +453,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_output = $a_function();
                                                                                                                                                                                                                                                           if a_output > $b_expr {
                                                                                                                                                                                                                                                               Ok(())
                                                                                                                                                                                                                                                  @@ -605,23 +605,23 @@
                                                                                                                                                                                                                                                   /// # use std::panic;
                                                                                                                                                                                                                                                   /// # fn main() {
                                                                                                                                                                                                                                                   /// // Return Ok
                                                                                                                                                                                                                                                  -/// let a: i32 = -2;
                                                                                                                                                                                                                                                  -/// let b: i32 = 1;
                                                                                                                                                                                                                                                  -/// assert_fn_gt_expr!(i32::abs, a, b);
                                                                                                                                                                                                                                                  +/// let a: i8 = -2;
                                                                                                                                                                                                                                                  +/// let b: i8 = 1;
                                                                                                                                                                                                                                                  +/// assert_fn_gt_expr!(i8::abs, a, b);
                                                                                                                                                                                                                                                   /// //-> ()
                                                                                                                                                                                                                                                   ///
                                                                                                                                                                                                                                                   /// // Panic with error message
                                                                                                                                                                                                                                                   /// let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -/// let a: i32 = -1;
                                                                                                                                                                                                                                                  -/// let b: i32 = 2;
                                                                                                                                                                                                                                                  -/// assert_fn_gt_expr!(i32::abs, a, b);
                                                                                                                                                                                                                                                  +/// let a: i8 = -1;
                                                                                                                                                                                                                                                  +/// let b: i8 = 2;
                                                                                                                                                                                                                                                  +/// assert_fn_gt_expr!(i8::abs, a, b);
                                                                                                                                                                                                                                                   /// //-> panic!
                                                                                                                                                                                                                                                   /// });
                                                                                                                                                                                                                                                   /// assert!(result.is_err());
                                                                                                                                                                                                                                                   /// let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                   /// let expect = concat!(
                                                                                                                                                                                                                                                   ///     "assertion failed: `assert_fn_gt_expr!(left_function, left_param, right_expr)`\n",
                                                                                                                                                                                                                                                  -///     " left_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +///     " left_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   ///     "    left_param label: `a`,\n",
                                                                                                                                                                                                                                                   ///     "    left_param debug: `-1`,\n",
                                                                                                                                                                                                                                                   ///     "    right_expr label: `b`,\n",
                                                                                                                                                                                                                                                  @@ -644,7 +644,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_gt_expr_as_result!($a_function, $a_param, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  @@ -660,7 +660,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_gt_expr_as_result!($a_function, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_le.rs.html b/doc/src/lib/assert_fn/assert_fn_le.rs.html
                                                                                                                                                                                                                                                  similarity index 90%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_le.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn/assert_fn_le.rs.html
                                                                                                                                                                                                                                                  index bced6cb12..bd72c5c4c 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_le.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn/assert_fn_le.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_le.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_le.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -357,26 +357,26 @@
                                                                                                                                                                                                                                                   //! # use std::panic;
                                                                                                                                                                                                                                                   //! # fn main() {
                                                                                                                                                                                                                                                   //! // Return Ok
                                                                                                                                                                                                                                                  -//! let a: i32 = 1;
                                                                                                                                                                                                                                                  -//! let b: i32 = -2;
                                                                                                                                                                                                                                                  -//! assert_fn_le!(i32::abs, a, i32::abs, b);
                                                                                                                                                                                                                                                  +//! let a: i8 = 1;
                                                                                                                                                                                                                                                  +//! let b: i8 = -2;
                                                                                                                                                                                                                                                  +//! assert_fn_le!(i8::abs, a, i8::abs, b);
                                                                                                                                                                                                                                                   //! //-> ()
                                                                                                                                                                                                                                                   //!
                                                                                                                                                                                                                                                   //! // Panic with error message
                                                                                                                                                                                                                                                   //! let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -//! let a: i32 = -2;
                                                                                                                                                                                                                                                  -//! let b: i32 = 1;
                                                                                                                                                                                                                                                  -//! assert_fn_le!(i32::abs, a, i32::abs, b);
                                                                                                                                                                                                                                                  +//! let a: i8 = -2;
                                                                                                                                                                                                                                                  +//! let b: i8 = 1;
                                                                                                                                                                                                                                                  +//! assert_fn_le!(i8::abs, a, i8::abs, b);
                                                                                                                                                                                                                                                   //! //-> panic!
                                                                                                                                                                                                                                                   //! });
                                                                                                                                                                                                                                                   //! assert!(result.is_err());
                                                                                                                                                                                                                                                   //! let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                   //! let expect = concat!(
                                                                                                                                                                                                                                                   //!     "assertion failed: `assert_fn_le!(left_function, left_param, right_function, right_param)`\n",
                                                                                                                                                                                                                                                  -//!     "  left_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +//!     "  left_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   //!     "     left_param label: `a`,\n",
                                                                                                                                                                                                                                                   //!     "     left_param debug: `-2`,\n",
                                                                                                                                                                                                                                                  -//!     " right_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +//!     " right_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   //!     "    right_param label: `b`,\n",
                                                                                                                                                                                                                                                   //!     "    right_param debug: `1`,\n",
                                                                                                                                                                                                                                                   //!     "                 left: `2`,\n",
                                                                                                                                                                                                                                                  @@ -417,7 +417,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_output = $a_function($a_param);
                                                                                                                                                                                                                                                           let b_output = $b_function($b_param);
                                                                                                                                                                                                                                                           if a_output <= b_output {
                                                                                                                                                                                                                                                  @@ -580,26 +580,26 @@
                                                                                                                                                                                                                                                   /// # use std::panic;
                                                                                                                                                                                                                                                   /// # fn main() {
                                                                                                                                                                                                                                                   /// // Return Ok
                                                                                                                                                                                                                                                  -/// let a: i32 = 1;
                                                                                                                                                                                                                                                  -/// let b: i32 = -2;
                                                                                                                                                                                                                                                  -/// assert_fn_le!(i32::abs, a, i32::abs, b);
                                                                                                                                                                                                                                                  +/// let a: i8 = 1;
                                                                                                                                                                                                                                                  +/// let b: i8 = -2;
                                                                                                                                                                                                                                                  +/// assert_fn_le!(i8::abs, a, i8::abs, b);
                                                                                                                                                                                                                                                   /// //-> ()
                                                                                                                                                                                                                                                   ///
                                                                                                                                                                                                                                                   /// // Panic with error message
                                                                                                                                                                                                                                                   /// let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -/// let a: i32 = -2;
                                                                                                                                                                                                                                                  -/// let b: i32 = 1;
                                                                                                                                                                                                                                                  -/// assert_fn_le!(i32::abs, a, i32::abs, b);
                                                                                                                                                                                                                                                  +/// let a: i8 = -2;
                                                                                                                                                                                                                                                  +/// let b: i8 = 1;
                                                                                                                                                                                                                                                  +/// assert_fn_le!(i8::abs, a, i8::abs, b);
                                                                                                                                                                                                                                                   /// //-> panic!
                                                                                                                                                                                                                                                   /// });
                                                                                                                                                                                                                                                   /// assert!(result.is_err());
                                                                                                                                                                                                                                                   /// let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                   /// let expect = concat!(
                                                                                                                                                                                                                                                   ///     "assertion failed: `assert_fn_le!(left_function, left_param, right_function, right_param)`\n",
                                                                                                                                                                                                                                                  -///     "  left_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +///     "  left_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   ///     "     left_param label: `a`,\n",
                                                                                                                                                                                                                                                   ///     "     left_param debug: `-2`,\n",
                                                                                                                                                                                                                                                  -///     " right_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +///     " right_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   ///     "    right_param label: `b`,\n",
                                                                                                                                                                                                                                                   ///     "    right_param debug: `1`,\n",
                                                                                                                                                                                                                                                   ///     "                 left: `2`,\n",
                                                                                                                                                                                                                                                  @@ -620,7 +620,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_le_as_result!($a_function, $a_param, $b_function, $b_param) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  @@ -636,7 +636,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_function:path, $(,)?) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_function:path) => ({
                                                                                                                                                                                                                                                           match assert_fn_le_as_result!($a_function, $b_function) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_le_expr.rs.html b/doc/src/lib/assert_fn/assert_fn_le_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 90%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_le_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn/assert_fn_le_expr.rs.html
                                                                                                                                                                                                                                                  index cfb1b4fac..3406d5d0c 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_le_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn/assert_fn_le_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_le_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_le_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -348,23 +348,23 @@
                                                                                                                                                                                                                                                   //! # use std::panic;
                                                                                                                                                                                                                                                   //! # fn main() {
                                                                                                                                                                                                                                                   //! // Return Ok
                                                                                                                                                                                                                                                  -//! let a: i32 = -1;
                                                                                                                                                                                                                                                  -//! let b: i32 = 2;
                                                                                                                                                                                                                                                  -//! assert_fn_le_expr!(i32::abs, a, b);
                                                                                                                                                                                                                                                  +//! let a: i8 = -1;
                                                                                                                                                                                                                                                  +//! let b: i8 = 2;
                                                                                                                                                                                                                                                  +//! assert_fn_le_expr!(i8::abs, a, b);
                                                                                                                                                                                                                                                   //! //-> ()
                                                                                                                                                                                                                                                   //!
                                                                                                                                                                                                                                                   //! // Panic with error message
                                                                                                                                                                                                                                                   //! let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -//! let a: i32 = -2;
                                                                                                                                                                                                                                                  -//! let b: i32 = 1;
                                                                                                                                                                                                                                                  -//! assert_fn_le_expr!(i32::abs, a, b);
                                                                                                                                                                                                                                                  +//! let a: i8 = -2;
                                                                                                                                                                                                                                                  +//! let b: i8 = 1;
                                                                                                                                                                                                                                                  +//! assert_fn_le_expr!(i8::abs, a, b);
                                                                                                                                                                                                                                                   //! //-> panic!
                                                                                                                                                                                                                                                   //! });
                                                                                                                                                                                                                                                   //! assert!(result.is_err());
                                                                                                                                                                                                                                                   //! let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                   //! let expect = concat!(
                                                                                                                                                                                                                                                   //!     "assertion failed: `assert_fn_le_expr!(left_function, left_param, right_expr)`\n",
                                                                                                                                                                                                                                                  -//!     " left_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +//!     " left_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   //!     "    left_param label: `a`,\n",
                                                                                                                                                                                                                                                   //!     "    left_param debug: `-2`,\n",
                                                                                                                                                                                                                                                   //!     "    right_expr label: `b`,\n",
                                                                                                                                                                                                                                                  @@ -408,7 +408,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_output = $a_function($a_param);
                                                                                                                                                                                                                                                           if a_output <= $b_expr {
                                                                                                                                                                                                                                                               Ok(())
                                                                                                                                                                                                                                                  @@ -435,7 +435,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_output = $a_function();
                                                                                                                                                                                                                                                           if a_output <= $b_expr {
                                                                                                                                                                                                                                                               Ok(())
                                                                                                                                                                                                                                                  @@ -563,23 +563,23 @@
                                                                                                                                                                                                                                                   /// # use std::panic;
                                                                                                                                                                                                                                                   /// # fn main() {
                                                                                                                                                                                                                                                   /// // Return Ok
                                                                                                                                                                                                                                                  -/// let a: i32 = -1;
                                                                                                                                                                                                                                                  -/// let b: i32 = 2;
                                                                                                                                                                                                                                                  -/// assert_fn_le_expr!(i32::abs, a, b);
                                                                                                                                                                                                                                                  +/// let a: i8 = -1;
                                                                                                                                                                                                                                                  +/// let b: i8 = 2;
                                                                                                                                                                                                                                                  +/// assert_fn_le_expr!(i8::abs, a, b);
                                                                                                                                                                                                                                                   /// //-> ()
                                                                                                                                                                                                                                                   ///
                                                                                                                                                                                                                                                   /// // Panic with error message
                                                                                                                                                                                                                                                   /// let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -/// let a: i32 = -2;
                                                                                                                                                                                                                                                  -/// let b: i32 = 1;
                                                                                                                                                                                                                                                  -/// assert_fn_le_expr!(i32::abs, a, b);
                                                                                                                                                                                                                                                  +/// let a: i8 = -2;
                                                                                                                                                                                                                                                  +/// let b: i8 = 1;
                                                                                                                                                                                                                                                  +/// assert_fn_le_expr!(i8::abs, a, b);
                                                                                                                                                                                                                                                   /// //-> panic!
                                                                                                                                                                                                                                                   /// });
                                                                                                                                                                                                                                                   /// assert!(result.is_err());
                                                                                                                                                                                                                                                   /// let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                   /// let expect = concat!(
                                                                                                                                                                                                                                                   ///     "assertion failed: `assert_fn_le_expr!(left_function, left_param, right_expr)`\n",
                                                                                                                                                                                                                                                  -///     " left_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +///     " left_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   ///     "    left_param label: `a`,\n",
                                                                                                                                                                                                                                                   ///     "    left_param debug: `-2`,\n",
                                                                                                                                                                                                                                                   ///     "    right_expr label: `b`,\n",
                                                                                                                                                                                                                                                  @@ -602,7 +602,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_le_expr_as_result!($a_function, $a_param, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  @@ -618,7 +618,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_le_expr_as_result!($a_function, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_lt.rs.html b/doc/src/lib/assert_fn/assert_fn_lt.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_lt.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn/assert_fn_lt.rs.html
                                                                                                                                                                                                                                                  index 8d75ae83f..0078b27f7 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_lt.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn/assert_fn_lt.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_lt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_lt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -379,26 +379,26 @@
                                                                                                                                                                                                                                                   //! # use std::panic;
                                                                                                                                                                                                                                                   //! # fn main() {
                                                                                                                                                                                                                                                   //! // Return Ok
                                                                                                                                                                                                                                                  -//! let a: i32 = 1;
                                                                                                                                                                                                                                                  -//! let b: i32 = -2;
                                                                                                                                                                                                                                                  -//! assert_fn_lt!(i32::abs, a, i32::abs, b);
                                                                                                                                                                                                                                                  +//! let a: i8 = 1;
                                                                                                                                                                                                                                                  +//! let b: i8 = -2;
                                                                                                                                                                                                                                                  +//! assert_fn_lt!(i8::abs, a, i8::abs, b);
                                                                                                                                                                                                                                                   //! //-> ()
                                                                                                                                                                                                                                                   //!
                                                                                                                                                                                                                                                  -//! let a: i32 = -2;
                                                                                                                                                                                                                                                  -//! let b: i32 = 1;
                                                                                                                                                                                                                                                  +//! let a: i8 = -2;
                                                                                                                                                                                                                                                  +//! let b: i8 = 1;
                                                                                                                                                                                                                                                   //! // Panic with error message
                                                                                                                                                                                                                                                   //! let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -//! assert_fn_lt!(i32::abs, a, i32::abs, b);
                                                                                                                                                                                                                                                  +//! assert_fn_lt!(i8::abs, a, i8::abs, b);
                                                                                                                                                                                                                                                   //! //-> panic!
                                                                                                                                                                                                                                                   //! });
                                                                                                                                                                                                                                                   //! assert!(result.is_err());
                                                                                                                                                                                                                                                   //! let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                   //! let expect = concat!(
                                                                                                                                                                                                                                                   //!     "assertion failed: `assert_fn_lt!(left_function, left_param, right_function, right_param)`\n",
                                                                                                                                                                                                                                                  -//!     "  left_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +//!     "  left_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   //!     "     left_param label: `a`,\n",
                                                                                                                                                                                                                                                   //!     "     left_param debug: `-2`,\n",
                                                                                                                                                                                                                                                  -//!     " right_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +//!     " right_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   //!     "    right_param label: `b`,\n",
                                                                                                                                                                                                                                                   //!     "    right_param debug: `1`,\n",
                                                                                                                                                                                                                                                   //!     "                 left: `2`,\n",
                                                                                                                                                                                                                                                  @@ -437,7 +437,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_output = $a_function($a_param);
                                                                                                                                                                                                                                                           let b_output = $b_function($b_param);
                                                                                                                                                                                                                                                           if a_output < b_output {
                                                                                                                                                                                                                                                  @@ -624,26 +624,26 @@
                                                                                                                                                                                                                                                   /// # use std::panic;
                                                                                                                                                                                                                                                   /// # fn main() {
                                                                                                                                                                                                                                                   /// // Return Ok
                                                                                                                                                                                                                                                  -/// let a: i32 = 1;
                                                                                                                                                                                                                                                  -/// let b: i32 = -2;
                                                                                                                                                                                                                                                  -/// assert_fn_lt!(i32::abs, a, i32::abs, b);
                                                                                                                                                                                                                                                  +/// let a: i8 = 1;
                                                                                                                                                                                                                                                  +/// let b: i8 = -2;
                                                                                                                                                                                                                                                  +/// assert_fn_lt!(i8::abs, a, i8::abs, b);
                                                                                                                                                                                                                                                   /// //-> ()
                                                                                                                                                                                                                                                   ///
                                                                                                                                                                                                                                                  -/// let a: i32 = -2;
                                                                                                                                                                                                                                                  -/// let b: i32 = 1;
                                                                                                                                                                                                                                                  +/// let a: i8 = -2;
                                                                                                                                                                                                                                                  +/// let b: i8 = 1;
                                                                                                                                                                                                                                                   /// // Panic with error message
                                                                                                                                                                                                                                                   /// let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -/// assert_fn_lt!(i32::abs, a, i32::abs, b);
                                                                                                                                                                                                                                                  +/// assert_fn_lt!(i8::abs, a, i8::abs, b);
                                                                                                                                                                                                                                                   /// //-> panic!
                                                                                                                                                                                                                                                   /// });
                                                                                                                                                                                                                                                   /// assert!(result.is_err());
                                                                                                                                                                                                                                                   /// let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                   /// let expect = concat!(
                                                                                                                                                                                                                                                   ///     "assertion failed: `assert_fn_lt!(left_function, left_param, right_function, right_param)`\n",
                                                                                                                                                                                                                                                  -///     "  left_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +///     "  left_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   ///     "     left_param label: `a`,\n",
                                                                                                                                                                                                                                                   ///     "     left_param debug: `-2`,\n",
                                                                                                                                                                                                                                                  -///     " right_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +///     " right_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   ///     "    right_param label: `b`,\n",
                                                                                                                                                                                                                                                   ///     "    right_param debug: `1`,\n",
                                                                                                                                                                                                                                                   ///     "                 left: `2`,\n",
                                                                                                                                                                                                                                                  @@ -664,7 +664,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_lt_as_result!($a_function, $a_param, $b_function, $b_param) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_lt_expr.rs.html b/doc/src/lib/assert_fn/assert_fn_lt_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 90%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_lt_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn/assert_fn_lt_expr.rs.html
                                                                                                                                                                                                                                                  index e357eaf63..0e255c9c9 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_lt_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn/assert_fn_lt_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_lt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_lt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -369,23 +369,23 @@
                                                                                                                                                                                                                                                   //! # use std::panic;
                                                                                                                                                                                                                                                   //! # fn main() {
                                                                                                                                                                                                                                                   //! // Return Ok
                                                                                                                                                                                                                                                  -//! let a: i32 = -1;
                                                                                                                                                                                                                                                  -//! let b: i32 = 2;
                                                                                                                                                                                                                                                  -//! assert_fn_lt_expr!(i32::abs, a, b);
                                                                                                                                                                                                                                                  +//! let a: i8 = -1;
                                                                                                                                                                                                                                                  +//! let b: i8 = 2;
                                                                                                                                                                                                                                                  +//! assert_fn_lt_expr!(i8::abs, a, b);
                                                                                                                                                                                                                                                   //! //-> ()
                                                                                                                                                                                                                                                   //!
                                                                                                                                                                                                                                                   //! // Panic with error message
                                                                                                                                                                                                                                                   //! let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -//! let a: i32 = -2;
                                                                                                                                                                                                                                                  -//! let b: i32 = 1;
                                                                                                                                                                                                                                                  -//! assert_fn_lt_expr!(i32::abs, a, b);
                                                                                                                                                                                                                                                  +//! let a: i8 = -2;
                                                                                                                                                                                                                                                  +//! let b: i8 = 1;
                                                                                                                                                                                                                                                  +//! assert_fn_lt_expr!(i8::abs, a, b);
                                                                                                                                                                                                                                                   //! //-> panic!
                                                                                                                                                                                                                                                   //! });
                                                                                                                                                                                                                                                   //! assert!(result.is_err());
                                                                                                                                                                                                                                                   //! let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                   //! let expect = concat!(
                                                                                                                                                                                                                                                   //!     "assertion failed: `assert_fn_lt_expr!(left_function, left_param, right_expr)`\n",
                                                                                                                                                                                                                                                  -//!     " left_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +//!     " left_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   //!     "    left_param label: `a`,\n",
                                                                                                                                                                                                                                                   //!     "    left_param debug: `-2`,\n",
                                                                                                                                                                                                                                                   //!     "    right_expr label: `b`,\n",
                                                                                                                                                                                                                                                  @@ -426,7 +426,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_output = $a_function($a_param);
                                                                                                                                                                                                                                                           if a_output < $b_expr {
                                                                                                                                                                                                                                                               Ok(())
                                                                                                                                                                                                                                                  @@ -453,7 +453,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_output = $a_function();
                                                                                                                                                                                                                                                           if a_output < $b_expr {
                                                                                                                                                                                                                                                               Ok(())
                                                                                                                                                                                                                                                  @@ -605,23 +605,23 @@
                                                                                                                                                                                                                                                   /// # use std::panic;
                                                                                                                                                                                                                                                   /// # fn main() {
                                                                                                                                                                                                                                                   /// // Return Ok
                                                                                                                                                                                                                                                  -/// let a: i32 = -1;
                                                                                                                                                                                                                                                  -/// let b: i32 = 2;
                                                                                                                                                                                                                                                  -/// assert_fn_lt_expr!(i32::abs, a, b);
                                                                                                                                                                                                                                                  +/// let a: i8 = -1;
                                                                                                                                                                                                                                                  +/// let b: i8 = 2;
                                                                                                                                                                                                                                                  +/// assert_fn_lt_expr!(i8::abs, a, b);
                                                                                                                                                                                                                                                   /// //-> ()
                                                                                                                                                                                                                                                   ///
                                                                                                                                                                                                                                                   /// // Panic with error message
                                                                                                                                                                                                                                                   /// let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -/// let a: i32 = -2;
                                                                                                                                                                                                                                                  -/// let b: i32 = 1;
                                                                                                                                                                                                                                                  -/// assert_fn_lt_expr!(i32::abs, a, b);
                                                                                                                                                                                                                                                  +/// let a: i8 = -2;
                                                                                                                                                                                                                                                  +/// let b: i8 = 1;
                                                                                                                                                                                                                                                  +/// assert_fn_lt_expr!(i8::abs, a, b);
                                                                                                                                                                                                                                                   /// //-> panic!
                                                                                                                                                                                                                                                   /// });
                                                                                                                                                                                                                                                   /// assert!(result.is_err());
                                                                                                                                                                                                                                                   /// let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                   /// let expect = concat!(
                                                                                                                                                                                                                                                   ///     "assertion failed: `assert_fn_lt_expr!(left_function, left_param, right_expr)`\n",
                                                                                                                                                                                                                                                  -///     " left_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +///     " left_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   ///     "    left_param label: `a`,\n",
                                                                                                                                                                                                                                                   ///     "    left_param debug: `-2`,\n",
                                                                                                                                                                                                                                                   ///     "    right_expr label: `b`,\n",
                                                                                                                                                                                                                                                  @@ -644,7 +644,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_lt_expr_as_result!($a_function, $a_param, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  @@ -660,7 +660,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_lt_expr_as_result!($a_function, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_ne.rs.html b/doc/src/lib/assert_fn/assert_fn_ne.rs.html
                                                                                                                                                                                                                                                  similarity index 90%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_ne.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn/assert_fn_ne.rs.html
                                                                                                                                                                                                                                                  index b1004ae79..cd4d0fc8c 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_ne.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn/assert_fn_ne.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_ne.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_ne.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -341,26 +341,26 @@
                                                                                                                                                                                                                                                   //! # use std::panic;
                                                                                                                                                                                                                                                   //! # fn main() {
                                                                                                                                                                                                                                                   //! // Return Ok
                                                                                                                                                                                                                                                  -//! let a: i32 = -1;
                                                                                                                                                                                                                                                  -//! let b: i32 = 2;
                                                                                                                                                                                                                                                  -//! assert_fn_ne!(i32::abs, a, i32::abs, b);
                                                                                                                                                                                                                                                  +//! let a: i8 = -1;
                                                                                                                                                                                                                                                  +//! let b: i8 = 2;
                                                                                                                                                                                                                                                  +//! assert_fn_ne!(i8::abs, a, i8::abs, b);
                                                                                                                                                                                                                                                   //! //-> ()
                                                                                                                                                                                                                                                   //!
                                                                                                                                                                                                                                                   //! // Panic with error message
                                                                                                                                                                                                                                                   //! let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -//! let a: i32 = -1;
                                                                                                                                                                                                                                                  -//! let b: i32 = 1;
                                                                                                                                                                                                                                                  -//! assert_fn_ne!(i32::abs, a, i32::abs, b);
                                                                                                                                                                                                                                                  +//! let a: i8 = -1;
                                                                                                                                                                                                                                                  +//! let b: i8 = 1;
                                                                                                                                                                                                                                                  +//! assert_fn_ne!(i8::abs, a, i8::abs, b);
                                                                                                                                                                                                                                                   //! //-> panic!
                                                                                                                                                                                                                                                   //! });
                                                                                                                                                                                                                                                   //! assert!(result.is_err());
                                                                                                                                                                                                                                                   //! let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                   //! let expect = concat!(
                                                                                                                                                                                                                                                   //!     "assertion failed: `assert_fn_ne!(left_function, left_param, right_function, right_param)`\n",
                                                                                                                                                                                                                                                  -//!     "  left_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +//!     "  left_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   //!     "     left_param label: `a`,\n",
                                                                                                                                                                                                                                                   //!     "     left_param debug: `-1`,\n",
                                                                                                                                                                                                                                                  -//!     " right_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +//!     " right_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   //!     "    right_param label: `b`,\n",
                                                                                                                                                                                                                                                   //!     "    right_param debug: `1`,\n",
                                                                                                                                                                                                                                                   //!     "                 left: `1`,\n",
                                                                                                                                                                                                                                                  @@ -399,7 +399,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_output = $a_function($a_param);
                                                                                                                                                                                                                                                           let b_output = $b_function($b_param);
                                                                                                                                                                                                                                                           if a_output != b_output {
                                                                                                                                                                                                                                                  @@ -548,26 +548,26 @@
                                                                                                                                                                                                                                                   /// # use std::panic;
                                                                                                                                                                                                                                                   /// # fn main() {
                                                                                                                                                                                                                                                   /// // Return Ok
                                                                                                                                                                                                                                                  -/// let a: i32 = -1;
                                                                                                                                                                                                                                                  -/// let b: i32 = 2;
                                                                                                                                                                                                                                                  -/// assert_fn_ne!(i32::abs, a, i32::abs, b);
                                                                                                                                                                                                                                                  +/// let a: i8 = -1;
                                                                                                                                                                                                                                                  +/// let b: i8 = 2;
                                                                                                                                                                                                                                                  +/// assert_fn_ne!(i8::abs, a, i8::abs, b);
                                                                                                                                                                                                                                                   /// //-> ()
                                                                                                                                                                                                                                                   ///
                                                                                                                                                                                                                                                   /// // Panic with error message
                                                                                                                                                                                                                                                   /// let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -/// let a: i32 = -1;
                                                                                                                                                                                                                                                  -/// let b: i32 = 1;
                                                                                                                                                                                                                                                  -/// assert_fn_ne!(i32::abs, a, i32::abs, b);
                                                                                                                                                                                                                                                  +/// let a: i8 = -1;
                                                                                                                                                                                                                                                  +/// let b: i8 = 1;
                                                                                                                                                                                                                                                  +/// assert_fn_ne!(i8::abs, a, i8::abs, b);
                                                                                                                                                                                                                                                   /// //-> panic!
                                                                                                                                                                                                                                                   /// });
                                                                                                                                                                                                                                                   /// assert!(result.is_err());
                                                                                                                                                                                                                                                   /// let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                   /// let expect = concat!(
                                                                                                                                                                                                                                                   ///     "assertion failed: `assert_fn_ne!(left_function, left_param, right_function, right_param)`\n",
                                                                                                                                                                                                                                                  -///     "  left_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +///     "  left_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   ///     "     left_param label: `a`,\n",
                                                                                                                                                                                                                                                   ///     "     left_param debug: `-1`,\n",
                                                                                                                                                                                                                                                  -///     " right_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +///     " right_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   ///     "    right_param label: `b`,\n",
                                                                                                                                                                                                                                                   ///     "    right_param debug: `1`,\n",
                                                                                                                                                                                                                                                   ///     "                 left: `1`,\n",
                                                                                                                                                                                                                                                  @@ -588,7 +588,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ne_as_result!($a_function, $a_param, $b_function, $b_param) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_ne_expr.rs.html b/doc/src/lib/assert_fn/assert_fn_ne_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 89%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_ne_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn/assert_fn_ne_expr.rs.html
                                                                                                                                                                                                                                                  index 55e3535fa..60ab49b3f 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_ne_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn/assert_fn_ne_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_ne_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_ne_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -330,23 +330,23 @@
                                                                                                                                                                                                                                                   //! # use std::panic;
                                                                                                                                                                                                                                                   //! # fn main() {
                                                                                                                                                                                                                                                   //! // Return Ok
                                                                                                                                                                                                                                                  -//! let a: i32 = 1;
                                                                                                                                                                                                                                                  -//! let b: i32 = -2;
                                                                                                                                                                                                                                                  -//! assert_fn_ne_expr!(i32::abs, a, b);
                                                                                                                                                                                                                                                  +//! let a: i8 = 1;
                                                                                                                                                                                                                                                  +//! let b: i8 = -2;
                                                                                                                                                                                                                                                  +//! assert_fn_ne_expr!(i8::abs, a, b);
                                                                                                                                                                                                                                                   //! //-> ()
                                                                                                                                                                                                                                                   //!
                                                                                                                                                                                                                                                   //! // Panic with error message
                                                                                                                                                                                                                                                   //! let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -//! let a: i32 = -1;
                                                                                                                                                                                                                                                  -//! let b: i32 = 1;
                                                                                                                                                                                                                                                  -//! assert_fn_ne_expr!(i32::abs, a, b);
                                                                                                                                                                                                                                                  +//! let a: i8 = -1;
                                                                                                                                                                                                                                                  +//! let b: i8 = 1;
                                                                                                                                                                                                                                                  +//! assert_fn_ne_expr!(i8::abs, a, b);
                                                                                                                                                                                                                                                   //! //-> panic!
                                                                                                                                                                                                                                                   //! });
                                                                                                                                                                                                                                                   //! assert!(result.is_err());
                                                                                                                                                                                                                                                   //! let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                   //! let expect = concat!(
                                                                                                                                                                                                                                                   //!     "assertion failed: `assert_fn_ne_expr!(left_function, left_param, right_expr)`\n",
                                                                                                                                                                                                                                                  -//!     " left_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +//!     " left_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   //!     "    left_param label: `a`,\n",
                                                                                                                                                                                                                                                   //!     "    left_param debug: `-1`,\n",
                                                                                                                                                                                                                                                   //!     "    right_expr label: `b`,\n",
                                                                                                                                                                                                                                                  @@ -387,7 +387,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_output = $a_function($a_param);
                                                                                                                                                                                                                                                           if a_output != $b_expr {
                                                                                                                                                                                                                                                               Ok(())
                                                                                                                                                                                                                                                  @@ -414,7 +414,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_output = $a_function();
                                                                                                                                                                                                                                                           if a_output != $b_expr {
                                                                                                                                                                                                                                                               Ok(())
                                                                                                                                                                                                                                                  @@ -527,23 +527,23 @@
                                                                                                                                                                                                                                                   /// # use std::panic;
                                                                                                                                                                                                                                                   /// # fn main() {
                                                                                                                                                                                                                                                   /// // Return Ok
                                                                                                                                                                                                                                                  -/// let a: i32 = 1;
                                                                                                                                                                                                                                                  -/// let b: i32 = -2;
                                                                                                                                                                                                                                                  -/// assert_fn_ne_expr!(i32::abs, a, b);
                                                                                                                                                                                                                                                  +/// let a: i8 = 1;
                                                                                                                                                                                                                                                  +/// let b: i8 = -2;
                                                                                                                                                                                                                                                  +/// assert_fn_ne_expr!(i8::abs, a, b);
                                                                                                                                                                                                                                                   /// //-> ()
                                                                                                                                                                                                                                                   ///
                                                                                                                                                                                                                                                   /// // Panic with error message
                                                                                                                                                                                                                                                   /// let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  -/// let a: i32 = -1;
                                                                                                                                                                                                                                                  -/// let b: i32 = 1;
                                                                                                                                                                                                                                                  -/// assert_fn_ne_expr!(i32::abs, a, b);
                                                                                                                                                                                                                                                  +/// let a: i8 = -1;
                                                                                                                                                                                                                                                  +/// let b: i8 = 1;
                                                                                                                                                                                                                                                  +/// assert_fn_ne_expr!(i8::abs, a, b);
                                                                                                                                                                                                                                                   /// //-> panic!
                                                                                                                                                                                                                                                   /// });
                                                                                                                                                                                                                                                   /// assert!(result.is_err());
                                                                                                                                                                                                                                                   /// let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                   /// let expect = concat!(
                                                                                                                                                                                                                                                   ///     "assertion failed: `assert_fn_ne_expr!(left_function, left_param, right_expr)`\n",
                                                                                                                                                                                                                                                  -///     " left_function label: `i32::abs`,\n",
                                                                                                                                                                                                                                                  +///     " left_function label: `i8::abs`,\n",
                                                                                                                                                                                                                                                   ///     "    left_param label: `a`,\n",
                                                                                                                                                                                                                                                   ///     "    left_param debug: `-1`,\n",
                                                                                                                                                                                                                                                   ///     "    right_expr label: `b`,\n",
                                                                                                                                                                                                                                                  @@ -566,7 +566,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ne_expr_as_result!($a_function, $a_param, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  @@ -582,7 +582,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ne_expr_as_result!($a_function, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn/mod.rs.html b/doc/src/lib/assert_fn/mod.rs.html
                                                                                                                                                                                                                                                  new file mode 100644
                                                                                                                                                                                                                                                  index 000000000..c8b8092fb
                                                                                                                                                                                                                                                  --- /dev/null
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn/mod.rs.html
                                                                                                                                                                                                                                                  @@ -0,0 +1,121 @@
                                                                                                                                                                                                                                                  +mod.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +2
                                                                                                                                                                                                                                                  +3
                                                                                                                                                                                                                                                  +4
                                                                                                                                                                                                                                                  +5
                                                                                                                                                                                                                                                  +6
                                                                                                                                                                                                                                                  +7
                                                                                                                                                                                                                                                  +8
                                                                                                                                                                                                                                                  +9
                                                                                                                                                                                                                                                  +10
                                                                                                                                                                                                                                                  +11
                                                                                                                                                                                                                                                  +12
                                                                                                                                                                                                                                                  +13
                                                                                                                                                                                                                                                  +14
                                                                                                                                                                                                                                                  +15
                                                                                                                                                                                                                                                  +16
                                                                                                                                                                                                                                                  +17
                                                                                                                                                                                                                                                  +18
                                                                                                                                                                                                                                                  +19
                                                                                                                                                                                                                                                  +20
                                                                                                                                                                                                                                                  +21
                                                                                                                                                                                                                                                  +22
                                                                                                                                                                                                                                                  +23
                                                                                                                                                                                                                                                  +24
                                                                                                                                                                                                                                                  +25
                                                                                                                                                                                                                                                  +26
                                                                                                                                                                                                                                                  +27
                                                                                                                                                                                                                                                  +28
                                                                                                                                                                                                                                                  +29
                                                                                                                                                                                                                                                  +30
                                                                                                                                                                                                                                                  +31
                                                                                                                                                                                                                                                  +32
                                                                                                                                                                                                                                                  +33
                                                                                                                                                                                                                                                  +34
                                                                                                                                                                                                                                                  +35
                                                                                                                                                                                                                                                  +36
                                                                                                                                                                                                                                                  +37
                                                                                                                                                                                                                                                  +38
                                                                                                                                                                                                                                                  +39
                                                                                                                                                                                                                                                  +40
                                                                                                                                                                                                                                                  +41
                                                                                                                                                                                                                                                  +42
                                                                                                                                                                                                                                                  +43
                                                                                                                                                                                                                                                  +44
                                                                                                                                                                                                                                                  +45
                                                                                                                                                                                                                                                  +46
                                                                                                                                                                                                                                                  +47
                                                                                                                                                                                                                                                  +48
                                                                                                                                                                                                                                                  +49
                                                                                                                                                                                                                                                  +50
                                                                                                                                                                                                                                                  +51
                                                                                                                                                                                                                                                  +52
                                                                                                                                                                                                                                                  +53
                                                                                                                                                                                                                                                  +54
                                                                                                                                                                                                                                                  +55
                                                                                                                                                                                                                                                  +56
                                                                                                                                                                                                                                                  +57
                                                                                                                                                                                                                                                  +58
                                                                                                                                                                                                                                                  +59
                                                                                                                                                                                                                                                  +60
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  //! Assert macros for comparing functions.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! These macros help compare functions that return anything.
                                                                                                                                                                                                                                                  +//! The macros call the functions, then compare the return values.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! Compare a function with another function:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_eq!(function1, function2)`](macro@crate::assert_fn_eq) ≈ function1() = function2()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_ne!(function1, function2)`](macro@crate::assert_fn_ne) ≈ function1() ≠ function2()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_ge!(function1, function2)`](macro@crate::assert_fn_ge) ≈ function1() ≥ function2()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_gt!(function1, function2)`](macro@crate::assert_fn_gt) ≈ function1() > function2()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_le!(function1, function2)`](macro@crate::assert_fn_le) ≈ function1() ≤ function2()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_lt!(function1, function2)`](macro@crate::assert_fn_lt) ≈ function1() < function2()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! Compare a function with an expression:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_eq_expr!(function, expr)`](macro@crate::assert_fn_eq_expr) ≈ function() = expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_ne_expr!(function, expr)`](macro@crate::assert_fn_ne_expr) ≈ function() ≠ expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_ge_expr!(function, expr)`](macro@crate::assert_fn_ge_expr) ≈ function() ≥ expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_gt_expr!(function, expr)`](macro@crate::assert_fn_gt_expr) ≈ function() > expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_le_expr!(function, expr)`](macro@crate::assert_fn_le_expr) ≈ function() ≤ expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_lt_expr!(function, expr)`](macro@crate::assert_fn_lt_expr) ≈ function() < expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # Example
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! ```rust
                                                                                                                                                                                                                                                  +//! # #[macro_use] extern crate assertables;
                                                                                                                                                                                                                                                  +//! # fn main() {
                                                                                                                                                                                                                                                  +//! let a: i8 = -1;
                                                                                                                                                                                                                                                  +//! let b: i8 = 1;
                                                                                                                                                                                                                                                  +//! assert_fn_eq!(i8::abs, a, i8::abs, b);
                                                                                                                                                                                                                                                  +//! # }
                                                                                                                                                                                                                                                  +//! ```
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +// Comparisons
                                                                                                                                                                                                                                                  +pub mod assert_fn_eq;
                                                                                                                                                                                                                                                  +pub mod assert_fn_ne;
                                                                                                                                                                                                                                                  +pub mod assert_fn_lt;
                                                                                                                                                                                                                                                  +pub mod assert_fn_le;
                                                                                                                                                                                                                                                  +pub mod assert_fn_gt;
                                                                                                                                                                                                                                                  +pub mod assert_fn_ge;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +// Comparisons with expressions
                                                                                                                                                                                                                                                  +pub mod assert_fn_eq_expr;
                                                                                                                                                                                                                                                  +pub mod assert_fn_ne_expr;
                                                                                                                                                                                                                                                  +pub mod assert_fn_ge_expr;
                                                                                                                                                                                                                                                  +pub mod assert_fn_gt_expr;
                                                                                                                                                                                                                                                  +pub mod assert_fn_le_expr;
                                                                                                                                                                                                                                                  +pub mod assert_fn_lt_expr;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/src/lib/assert_fn_err_eq.rs.html b/doc/src/lib/assert_fn_err/assert_fn_err_eq.rs.html similarity index 93% rename from doc/src/lib/assert_fn_err_eq.rs.html rename to doc/src/lib/assert_fn_err/assert_fn_err_eq.rs.html index 4cb8bbce5..3ed57f975 100644 --- a/doc/src/lib/assert_fn_err_eq.rs.html +++ b/doc/src/lib/assert_fn_err/assert_fn_err_eq.rs.html @@ -1,4 +1,4 @@ -assert_fn_err_eq.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_err_eq.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -496,7 +496,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function($a_param);
                                                                                                                                                                                                                                                           let b_result = $b_function($b_param);
                                                                                                                                                                                                                                                           let a_is_err = a_result.is_err();
                                                                                                                                                                                                                                                  @@ -748,7 +748,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_err_eq_as_result!($a_function, $a_param, $b_function, $b_param) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_err_eq_expr.rs.html b/doc/src/lib/assert_fn_err/assert_fn_err_eq_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 92%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_err_eq_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn_err/assert_fn_err_eq_expr.rs.html
                                                                                                                                                                                                                                                  index 047aef7e2..acf3320a3 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_err_eq_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn_err/assert_fn_err_eq_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_err_eq_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_err_eq_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -474,7 +474,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function($a_param);
                                                                                                                                                                                                                                                           let a_is_err = a_result.is_err();
                                                                                                                                                                                                                                                           if !a_is_err {
                                                                                                                                                                                                                                                  @@ -521,7 +521,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function();
                                                                                                                                                                                                                                                           let a_is_err = a_result.is_err();
                                                                                                                                                                                                                                                           if !a_is_err {
                                                                                                                                                                                                                                                  @@ -706,7 +706,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_err_eq_expr_as_result!($a_function, $a_param, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  @@ -722,7 +722,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_err_eq_expr_as_result!($a_function, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_err_ge.rs.html b/doc/src/lib/assert_fn_err/assert_fn_err_ge.rs.html
                                                                                                                                                                                                                                                  similarity index 93%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_err_ge.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn_err/assert_fn_err_ge.rs.html
                                                                                                                                                                                                                                                  index 9a7d383f6..9e675534a 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_err_ge.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn_err/assert_fn_err_ge.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_err_ge.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_err_ge.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -510,7 +510,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function($a_param);
                                                                                                                                                                                                                                                           let b_result = $b_function($b_param);
                                                                                                                                                                                                                                                           let a_is_err = a_result.is_err();
                                                                                                                                                                                                                                                  @@ -776,7 +776,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_err_ge_as_result!($a_function, $a_param, $b_function, $b_param) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_err_ge_expr.rs.html b/doc/src/lib/assert_fn_err/assert_fn_err_ge_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 92%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_err_ge_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn_err/assert_fn_err_ge_expr.rs.html
                                                                                                                                                                                                                                                  index 81667ce02..1565bd706 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_err_ge_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn_err/assert_fn_err_ge_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_err_ge_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_err_ge_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -490,7 +490,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function($a_param);
                                                                                                                                                                                                                                                           let a_is_err = a_result.is_err();
                                                                                                                                                                                                                                                           if !a_is_err {
                                                                                                                                                                                                                                                  @@ -537,7 +537,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function();
                                                                                                                                                                                                                                                           let a_is_err = a_result.is_err();
                                                                                                                                                                                                                                                           if !a_is_err {
                                                                                                                                                                                                                                                  @@ -738,7 +738,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_err_ge_expr_as_result!($a_function, $a_param, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  @@ -754,7 +754,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_err_ge_expr_as_result!($a_function, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_err_gt.rs.html b/doc/src/lib/assert_fn_err/assert_fn_err_gt.rs.html
                                                                                                                                                                                                                                                  similarity index 94%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_err_gt.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn_err/assert_fn_err_gt.rs.html
                                                                                                                                                                                                                                                  index 86e2ae855..d03e197c9 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_err_gt.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn_err/assert_fn_err_gt.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_err_gt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_err_gt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -534,7 +534,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function($a_param);
                                                                                                                                                                                                                                                           let b_result = $b_function($b_param);
                                                                                                                                                                                                                                                           let a_is_err = a_result.is_err();
                                                                                                                                                                                                                                                  @@ -824,7 +824,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_err_gt_as_result!($a_function, $a_param, $b_function, $b_param) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_err_gt_expr.rs.html b/doc/src/lib/assert_fn_err/assert_fn_err_gt_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 93%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_err_gt_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn_err/assert_fn_err_gt_expr.rs.html
                                                                                                                                                                                                                                                  index 654d8f9cb..bd725dff1 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_err_gt_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn_err/assert_fn_err_gt_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_err_gt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_err_gt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -514,7 +514,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function($a_param);
                                                                                                                                                                                                                                                           let a_is_err = a_result.is_err();
                                                                                                                                                                                                                                                           if !a_is_err {
                                                                                                                                                                                                                                                  @@ -561,7 +561,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function();
                                                                                                                                                                                                                                                           let a_is_err = a_result.is_err();
                                                                                                                                                                                                                                                           if !a_is_err {
                                                                                                                                                                                                                                                  @@ -786,7 +786,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_err_gt_expr_as_result!($a_function, $a_param, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  @@ -802,7 +802,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_err_gt_expr_as_result!($a_function, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_err_le.rs.html b/doc/src/lib/assert_fn_err/assert_fn_err_le.rs.html
                                                                                                                                                                                                                                                  similarity index 93%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_err_le.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn_err/assert_fn_err_le.rs.html
                                                                                                                                                                                                                                                  index 6db4cf232..3ba5dbfbd 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_err_le.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn_err/assert_fn_err_le.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_err_le.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_err_le.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -510,7 +510,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function($a_param);
                                                                                                                                                                                                                                                           let b_result = $b_function($b_param);
                                                                                                                                                                                                                                                           let a_is_err = a_result.is_err();
                                                                                                                                                                                                                                                  @@ -776,7 +776,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_err_le_as_result!($a_function, $a_param, $b_function, $b_param) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_err_le_expr.rs.html b/doc/src/lib/assert_fn_err/assert_fn_err_le_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 92%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_err_le_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn_err/assert_fn_err_le_expr.rs.html
                                                                                                                                                                                                                                                  index 0e880b387..1832b1b59 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_err_le_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn_err/assert_fn_err_le_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_err_le_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_err_le_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -490,7 +490,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function($a_param);
                                                                                                                                                                                                                                                           let a_is_err = a_result.is_err();
                                                                                                                                                                                                                                                           if !a_is_err {
                                                                                                                                                                                                                                                  @@ -537,7 +537,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function();
                                                                                                                                                                                                                                                           let a_is_err = a_result.is_err();
                                                                                                                                                                                                                                                           if !a_is_err {
                                                                                                                                                                                                                                                  @@ -738,7 +738,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_err_le_expr_as_result!($a_function, $a_param, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  @@ -754,7 +754,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_err_le_expr_as_result!($a_function, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_err_lt.rs.html b/doc/src/lib/assert_fn_err/assert_fn_err_lt.rs.html
                                                                                                                                                                                                                                                  similarity index 93%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_err_lt.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn_err/assert_fn_err_lt.rs.html
                                                                                                                                                                                                                                                  index ace4c4893..95b0b5033 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_err_lt.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn_err/assert_fn_err_lt.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_err_lt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_err_lt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -534,7 +534,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function($a_param);
                                                                                                                                                                                                                                                           let b_result = $b_function($b_param);
                                                                                                                                                                                                                                                           let a_is_err = a_result.is_err();
                                                                                                                                                                                                                                                  @@ -824,7 +824,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_err_lt_as_result!($a_function, $a_param, $b_function, $b_param) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  @@ -841,14 +841,14 @@
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       ($a_function:path, $b_function:path) => ({
                                                                                                                                                                                                                                                  -        match assert_fn_err_lt_as_result!($a_function, $a_function) {
                                                                                                                                                                                                                                                  +        match assert_fn_err_lt_as_result!($a_function, $b_function) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                           }
                                                                                                                                                                                                                                                       });
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       ($a_function:path, $b_function:path, $($message:tt)+) => ({
                                                                                                                                                                                                                                                  -        match assert_fn_err_lt_as_result!($a_function, $a_function) {
                                                                                                                                                                                                                                                  +        match assert_fn_err_lt_as_result!($a_function, $b_function) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(_err) => panic!("{}", $($message)+),
                                                                                                                                                                                                                                                           }
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_err_lt_expr.rs.html b/doc/src/lib/assert_fn_err/assert_fn_err_lt_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 93%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_err_lt_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn_err/assert_fn_err_lt_expr.rs.html
                                                                                                                                                                                                                                                  index fff12f76c..355ce80ec 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_err_lt_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn_err/assert_fn_err_lt_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_err_lt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_err_lt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -514,7 +514,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function($a_param);
                                                                                                                                                                                                                                                           let a_is_err = a_result.is_err();
                                                                                                                                                                                                                                                           if !a_is_err {
                                                                                                                                                                                                                                                  @@ -561,7 +561,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function();
                                                                                                                                                                                                                                                           let a_is_err = a_result.is_err();
                                                                                                                                                                                                                                                           if !a_is_err {
                                                                                                                                                                                                                                                  @@ -786,7 +786,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_err_lt_expr_as_result!($a_function, $a_param, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  @@ -802,7 +802,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_err_lt_expr_as_result!($a_function, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_err_ne.rs.html b/doc/src/lib/assert_fn_err/assert_fn_err_ne.rs.html
                                                                                                                                                                                                                                                  similarity index 93%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_err_ne.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn_err/assert_fn_err_ne.rs.html
                                                                                                                                                                                                                                                  index 3fc755820..bccfed176 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_err_ne.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn_err/assert_fn_err_ne.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_err_ne.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_err_ne.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -496,7 +496,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function($a_param);
                                                                                                                                                                                                                                                           let b_result = $b_function($b_param);
                                                                                                                                                                                                                                                           let a_is_err = a_result.is_err();
                                                                                                                                                                                                                                                  @@ -748,7 +748,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_err_ne_as_result!($a_function, $a_param, $b_function, $b_param) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_err_ne_expr.rs.html b/doc/src/lib/assert_fn_err/assert_fn_err_ne_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 92%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_err_ne_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn_err/assert_fn_err_ne_expr.rs.html
                                                                                                                                                                                                                                                  index 28855bfaa..18385408b 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_err_ne_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn_err/assert_fn_err_ne_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_err_ne_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_err_ne_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -475,7 +475,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function($a_param);
                                                                                                                                                                                                                                                           let a_is_err = a_result.is_err();
                                                                                                                                                                                                                                                           if !a_is_err {
                                                                                                                                                                                                                                                  @@ -522,7 +522,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function();
                                                                                                                                                                                                                                                           let a_is_err = a_result.is_err();
                                                                                                                                                                                                                                                           if !a_is_err {
                                                                                                                                                                                                                                                  @@ -708,7 +708,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_err_ne_expr_as_result!($a_function, $a_param, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  @@ -724,7 +724,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_err_ne_expr_as_result!($a_function, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_err/mod.rs.html b/doc/src/lib/assert_fn_err/mod.rs.html
                                                                                                                                                                                                                                                  new file mode 100644
                                                                                                                                                                                                                                                  index 000000000..05e709590
                                                                                                                                                                                                                                                  --- /dev/null
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn_err/mod.rs.html
                                                                                                                                                                                                                                                  @@ -0,0 +1,147 @@
                                                                                                                                                                                                                                                  +mod.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +2
                                                                                                                                                                                                                                                  +3
                                                                                                                                                                                                                                                  +4
                                                                                                                                                                                                                                                  +5
                                                                                                                                                                                                                                                  +6
                                                                                                                                                                                                                                                  +7
                                                                                                                                                                                                                                                  +8
                                                                                                                                                                                                                                                  +9
                                                                                                                                                                                                                                                  +10
                                                                                                                                                                                                                                                  +11
                                                                                                                                                                                                                                                  +12
                                                                                                                                                                                                                                                  +13
                                                                                                                                                                                                                                                  +14
                                                                                                                                                                                                                                                  +15
                                                                                                                                                                                                                                                  +16
                                                                                                                                                                                                                                                  +17
                                                                                                                                                                                                                                                  +18
                                                                                                                                                                                                                                                  +19
                                                                                                                                                                                                                                                  +20
                                                                                                                                                                                                                                                  +21
                                                                                                                                                                                                                                                  +22
                                                                                                                                                                                                                                                  +23
                                                                                                                                                                                                                                                  +24
                                                                                                                                                                                                                                                  +25
                                                                                                                                                                                                                                                  +26
                                                                                                                                                                                                                                                  +27
                                                                                                                                                                                                                                                  +28
                                                                                                                                                                                                                                                  +29
                                                                                                                                                                                                                                                  +30
                                                                                                                                                                                                                                                  +31
                                                                                                                                                                                                                                                  +32
                                                                                                                                                                                                                                                  +33
                                                                                                                                                                                                                                                  +34
                                                                                                                                                                                                                                                  +35
                                                                                                                                                                                                                                                  +36
                                                                                                                                                                                                                                                  +37
                                                                                                                                                                                                                                                  +38
                                                                                                                                                                                                                                                  +39
                                                                                                                                                                                                                                                  +40
                                                                                                                                                                                                                                                  +41
                                                                                                                                                                                                                                                  +42
                                                                                                                                                                                                                                                  +43
                                                                                                                                                                                                                                                  +44
                                                                                                                                                                                                                                                  +45
                                                                                                                                                                                                                                                  +46
                                                                                                                                                                                                                                                  +47
                                                                                                                                                                                                                                                  +48
                                                                                                                                                                                                                                                  +49
                                                                                                                                                                                                                                                  +50
                                                                                                                                                                                                                                                  +51
                                                                                                                                                                                                                                                  +52
                                                                                                                                                                                                                                                  +53
                                                                                                                                                                                                                                                  +54
                                                                                                                                                                                                                                                  +55
                                                                                                                                                                                                                                                  +56
                                                                                                                                                                                                                                                  +57
                                                                                                                                                                                                                                                  +58
                                                                                                                                                                                                                                                  +59
                                                                                                                                                                                                                                                  +60
                                                                                                                                                                                                                                                  +61
                                                                                                                                                                                                                                                  +62
                                                                                                                                                                                                                                                  +63
                                                                                                                                                                                                                                                  +64
                                                                                                                                                                                                                                                  +65
                                                                                                                                                                                                                                                  +66
                                                                                                                                                                                                                                                  +67
                                                                                                                                                                                                                                                  +68
                                                                                                                                                                                                                                                  +69
                                                                                                                                                                                                                                                  +70
                                                                                                                                                                                                                                                  +71
                                                                                                                                                                                                                                                  +72
                                                                                                                                                                                                                                                  +73
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  //! Assert macros for comparing functions that return errors.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! These macros help compare functions that return results that are errors,
                                                                                                                                                                                                                                                  +//! such as `std::Result::Err` or similar.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! The macros use these capabilities:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * implements `.is_err() -> boolean`
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * implements `.unwrap_err() -> comparable`
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! Compare a function Err() with another function Err():
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_err_eq!(function1, function2)`](macro@crate::assert_fn_err_eq) ≈ function1().unwrap_err() = function2().unwrap_err()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_err_ne!(function1, function2)`](macro@crate::assert_fn_err_ne) ≈ function1().unwrap_err() ≠ function2().unwrap_err()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_err_ge!(function1, function2)`](macro@crate::assert_fn_err_ge) ≈ function1().unwrap_err() ≥ function2().unwrap_err()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_err_gt!(function1, function2)`](macro@crate::assert_fn_err_gt) ≈ function1().unwrap_err() > function2().unwrap_err()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_err_le!(function1, function2)`](macro@crate::assert_fn_err_le) ≈ function1().unwrap_err() ≤ function2().unwrap_err()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_err_lt!(function1, function2)`](macro@crate::assert_fn_err_lt) ≈ function1().unwrap_err() < function2().unwrap_err()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! Compare a function Err() with an expression:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_err_eq!(function, expr)`](macro@crate::assert_fn_err_eq) ≈ function().unwrap_err() = expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_err_ne!(function, expr)`](macro@crate::assert_fn_err_ne) ≈ function().unwrap_err() ≠ expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_err_ge!(function, expr)`](macro@crate::assert_fn_err_ge) ≈ function().unwrap_err() ≥ expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_err_gt!(function, expr)`](macro@crate::assert_fn_err_gt) ≈ function().unwrap_err() > expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_err_le!(function, expr)`](macro@crate::assert_fn_err_le) ≈ function().unwrap_err() ≤ expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_err_lt!(function, expr)`](macro@crate::assert_fn_err_lt) ≈ function().unwrap_err() < expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # Example
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! ```rust
                                                                                                                                                                                                                                                  +//! # #[macro_use] extern crate assertables;
                                                                                                                                                                                                                                                  +//! fn f(i: i8) -> Result<String, String> {
                                                                                                                                                                                                                                                  +//!     match i {
                                                                                                                                                                                                                                                  +//!         0..=9 => Ok(format!("{}", i)),
                                                                                                                                                                                                                                                  +//!         _ => Err(format!("{:?} is out of range", i)),
                                                                                                                                                                                                                                                  +//!     }
                                                                                                                                                                                                                                                  +//! }
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # fn main() {
                                                                                                                                                                                                                                                  +//! let a: i8 = 10;
                                                                                                                                                                                                                                                  +//! let b: i8 = 10;
                                                                                                                                                                                                                                                  +//! assert_fn_err_eq!(f, a, f, b);
                                                                                                                                                                                                                                                  +//! # }
                                                                                                                                                                                                                                                  +//! ```
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +// Comparisons
                                                                                                                                                                                                                                                  +pub mod assert_fn_err_eq;
                                                                                                                                                                                                                                                  +pub mod assert_fn_err_ne;
                                                                                                                                                                                                                                                  +pub mod assert_fn_err_lt;
                                                                                                                                                                                                                                                  +pub mod assert_fn_err_le;
                                                                                                                                                                                                                                                  +pub mod assert_fn_err_gt;
                                                                                                                                                                                                                                                  +pub mod assert_fn_err_ge;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +// Comparisons with expressions
                                                                                                                                                                                                                                                  +pub mod assert_fn_err_eq_expr;
                                                                                                                                                                                                                                                  +pub mod assert_fn_err_ne_expr;
                                                                                                                                                                                                                                                  +pub mod assert_fn_err_lt_expr;
                                                                                                                                                                                                                                                  +pub mod assert_fn_err_le_expr;
                                                                                                                                                                                                                                                  +pub mod assert_fn_err_gt_expr;
                                                                                                                                                                                                                                                  +pub mod assert_fn_err_ge_expr;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/src/lib/assert_fn_ok_eq.rs.html b/doc/src/lib/assert_fn_ok/assert_fn_ok_eq.rs.html similarity index 93% rename from doc/src/lib/assert_fn_ok_eq.rs.html rename to doc/src/lib/assert_fn_ok/assert_fn_ok_eq.rs.html index ac0d96a2b..8b68a8bad 100644 --- a/doc/src/lib/assert_fn_ok_eq.rs.html +++ b/doc/src/lib/assert_fn_ok/assert_fn_ok_eq.rs.html @@ -1,4 +1,4 @@ -assert_fn_ok_eq.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_ok_eq.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -466,7 +466,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function($a_param);
                                                                                                                                                                                                                                                           let b_result = $b_function($b_param);
                                                                                                                                                                                                                                                           let a_is_ok = a_result.is_ok();
                                                                                                                                                                                                                                                  @@ -708,7 +708,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ok_eq_as_result!($a_function, $a_param, $b_function, $b_param) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_ok_eq_expr.rs.html b/doc/src/lib/assert_fn_ok/assert_fn_ok_eq_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 92%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_ok_eq_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn_ok/assert_fn_ok_eq_expr.rs.html
                                                                                                                                                                                                                                                  index 4a52be678..6db58d9ef 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_ok_eq_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn_ok/assert_fn_ok_eq_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_ok_eq_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_ok_eq_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -445,7 +445,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function($a_param);
                                                                                                                                                                                                                                                           let a_is_ok = a_result.is_ok();
                                                                                                                                                                                                                                                           if !a_is_ok {
                                                                                                                                                                                                                                                  @@ -492,7 +492,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function();
                                                                                                                                                                                                                                                           let a_is_ok = a_result.is_ok();
                                                                                                                                                                                                                                                           if !a_is_ok {
                                                                                                                                                                                                                                                  @@ -668,7 +668,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ok_eq_expr_as_result!($a_function, $a_param, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  @@ -684,7 +684,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ok_eq_expr_as_result!($a_function, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_ok_ge.rs.html b/doc/src/lib/assert_fn_ok/assert_fn_ok_ge.rs.html
                                                                                                                                                                                                                                                  similarity index 93%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_ok_ge.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn_ok/assert_fn_ok_ge.rs.html
                                                                                                                                                                                                                                                  index 66af24e2f..cdb4f855e 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_ok_ge.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn_ok/assert_fn_ok_ge.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_ok_ge.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_ok_ge.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -480,7 +480,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function($a_param);
                                                                                                                                                                                                                                                           let b_result = $b_function($b_param);
                                                                                                                                                                                                                                                           let a_is_ok = a_result.is_ok();
                                                                                                                                                                                                                                                  @@ -736,7 +736,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ok_ge_as_result!($a_function, $a_param, $b_function, $b_param) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_ok_ge_expr.rs.html b/doc/src/lib/assert_fn_ok/assert_fn_ok_ge_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 92%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_ok_ge_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn_ok/assert_fn_ok_ge_expr.rs.html
                                                                                                                                                                                                                                                  index 04523f294..4120970f9 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_ok_ge_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn_ok/assert_fn_ok_ge_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_ok_ge_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_ok_ge_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -460,7 +460,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function($a_param);
                                                                                                                                                                                                                                                           let a_is_ok = a_result.is_ok();
                                                                                                                                                                                                                                                           if !a_is_ok {
                                                                                                                                                                                                                                                  @@ -507,7 +507,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function();
                                                                                                                                                                                                                                                           let a_is_ok = a_result.is_ok();
                                                                                                                                                                                                                                                           if !a_is_ok {
                                                                                                                                                                                                                                                  @@ -698,7 +698,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ok_ge_expr_as_result!($a_function, $a_param, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  @@ -714,7 +714,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ok_ge_expr_as_result!($a_function, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_ok_gt.rs.html b/doc/src/lib/assert_fn_ok/assert_fn_ok_gt.rs.html
                                                                                                                                                                                                                                                  similarity index 94%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_ok_gt.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn_ok/assert_fn_ok_gt.rs.html
                                                                                                                                                                                                                                                  index 869a0c2bc..c8f0de255 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_ok_gt.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn_ok/assert_fn_ok_gt.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_ok_gt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_ok_gt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -504,7 +504,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function($a_param);
                                                                                                                                                                                                                                                           let b_result = $b_function($b_param);
                                                                                                                                                                                                                                                           let a_is_ok = a_result.is_ok();
                                                                                                                                                                                                                                                  @@ -784,7 +784,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ok_gt_as_result!($a_function, $a_param, $b_function, $b_param) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_ok_gt_expr.rs.html b/doc/src/lib/assert_fn_ok/assert_fn_ok_gt_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 93%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_ok_gt_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn_ok/assert_fn_ok_gt_expr.rs.html
                                                                                                                                                                                                                                                  index 6904e8fa7..c4650819f 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_ok_gt_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn_ok/assert_fn_ok_gt_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_ok_gt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_ok_gt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -484,7 +484,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function($a_param);
                                                                                                                                                                                                                                                           let a_is_ok = a_result.is_ok();
                                                                                                                                                                                                                                                           if !a_is_ok {
                                                                                                                                                                                                                                                  @@ -531,7 +531,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function();
                                                                                                                                                                                                                                                           let a_is_ok = a_result.is_ok();
                                                                                                                                                                                                                                                           if !a_is_ok {
                                                                                                                                                                                                                                                  @@ -746,7 +746,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ok_gt_expr_as_result!($a_function, $a_param, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  @@ -762,7 +762,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ok_gt_expr_as_result!($a_function, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_ok_le.rs.html b/doc/src/lib/assert_fn_ok/assert_fn_ok_le.rs.html
                                                                                                                                                                                                                                                  similarity index 93%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_ok_le.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn_ok/assert_fn_ok_le.rs.html
                                                                                                                                                                                                                                                  index 7eca34dce..6a02a5725 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_ok_le.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn_ok/assert_fn_ok_le.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_ok_le.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_ok_le.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -480,7 +480,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function($a_param);
                                                                                                                                                                                                                                                           let b_result = $b_function($b_param);
                                                                                                                                                                                                                                                           let a_is_ok = a_result.is_ok();
                                                                                                                                                                                                                                                  @@ -736,7 +736,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ok_le_as_result!($a_function, $a_param, $b_function, $b_param) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_ok_le_expr.rs.html b/doc/src/lib/assert_fn_ok/assert_fn_ok_le_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 92%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_ok_le_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn_ok/assert_fn_ok_le_expr.rs.html
                                                                                                                                                                                                                                                  index 5f4aebcfa..8be47003a 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_ok_le_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn_ok/assert_fn_ok_le_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_ok_le_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_ok_le_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -463,7 +463,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function($a_param);
                                                                                                                                                                                                                                                           let a_is_ok = a_result.is_ok();
                                                                                                                                                                                                                                                           if !a_is_ok {
                                                                                                                                                                                                                                                  @@ -510,7 +510,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function();
                                                                                                                                                                                                                                                           let a_is_ok = a_result.is_ok();
                                                                                                                                                                                                                                                           if !a_is_ok {
                                                                                                                                                                                                                                                  @@ -702,7 +702,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ok_le_expr_as_result!($a_function, $a_param, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  @@ -718,7 +718,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ok_le_expr_as_result!($a_function, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_ok_lt.rs.html b/doc/src/lib/assert_fn_ok/assert_fn_ok_lt.rs.html
                                                                                                                                                                                                                                                  similarity index 94%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_ok_lt.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn_ok/assert_fn_ok_lt.rs.html
                                                                                                                                                                                                                                                  index 80078e01a..945197d88 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_ok_lt.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn_ok/assert_fn_ok_lt.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_ok_lt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_ok_lt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -504,7 +504,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function($a_param);
                                                                                                                                                                                                                                                           let b_result = $b_function($b_param);
                                                                                                                                                                                                                                                           let a_is_ok = a_result.is_ok();
                                                                                                                                                                                                                                                  @@ -784,7 +784,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ok_lt_as_result!($a_function, $a_param, $b_function, $b_param) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_ok_lt_expr.rs.html b/doc/src/lib/assert_fn_ok/assert_fn_ok_lt_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 92%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_ok_lt_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn_ok/assert_fn_ok_lt_expr.rs.html
                                                                                                                                                                                                                                                  index 8ffc574a7..c1d3fa9a2 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_ok_lt_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn_ok/assert_fn_ok_lt_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_ok_lt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_ok_lt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -449,7 +449,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function($a_param);
                                                                                                                                                                                                                                                           let a_is_ok = a_result.is_ok();
                                                                                                                                                                                                                                                           if !a_is_ok {
                                                                                                                                                                                                                                                  @@ -496,7 +496,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function();
                                                                                                                                                                                                                                                           let a_is_ok = a_result.is_ok();
                                                                                                                                                                                                                                                           if !a_is_ok {
                                                                                                                                                                                                                                                  @@ -672,7 +672,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ok_lt_expr_as_result!($a_function, $a_param, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  @@ -688,7 +688,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ok_lt_expr_as_result!($a_function, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_ok_ne.rs.html b/doc/src/lib/assert_fn_ok/assert_fn_ok_ne.rs.html
                                                                                                                                                                                                                                                  similarity index 93%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_ok_ne.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn_ok/assert_fn_ok_ne.rs.html
                                                                                                                                                                                                                                                  index 177d02988..fde76d127 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_ok_ne.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn_ok/assert_fn_ok_ne.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_ok_ne.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_ok_ne.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -466,7 +466,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function($a_param);
                                                                                                                                                                                                                                                           let b_result = $b_function($b_param);
                                                                                                                                                                                                                                                           let a_is_ok = a_result.is_ok();
                                                                                                                                                                                                                                                  @@ -708,7 +708,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ok_ne_as_result!($a_function, $a_param, $b_function, $b_param) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_ok_ne_expr.rs.html b/doc/src/lib/assert_fn_ok/assert_fn_ok_ne_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 92%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fn_ok_ne_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fn_ok/assert_fn_ok_ne_expr.rs.html
                                                                                                                                                                                                                                                  index ea0820e32..e1aa179f9 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fn_ok_ne_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn_ok/assert_fn_ok_ne_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fn_ok_ne_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fn_ok_ne_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  @@ -445,7 +445,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function($a_param);
                                                                                                                                                                                                                                                           let a_is_ok = a_result.is_ok();
                                                                                                                                                                                                                                                           if !a_is_ok {
                                                                                                                                                                                                                                                  @@ -492,7 +492,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           let a_result = $a_function();
                                                                                                                                                                                                                                                           let a_is_ok = a_result.is_ok();
                                                                                                                                                                                                                                                           if !a_is_ok {
                                                                                                                                                                                                                                                  @@ -668,7 +668,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 1
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $a_param:expr, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ok_ne_expr_as_result!($a_function, $a_param, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  @@ -684,7 +684,7 @@
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                       //// Arity 0
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -    ($a_function:path, $b_expr:expr) => ({
                                                                                                                                                                                                                                                  +    ($a_function:path, $b_expr:expr $(,)?) => ({
                                                                                                                                                                                                                                                           match assert_fn_ok_ne_expr_as_result!($a_function, $b_expr) {
                                                                                                                                                                                                                                                               Ok(()) => (),
                                                                                                                                                                                                                                                               Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fn_ok/mod.rs.html b/doc/src/lib/assert_fn_ok/mod.rs.html
                                                                                                                                                                                                                                                  new file mode 100644
                                                                                                                                                                                                                                                  index 000000000..02589d515
                                                                                                                                                                                                                                                  --- /dev/null
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fn_ok/mod.rs.html
                                                                                                                                                                                                                                                  @@ -0,0 +1,147 @@
                                                                                                                                                                                                                                                  +mod.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +2
                                                                                                                                                                                                                                                  +3
                                                                                                                                                                                                                                                  +4
                                                                                                                                                                                                                                                  +5
                                                                                                                                                                                                                                                  +6
                                                                                                                                                                                                                                                  +7
                                                                                                                                                                                                                                                  +8
                                                                                                                                                                                                                                                  +9
                                                                                                                                                                                                                                                  +10
                                                                                                                                                                                                                                                  +11
                                                                                                                                                                                                                                                  +12
                                                                                                                                                                                                                                                  +13
                                                                                                                                                                                                                                                  +14
                                                                                                                                                                                                                                                  +15
                                                                                                                                                                                                                                                  +16
                                                                                                                                                                                                                                                  +17
                                                                                                                                                                                                                                                  +18
                                                                                                                                                                                                                                                  +19
                                                                                                                                                                                                                                                  +20
                                                                                                                                                                                                                                                  +21
                                                                                                                                                                                                                                                  +22
                                                                                                                                                                                                                                                  +23
                                                                                                                                                                                                                                                  +24
                                                                                                                                                                                                                                                  +25
                                                                                                                                                                                                                                                  +26
                                                                                                                                                                                                                                                  +27
                                                                                                                                                                                                                                                  +28
                                                                                                                                                                                                                                                  +29
                                                                                                                                                                                                                                                  +30
                                                                                                                                                                                                                                                  +31
                                                                                                                                                                                                                                                  +32
                                                                                                                                                                                                                                                  +33
                                                                                                                                                                                                                                                  +34
                                                                                                                                                                                                                                                  +35
                                                                                                                                                                                                                                                  +36
                                                                                                                                                                                                                                                  +37
                                                                                                                                                                                                                                                  +38
                                                                                                                                                                                                                                                  +39
                                                                                                                                                                                                                                                  +40
                                                                                                                                                                                                                                                  +41
                                                                                                                                                                                                                                                  +42
                                                                                                                                                                                                                                                  +43
                                                                                                                                                                                                                                                  +44
                                                                                                                                                                                                                                                  +45
                                                                                                                                                                                                                                                  +46
                                                                                                                                                                                                                                                  +47
                                                                                                                                                                                                                                                  +48
                                                                                                                                                                                                                                                  +49
                                                                                                                                                                                                                                                  +50
                                                                                                                                                                                                                                                  +51
                                                                                                                                                                                                                                                  +52
                                                                                                                                                                                                                                                  +53
                                                                                                                                                                                                                                                  +54
                                                                                                                                                                                                                                                  +55
                                                                                                                                                                                                                                                  +56
                                                                                                                                                                                                                                                  +57
                                                                                                                                                                                                                                                  +58
                                                                                                                                                                                                                                                  +59
                                                                                                                                                                                                                                                  +60
                                                                                                                                                                                                                                                  +61
                                                                                                                                                                                                                                                  +62
                                                                                                                                                                                                                                                  +63
                                                                                                                                                                                                                                                  +64
                                                                                                                                                                                                                                                  +65
                                                                                                                                                                                                                                                  +66
                                                                                                                                                                                                                                                  +67
                                                                                                                                                                                                                                                  +68
                                                                                                                                                                                                                                                  +69
                                                                                                                                                                                                                                                  +70
                                                                                                                                                                                                                                                  +71
                                                                                                                                                                                                                                                  +72
                                                                                                                                                                                                                                                  +73
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  //! Assert macros for comparing functions that return Result::Ok.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! These macros help compare functions that return results that are ok, such as
                                                                                                                                                                                                                                                  +//! `std::Result::Ok` or similar.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! The macros use these capabilities:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * implements `.is_ok() -> boolean`
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * implements `.unwrap_ok() -> comparable`
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! Compare a function Ok() with another function Ok():
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_ok_eq!(function1, function2)`](macro@crate::assert_fn_ok_eq) ≈ function1().unwrap_err() = function2().unwrap_err()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_ok_ne!(function1, function2)`](macro@crate::assert_fn_ok_ne) ≈ function1().unwrap_err() ≠ function2().unwrap_err()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_ok_ge!(function1, function2)`](macro@crate::assert_fn_ok_ge) ≈ function1().unwrap_err() ≥ function2().unwrap_err()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_ok_gt!(function1, function2)`](macro@crate::assert_fn_ok_gt) ≈ function1().unwrap_err() > function2().unwrap_err()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_ok_le!(function1, function2)`](macro@crate::assert_fn_ok_le) ≈ function1().unwrap_err() ≤ function2().unwrap_err()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_ok_lt!(function1, function2)`](macro@crate::assert_fn_ok_lt) ≈ function1().unwrap_err() < function2().unwrap_err()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! Compare a function Ok() with an expression:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_ok_eq!(function, expr)`](macro@crate::assert_fn_ok_eq) ≈ function().unwrap_err() = expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_ok_ne!(function, expr)`](macro@crate::assert_fn_ok_ne) ≈ function().unwrap_err() ≠ expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_ok_ge!(function, expr)`](macro@crate::assert_fn_ok_ge) ≈ function().unwrap_err() ≥ expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_ok_gt!(function, expr)`](macro@crate::assert_fn_ok_gt) ≈ function().unwrap_err() > expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_ok_le!(function, expr)`](macro@crate::assert_fn_ok_le) ≈ function().unwrap_err() ≤ expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fn_ok_lt!(function, expr)`](macro@crate::assert_fn_ok_lt) ≈ function().unwrap_err() < expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # Example
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! ```rust
                                                                                                                                                                                                                                                  +//! # #[macro_use] extern crate assertables;
                                                                                                                                                                                                                                                  +//! fn f(i: i8) -> Result<String, String> {
                                                                                                                                                                                                                                                  +//!     match i {
                                                                                                                                                                                                                                                  +//!         0..=9 => Ok(format!("{}", i)),
                                                                                                                                                                                                                                                  +//!         _ => Err(format!("{:?} is out of range", i)),
                                                                                                                                                                                                                                                  +//!     }
                                                                                                                                                                                                                                                  +//! }
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # fn main() {
                                                                                                                                                                                                                                                  +//! let a: i8 = 1;
                                                                                                                                                                                                                                                  +//! let b: i8 = 1;
                                                                                                                                                                                                                                                  +//! assert_fn_ok_eq!(f, a, f, b);
                                                                                                                                                                                                                                                  +//! # }
                                                                                                                                                                                                                                                  +//! ```
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +// Comparisons
                                                                                                                                                                                                                                                  +pub mod assert_fn_ok_eq;
                                                                                                                                                                                                                                                  +pub mod assert_fn_ok_ne;
                                                                                                                                                                                                                                                  +pub mod assert_fn_ok_lt;
                                                                                                                                                                                                                                                  +pub mod assert_fn_ok_le;
                                                                                                                                                                                                                                                  +pub mod assert_fn_ok_gt;
                                                                                                                                                                                                                                                  +pub mod assert_fn_ok_ge;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +// Comparisons with expressions
                                                                                                                                                                                                                                                  +pub mod assert_fn_ok_eq_expr;
                                                                                                                                                                                                                                                  +pub mod assert_fn_ok_ne_expr;
                                                                                                                                                                                                                                                  +pub mod assert_fn_ok_lt_expr;
                                                                                                                                                                                                                                                  +pub mod assert_fn_ok_le_expr;
                                                                                                                                                                                                                                                  +pub mod assert_fn_ok_gt_expr;
                                                                                                                                                                                                                                                  +pub mod assert_fn_ok_ge_expr;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/src/lib/assert_fs_read_to_string_contains.rs.html b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_contains.rs.html similarity index 91% rename from doc/src/lib/assert_fs_read_to_string_contains.rs.html rename to doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_contains.rs.html index b5bc662d4..66a14174e 100644 --- a/doc/src/lib/assert_fs_read_to_string_contains.rs.html +++ b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_contains.rs.html @@ -1,4 +1,4 @@ -assert_fs_read_to_string_contains.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fs_read_to_string_contains.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fs_read_to_string_eq.rs.html b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_eq.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fs_read_to_string_eq.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_eq.rs.html
                                                                                                                                                                                                                                                  index 2c0b75df2..f97eb8cdc 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fs_read_to_string_eq.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_eq.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fs_read_to_string_eq.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fs_read_to_string_eq.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fs_read_to_string_eq_expr.rs.html b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_eq_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fs_read_to_string_eq_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_eq_expr.rs.html
                                                                                                                                                                                                                                                  index d2fb4ca10..459edcb17 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fs_read_to_string_eq_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_eq_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fs_read_to_string_eq_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fs_read_to_string_eq_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fs_read_to_string_ge.rs.html b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_ge.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fs_read_to_string_ge.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_ge.rs.html
                                                                                                                                                                                                                                                  index fba5d7f6f..8b4924d41 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fs_read_to_string_ge.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_ge.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fs_read_to_string_ge.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fs_read_to_string_ge.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fs_read_to_string_ge_expr.rs.html b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_ge_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fs_read_to_string_ge_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_ge_expr.rs.html
                                                                                                                                                                                                                                                  index 27e2d1e0b..69b9f3ab1 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fs_read_to_string_ge_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_ge_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fs_read_to_string_ge_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fs_read_to_string_ge_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fs_read_to_string_gt.rs.html b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_gt.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fs_read_to_string_gt.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_gt.rs.html
                                                                                                                                                                                                                                                  index 5748914be..d43e9d02c 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fs_read_to_string_gt.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_gt.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fs_read_to_string_gt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fs_read_to_string_gt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fs_read_to_string_gt_expr.rs.html b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_gt_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fs_read_to_string_gt_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_gt_expr.rs.html
                                                                                                                                                                                                                                                  index f352282b7..953dbf214 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fs_read_to_string_gt_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_gt_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fs_read_to_string_gt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fs_read_to_string_gt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fs_read_to_string_le.rs.html b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_le.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fs_read_to_string_le.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_le.rs.html
                                                                                                                                                                                                                                                  index 276ef8e23..6cb4f8564 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fs_read_to_string_le.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_le.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fs_read_to_string_le.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fs_read_to_string_le.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fs_read_to_string_le_expr.rs.html b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_le_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fs_read_to_string_le_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_le_expr.rs.html
                                                                                                                                                                                                                                                  index 5a5b2dde1..d6853a6b4 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fs_read_to_string_le_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_le_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fs_read_to_string_le_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fs_read_to_string_le_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fs_read_to_string_lt.rs.html b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_lt.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fs_read_to_string_lt.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_lt.rs.html
                                                                                                                                                                                                                                                  index b6220b03b..53ee15f65 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fs_read_to_string_lt.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_lt.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fs_read_to_string_lt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fs_read_to_string_lt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fs_read_to_string_lt_expr.rs.html b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_lt_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fs_read_to_string_lt_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_lt_expr.rs.html
                                                                                                                                                                                                                                                  index be488f8d9..984b04f13 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fs_read_to_string_lt_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_lt_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fs_read_to_string_lt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fs_read_to_string_lt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fs_read_to_string_matches.rs.html b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_matches.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fs_read_to_string_matches.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_matches.rs.html
                                                                                                                                                                                                                                                  index cc747afce..f46346af7 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fs_read_to_string_matches.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_matches.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fs_read_to_string_matches.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fs_read_to_string_matches.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fs_read_to_string_ne.rs.html b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_ne.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fs_read_to_string_ne.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_ne.rs.html
                                                                                                                                                                                                                                                  index 3802830e5..5079cb45c 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fs_read_to_string_ne.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_ne.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fs_read_to_string_ne.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fs_read_to_string_ne.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fs_read_to_string_ne_expr.rs.html b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_ne_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_fs_read_to_string_ne_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_ne_expr.rs.html
                                                                                                                                                                                                                                                  index 5ff43cdf2..809f9d63f 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_fs_read_to_string_ne_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fs_read_to_string/assert_fs_read_to_string_ne_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_fs_read_to_string_ne_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_fs_read_to_string_ne_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_fs_read_to_string/mod.rs.html b/doc/src/lib/assert_fs_read_to_string/mod.rs.html
                                                                                                                                                                                                                                                  new file mode 100644
                                                                                                                                                                                                                                                  index 000000000..63570399b
                                                                                                                                                                                                                                                  --- /dev/null
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_fs_read_to_string/mod.rs.html
                                                                                                                                                                                                                                                  @@ -0,0 +1,149 @@
                                                                                                                                                                                                                                                  +mod.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +2
                                                                                                                                                                                                                                                  +3
                                                                                                                                                                                                                                                  +4
                                                                                                                                                                                                                                                  +5
                                                                                                                                                                                                                                                  +6
                                                                                                                                                                                                                                                  +7
                                                                                                                                                                                                                                                  +8
                                                                                                                                                                                                                                                  +9
                                                                                                                                                                                                                                                  +10
                                                                                                                                                                                                                                                  +11
                                                                                                                                                                                                                                                  +12
                                                                                                                                                                                                                                                  +13
                                                                                                                                                                                                                                                  +14
                                                                                                                                                                                                                                                  +15
                                                                                                                                                                                                                                                  +16
                                                                                                                                                                                                                                                  +17
                                                                                                                                                                                                                                                  +18
                                                                                                                                                                                                                                                  +19
                                                                                                                                                                                                                                                  +20
                                                                                                                                                                                                                                                  +21
                                                                                                                                                                                                                                                  +22
                                                                                                                                                                                                                                                  +23
                                                                                                                                                                                                                                                  +24
                                                                                                                                                                                                                                                  +25
                                                                                                                                                                                                                                                  +26
                                                                                                                                                                                                                                                  +27
                                                                                                                                                                                                                                                  +28
                                                                                                                                                                                                                                                  +29
                                                                                                                                                                                                                                                  +30
                                                                                                                                                                                                                                                  +31
                                                                                                                                                                                                                                                  +32
                                                                                                                                                                                                                                                  +33
                                                                                                                                                                                                                                                  +34
                                                                                                                                                                                                                                                  +35
                                                                                                                                                                                                                                                  +36
                                                                                                                                                                                                                                                  +37
                                                                                                                                                                                                                                                  +38
                                                                                                                                                                                                                                                  +39
                                                                                                                                                                                                                                                  +40
                                                                                                                                                                                                                                                  +41
                                                                                                                                                                                                                                                  +42
                                                                                                                                                                                                                                                  +43
                                                                                                                                                                                                                                                  +44
                                                                                                                                                                                                                                                  +45
                                                                                                                                                                                                                                                  +46
                                                                                                                                                                                                                                                  +47
                                                                                                                                                                                                                                                  +48
                                                                                                                                                                                                                                                  +49
                                                                                                                                                                                                                                                  +50
                                                                                                                                                                                                                                                  +51
                                                                                                                                                                                                                                                  +52
                                                                                                                                                                                                                                                  +53
                                                                                                                                                                                                                                                  +54
                                                                                                                                                                                                                                                  +55
                                                                                                                                                                                                                                                  +56
                                                                                                                                                                                                                                                  +57
                                                                                                                                                                                                                                                  +58
                                                                                                                                                                                                                                                  +59
                                                                                                                                                                                                                                                  +60
                                                                                                                                                                                                                                                  +61
                                                                                                                                                                                                                                                  +62
                                                                                                                                                                                                                                                  +63
                                                                                                                                                                                                                                                  +64
                                                                                                                                                                                                                                                  +65
                                                                                                                                                                                                                                                  +66
                                                                                                                                                                                                                                                  +67
                                                                                                                                                                                                                                                  +68
                                                                                                                                                                                                                                                  +69
                                                                                                                                                                                                                                                  +70
                                                                                                                                                                                                                                                  +71
                                                                                                                                                                                                                                                  +72
                                                                                                                                                                                                                                                  +73
                                                                                                                                                                                                                                                  +74
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  //! Assert macros for comparing file system path contents.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! These macros help with file system paths, such as disk files, `Path`,
                                                                                                                                                                                                                                                  +//! `PathBuf`, the trait `AsRef<Path>`, and anything that is readable via
                                                                                                                                                                                                                                                  +//! `std::fs::read_to_string(…)`.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! Compare a path with another path:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fs_read_to_string_eq!(path1, path2)`](macro@crate::assert_fs_read_to_string_eq) ≈ std::fs::read_to_string(path1) = std::fs::read_to_string(path2)
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fs_read_to_string_ne!(path1, path2)`](macro@crate::assert_fs_read_to_string_ne) ≈ std::fs::read_to_string(path1) ≠ std::fs::read_to_string(path2)
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fs_read_to_string_ge!(path1, path2)`](macro@crate::assert_fs_read_to_string_ge) ≈ std::fs::read_to_string(path1) ≥ std::fs::read_to_string(path2)
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fs_read_to_string_gt!(path1, path2)`](macro@crate::assert_fs_read_to_string_gt) ≈ std::fs::read_to_string(path1) > std::fs::read_to_string(path2)
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fs_read_to_string_le!(path1, path2)`](macro@crate::assert_fs_read_to_string_le) ≈ std::fs::read_to_string(path1) ≤ std::fs::read_to_string(path2)
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fs_read_to_string_lt!(path1, path2)`](macro@crate::assert_fs_read_to_string_lt) ≈ std::fs::read_to_string(path1) < std::fs::read_to_string(path2)
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! Compare a path with an expression:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fs_read_to_string_eq_expr!(path, expr)`](macro@crate::assert_fs_read_to_string_eq_expr) ≈ std::fs::read_to_string(path) = expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fs_read_to_string_ne_expr!(path, expr)`](macro@crate::assert_fs_read_to_string_ne_expr) ≈ std::fs::read_to_string(path) ≠ expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fs_read_to_string_ge_expr!(path, expr)`](macro@crate::assert_fs_read_to_string_ge_expr) ≈ std::fs::read_to_string(path) ≥ expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fs_read_to_string_gt_expr!(path, expr)`](macro@crate::assert_fs_read_to_string_gt_expr) ≈ std::fs::read_to_string(path) > expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fs_read_to_string_le_expr!(path, expr)`](macro@crate::assert_fs_read_to_string_le_expr) ≈ std::fs::read_to_string(path) ≤ expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fs_read_to_string_lt_expr!(path, expr)`](macro@crate::assert_fs_read_to_string_lt_expr) ≈ std::fs::read_to_string(path) < expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! Compare a path with its contents:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fs_read_to_string_contains!(path, containee)`](macro@crate::assert_fs_read_to_string_contains) ≈ std::fs::read_to_string(path).contains(containee)
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_fs_read_to_string_matches!(path, matcher)`](macro@crate::assert_fs_read_to_string_matches) ≈ matcher.is_match(std::fs::read_to_string(path))
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # Example
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! ```rust
                                                                                                                                                                                                                                                  +//! # #[macro_use] extern crate assertables;
                                                                                                                                                                                                                                                  +//! use std::io::Read;
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # fn main() {
                                                                                                                                                                                                                                                  +//! let a ="alfa.txt";
                                                                                                                                                                                                                                                  +//! let mut b = "alfa.txt";
                                                                                                                                                                                                                                                  +//! assert_fs_read_to_string_eq!(&a, &b);
                                                                                                                                                                                                                                                  +//! # }
                                                                                                                                                                                                                                                  +//! ```
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +// Comparisons
                                                                                                                                                                                                                                                  +pub mod assert_fs_read_to_string_eq;
                                                                                                                                                                                                                                                  +pub mod assert_fs_read_to_string_ne;
                                                                                                                                                                                                                                                  +pub mod assert_fs_read_to_string_lt;
                                                                                                                                                                                                                                                  +pub mod assert_fs_read_to_string_le;
                                                                                                                                                                                                                                                  +pub mod assert_fs_read_to_string_gt;
                                                                                                                                                                                                                                                  +pub mod assert_fs_read_to_string_ge;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +// Comparisons with expressions
                                                                                                                                                                                                                                                  +pub mod assert_fs_read_to_string_eq_expr;
                                                                                                                                                                                                                                                  +pub mod assert_fs_read_to_string_ne_expr;
                                                                                                                                                                                                                                                  +pub mod assert_fs_read_to_string_lt_expr;
                                                                                                                                                                                                                                                  +pub mod assert_fs_read_to_string_le_expr;
                                                                                                                                                                                                                                                  +pub mod assert_fs_read_to_string_gt_expr;
                                                                                                                                                                                                                                                  +pub mod assert_fs_read_to_string_ge_expr;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +// Specializations
                                                                                                                                                                                                                                                  +pub mod assert_fs_read_to_string_contains;
                                                                                                                                                                                                                                                  +pub mod assert_fs_read_to_string_matches;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/src/lib/assert_infix.rs.html b/doc/src/lib/assert_infix.rs.html new file mode 100644 index 000000000..c4f90ef95 --- /dev/null +++ b/doc/src/lib/assert_infix.rs.html @@ -0,0 +1,579 @@ +assert_infix.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +2
                                                                                                                                                                                                                                                  +3
                                                                                                                                                                                                                                                  +4
                                                                                                                                                                                                                                                  +5
                                                                                                                                                                                                                                                  +6
                                                                                                                                                                                                                                                  +7
                                                                                                                                                                                                                                                  +8
                                                                                                                                                                                                                                                  +9
                                                                                                                                                                                                                                                  +10
                                                                                                                                                                                                                                                  +11
                                                                                                                                                                                                                                                  +12
                                                                                                                                                                                                                                                  +13
                                                                                                                                                                                                                                                  +14
                                                                                                                                                                                                                                                  +15
                                                                                                                                                                                                                                                  +16
                                                                                                                                                                                                                                                  +17
                                                                                                                                                                                                                                                  +18
                                                                                                                                                                                                                                                  +19
                                                                                                                                                                                                                                                  +20
                                                                                                                                                                                                                                                  +21
                                                                                                                                                                                                                                                  +22
                                                                                                                                                                                                                                                  +23
                                                                                                                                                                                                                                                  +24
                                                                                                                                                                                                                                                  +25
                                                                                                                                                                                                                                                  +26
                                                                                                                                                                                                                                                  +27
                                                                                                                                                                                                                                                  +28
                                                                                                                                                                                                                                                  +29
                                                                                                                                                                                                                                                  +30
                                                                                                                                                                                                                                                  +31
                                                                                                                                                                                                                                                  +32
                                                                                                                                                                                                                                                  +33
                                                                                                                                                                                                                                                  +34
                                                                                                                                                                                                                                                  +35
                                                                                                                                                                                                                                                  +36
                                                                                                                                                                                                                                                  +37
                                                                                                                                                                                                                                                  +38
                                                                                                                                                                                                                                                  +39
                                                                                                                                                                                                                                                  +40
                                                                                                                                                                                                                                                  +41
                                                                                                                                                                                                                                                  +42
                                                                                                                                                                                                                                                  +43
                                                                                                                                                                                                                                                  +44
                                                                                                                                                                                                                                                  +45
                                                                                                                                                                                                                                                  +46
                                                                                                                                                                                                                                                  +47
                                                                                                                                                                                                                                                  +48
                                                                                                                                                                                                                                                  +49
                                                                                                                                                                                                                                                  +50
                                                                                                                                                                                                                                                  +51
                                                                                                                                                                                                                                                  +52
                                                                                                                                                                                                                                                  +53
                                                                                                                                                                                                                                                  +54
                                                                                                                                                                                                                                                  +55
                                                                                                                                                                                                                                                  +56
                                                                                                                                                                                                                                                  +57
                                                                                                                                                                                                                                                  +58
                                                                                                                                                                                                                                                  +59
                                                                                                                                                                                                                                                  +60
                                                                                                                                                                                                                                                  +61
                                                                                                                                                                                                                                                  +62
                                                                                                                                                                                                                                                  +63
                                                                                                                                                                                                                                                  +64
                                                                                                                                                                                                                                                  +65
                                                                                                                                                                                                                                                  +66
                                                                                                                                                                                                                                                  +67
                                                                                                                                                                                                                                                  +68
                                                                                                                                                                                                                                                  +69
                                                                                                                                                                                                                                                  +70
                                                                                                                                                                                                                                                  +71
                                                                                                                                                                                                                                                  +72
                                                                                                                                                                                                                                                  +73
                                                                                                                                                                                                                                                  +74
                                                                                                                                                                                                                                                  +75
                                                                                                                                                                                                                                                  +76
                                                                                                                                                                                                                                                  +77
                                                                                                                                                                                                                                                  +78
                                                                                                                                                                                                                                                  +79
                                                                                                                                                                                                                                                  +80
                                                                                                                                                                                                                                                  +81
                                                                                                                                                                                                                                                  +82
                                                                                                                                                                                                                                                  +83
                                                                                                                                                                                                                                                  +84
                                                                                                                                                                                                                                                  +85
                                                                                                                                                                                                                                                  +86
                                                                                                                                                                                                                                                  +87
                                                                                                                                                                                                                                                  +88
                                                                                                                                                                                                                                                  +89
                                                                                                                                                                                                                                                  +90
                                                                                                                                                                                                                                                  +91
                                                                                                                                                                                                                                                  +92
                                                                                                                                                                                                                                                  +93
                                                                                                                                                                                                                                                  +94
                                                                                                                                                                                                                                                  +95
                                                                                                                                                                                                                                                  +96
                                                                                                                                                                                                                                                  +97
                                                                                                                                                                                                                                                  +98
                                                                                                                                                                                                                                                  +99
                                                                                                                                                                                                                                                  +100
                                                                                                                                                                                                                                                  +101
                                                                                                                                                                                                                                                  +102
                                                                                                                                                                                                                                                  +103
                                                                                                                                                                                                                                                  +104
                                                                                                                                                                                                                                                  +105
                                                                                                                                                                                                                                                  +106
                                                                                                                                                                                                                                                  +107
                                                                                                                                                                                                                                                  +108
                                                                                                                                                                                                                                                  +109
                                                                                                                                                                                                                                                  +110
                                                                                                                                                                                                                                                  +111
                                                                                                                                                                                                                                                  +112
                                                                                                                                                                                                                                                  +113
                                                                                                                                                                                                                                                  +114
                                                                                                                                                                                                                                                  +115
                                                                                                                                                                                                                                                  +116
                                                                                                                                                                                                                                                  +117
                                                                                                                                                                                                                                                  +118
                                                                                                                                                                                                                                                  +119
                                                                                                                                                                                                                                                  +120
                                                                                                                                                                                                                                                  +121
                                                                                                                                                                                                                                                  +122
                                                                                                                                                                                                                                                  +123
                                                                                                                                                                                                                                                  +124
                                                                                                                                                                                                                                                  +125
                                                                                                                                                                                                                                                  +126
                                                                                                                                                                                                                                                  +127
                                                                                                                                                                                                                                                  +128
                                                                                                                                                                                                                                                  +129
                                                                                                                                                                                                                                                  +130
                                                                                                                                                                                                                                                  +131
                                                                                                                                                                                                                                                  +132
                                                                                                                                                                                                                                                  +133
                                                                                                                                                                                                                                                  +134
                                                                                                                                                                                                                                                  +135
                                                                                                                                                                                                                                                  +136
                                                                                                                                                                                                                                                  +137
                                                                                                                                                                                                                                                  +138
                                                                                                                                                                                                                                                  +139
                                                                                                                                                                                                                                                  +140
                                                                                                                                                                                                                                                  +141
                                                                                                                                                                                                                                                  +142
                                                                                                                                                                                                                                                  +143
                                                                                                                                                                                                                                                  +144
                                                                                                                                                                                                                                                  +145
                                                                                                                                                                                                                                                  +146
                                                                                                                                                                                                                                                  +147
                                                                                                                                                                                                                                                  +148
                                                                                                                                                                                                                                                  +149
                                                                                                                                                                                                                                                  +150
                                                                                                                                                                                                                                                  +151
                                                                                                                                                                                                                                                  +152
                                                                                                                                                                                                                                                  +153
                                                                                                                                                                                                                                                  +154
                                                                                                                                                                                                                                                  +155
                                                                                                                                                                                                                                                  +156
                                                                                                                                                                                                                                                  +157
                                                                                                                                                                                                                                                  +158
                                                                                                                                                                                                                                                  +159
                                                                                                                                                                                                                                                  +160
                                                                                                                                                                                                                                                  +161
                                                                                                                                                                                                                                                  +162
                                                                                                                                                                                                                                                  +163
                                                                                                                                                                                                                                                  +164
                                                                                                                                                                                                                                                  +165
                                                                                                                                                                                                                                                  +166
                                                                                                                                                                                                                                                  +167
                                                                                                                                                                                                                                                  +168
                                                                                                                                                                                                                                                  +169
                                                                                                                                                                                                                                                  +170
                                                                                                                                                                                                                                                  +171
                                                                                                                                                                                                                                                  +172
                                                                                                                                                                                                                                                  +173
                                                                                                                                                                                                                                                  +174
                                                                                                                                                                                                                                                  +175
                                                                                                                                                                                                                                                  +176
                                                                                                                                                                                                                                                  +177
                                                                                                                                                                                                                                                  +178
                                                                                                                                                                                                                                                  +179
                                                                                                                                                                                                                                                  +180
                                                                                                                                                                                                                                                  +181
                                                                                                                                                                                                                                                  +182
                                                                                                                                                                                                                                                  +183
                                                                                                                                                                                                                                                  +184
                                                                                                                                                                                                                                                  +185
                                                                                                                                                                                                                                                  +186
                                                                                                                                                                                                                                                  +187
                                                                                                                                                                                                                                                  +188
                                                                                                                                                                                                                                                  +189
                                                                                                                                                                                                                                                  +190
                                                                                                                                                                                                                                                  +191
                                                                                                                                                                                                                                                  +192
                                                                                                                                                                                                                                                  +193
                                                                                                                                                                                                                                                  +194
                                                                                                                                                                                                                                                  +195
                                                                                                                                                                                                                                                  +196
                                                                                                                                                                                                                                                  +197
                                                                                                                                                                                                                                                  +198
                                                                                                                                                                                                                                                  +199
                                                                                                                                                                                                                                                  +200
                                                                                                                                                                                                                                                  +201
                                                                                                                                                                                                                                                  +202
                                                                                                                                                                                                                                                  +203
                                                                                                                                                                                                                                                  +204
                                                                                                                                                                                                                                                  +205
                                                                                                                                                                                                                                                  +206
                                                                                                                                                                                                                                                  +207
                                                                                                                                                                                                                                                  +208
                                                                                                                                                                                                                                                  +209
                                                                                                                                                                                                                                                  +210
                                                                                                                                                                                                                                                  +211
                                                                                                                                                                                                                                                  +212
                                                                                                                                                                                                                                                  +213
                                                                                                                                                                                                                                                  +214
                                                                                                                                                                                                                                                  +215
                                                                                                                                                                                                                                                  +216
                                                                                                                                                                                                                                                  +217
                                                                                                                                                                                                                                                  +218
                                                                                                                                                                                                                                                  +219
                                                                                                                                                                                                                                                  +220
                                                                                                                                                                                                                                                  +221
                                                                                                                                                                                                                                                  +222
                                                                                                                                                                                                                                                  +223
                                                                                                                                                                                                                                                  +224
                                                                                                                                                                                                                                                  +225
                                                                                                                                                                                                                                                  +226
                                                                                                                                                                                                                                                  +227
                                                                                                                                                                                                                                                  +228
                                                                                                                                                                                                                                                  +229
                                                                                                                                                                                                                                                  +230
                                                                                                                                                                                                                                                  +231
                                                                                                                                                                                                                                                  +232
                                                                                                                                                                                                                                                  +233
                                                                                                                                                                                                                                                  +234
                                                                                                                                                                                                                                                  +235
                                                                                                                                                                                                                                                  +236
                                                                                                                                                                                                                                                  +237
                                                                                                                                                                                                                                                  +238
                                                                                                                                                                                                                                                  +239
                                                                                                                                                                                                                                                  +240
                                                                                                                                                                                                                                                  +241
                                                                                                                                                                                                                                                  +242
                                                                                                                                                                                                                                                  +243
                                                                                                                                                                                                                                                  +244
                                                                                                                                                                                                                                                  +245
                                                                                                                                                                                                                                                  +246
                                                                                                                                                                                                                                                  +247
                                                                                                                                                                                                                                                  +248
                                                                                                                                                                                                                                                  +249
                                                                                                                                                                                                                                                  +250
                                                                                                                                                                                                                                                  +251
                                                                                                                                                                                                                                                  +252
                                                                                                                                                                                                                                                  +253
                                                                                                                                                                                                                                                  +254
                                                                                                                                                                                                                                                  +255
                                                                                                                                                                                                                                                  +256
                                                                                                                                                                                                                                                  +257
                                                                                                                                                                                                                                                  +258
                                                                                                                                                                                                                                                  +259
                                                                                                                                                                                                                                                  +260
                                                                                                                                                                                                                                                  +261
                                                                                                                                                                                                                                                  +262
                                                                                                                                                                                                                                                  +263
                                                                                                                                                                                                                                                  +264
                                                                                                                                                                                                                                                  +265
                                                                                                                                                                                                                                                  +266
                                                                                                                                                                                                                                                  +267
                                                                                                                                                                                                                                                  +268
                                                                                                                                                                                                                                                  +269
                                                                                                                                                                                                                                                  +270
                                                                                                                                                                                                                                                  +271
                                                                                                                                                                                                                                                  +272
                                                                                                                                                                                                                                                  +273
                                                                                                                                                                                                                                                  +274
                                                                                                                                                                                                                                                  +275
                                                                                                                                                                                                                                                  +276
                                                                                                                                                                                                                                                  +277
                                                                                                                                                                                                                                                  +278
                                                                                                                                                                                                                                                  +279
                                                                                                                                                                                                                                                  +280
                                                                                                                                                                                                                                                  +281
                                                                                                                                                                                                                                                  +282
                                                                                                                                                                                                                                                  +283
                                                                                                                                                                                                                                                  +284
                                                                                                                                                                                                                                                  +285
                                                                                                                                                                                                                                                  +286
                                                                                                                                                                                                                                                  +287
                                                                                                                                                                                                                                                  +288
                                                                                                                                                                                                                                                  +289
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  //! Assert a infix operator, such as assert_infix!(a == b).
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * If true, return `()`.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * Otherwise, call [`panic!`] with a message and the values of the
                                                                                                                                                                                                                                                  +//!   expressions with their debug representations.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # Examples
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! ```rust
                                                                                                                                                                                                                                                  +//! # #[macro_use] extern crate assertables;
                                                                                                                                                                                                                                                  +//! # use std::panic;
                                                                                                                                                                                                                                                  +//! # fn main() {
                                                                                                                                                                                                                                                  +//! // Return Ok
                                                                                                                                                                                                                                                  +//! let a = 1;
                                                                                                                                                                                                                                                  +//! let b = 1;
                                                                                                                                                                                                                                                  +//! assert_infix!(a == b);
                                                                                                                                                                                                                                                  +//! //-> ()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! let a = 1;
                                                                                                                                                                                                                                                  +//! let b = 2;
                                                                                                                                                                                                                                                  +//! // Panic with error message
                                                                                                                                                                                                                                                  +//! let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  +//! assert_infix!(a == b);
                                                                                                                                                                                                                                                  +//! //-> panic!
                                                                                                                                                                                                                                                  +//! });
                                                                                                                                                                                                                                                  +//! assert!(result.is_err());
                                                                                                                                                                                                                                                  +//! let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                  +//! let expect = concat!(
                                                                                                                                                                                                                                                  +//!     "assertion failed: `assert_infix!(x == y)`\n",
                                                                                                                                                                                                                                                  +//!     " x label: `a`,\n",
                                                                                                                                                                                                                                                  +//!     " x debug: `1`,\n",
                                                                                                                                                                                                                                                  +//!     " y label: `b`,\n",
                                                                                                                                                                                                                                                  +//!     " y debug: `2`\n",
                                                                                                                                                                                                                                                  +//! );
                                                                                                                                                                                                                                                  +//! assert_eq!(actual, expect);
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! // Panic with error message
                                                                                                                                                                                                                                                  +//! let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  +//! assert_infix!(a == b, "message");
                                                                                                                                                                                                                                                  +//! //-> panic!
                                                                                                                                                                                                                                                  +//! });
                                                                                                                                                                                                                                                  +//! assert!(result.is_err());
                                                                                                                                                                                                                                                  +//! let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                  +//! let expect = "message";
                                                                                                                                                                                                                                                  +//! assert_eq!(actual, expect);
                                                                                                                                                                                                                                                  +//! # }
                                                                                                                                                                                                                                                  +//! ```
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # Infix operators
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! For values:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * `==`  equal
                                                                                                                                                                                                                                                  +//! * `!=`  not equal
                                                                                                                                                                                                                                                  +//! * `<`	less than
                                                                                                                                                                                                                                                  +//! * `<=`	less than or equal to
                                                                                                                                                                                                                                                  +//! * `>`	greater than
                                                                                                                                                                                                                                                  +//! * `>=`	greater than or equal to
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! For booleans:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * `^`	logical XOR
                                                                                                                                                                                                                                                  +//! * `!`	logical NOT
                                                                                                                                                                                                                                                  +//! * `&`	logical AND
                                                                                                                                                                                                                                                  +//! * `|`	logical OR
                                                                                                                                                                                                                                                  +//! * `&&`	logical lazy AND
                                                                                                                                                                                                                                                  +//! * `||`	logical lazy OR
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # Module macros
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_infix`](macro@crate::assert_infix)
                                                                                                                                                                                                                                                  +//! * [`assert_infix_as_result`](macro@crate::assert_infix_as_result)
                                                                                                                                                                                                                                                  +//! * [`debug_assert_infix`](macro@crate::debug_assert_infix)
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +/// Assert a infix operator, such as assert_infix!(a == b).
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * If true, return Result `Ok(())`.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * Otherwise, return Result `Err` with a diagnostic message.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro provides the same statements as [`assert_infix`](macro.assert_infix.html),
                                                                                                                                                                                                                                                  +/// except this macro returns a Result, rather than doing a panic.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro is useful for runtime checks, such as checking parameters,
                                                                                                                                                                                                                                                  +/// or sanitizing inputs, or handling different results in different ways.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// # Module macros
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * [`assert_infix`](macro@crate::assert_infix)
                                                                                                                                                                                                                                                  +/// * [`assert_infix_as_result`](macro@crate::assert_infix_as_result)
                                                                                                                                                                                                                                                  +/// * [`debug_assert_infix`](macro@crate::debug_assert_infix)
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +#[macro_export]
                                                                                                                                                                                                                                                  +macro_rules! assert_infix_as_result {
                                                                                                                                                                                                                                                  +    ($x:tt $infix:tt $y:tt) => {{
                                                                                                                                                                                                                                                  +        if $x $infix $y {
                                                                                                                                                                                                                                                  +            Ok(())
                                                                                                                                                                                                                                                  +        } else {
                                                                                                                                                                                                                                                  +            Err(format!(
                                                                                                                                                                                                                                                  +                concat!(
                                                                                                                                                                                                                                                  +                    "assertion failed: `assert_infix!(x {} y)`\n",
                                                                                                                                                                                                                                                  +                    " x label: `{}`,\n",
                                                                                                                                                                                                                                                  +                    " x debug: `{:?}`,\n",
                                                                                                                                                                                                                                                  +                    " y label: `{}`,\n",
                                                                                                                                                                                                                                                  +                    " y debug: `{:?}`\n",
                                                                                                                                                                                                                                                  +                ),
                                                                                                                                                                                                                                                  +                stringify!($infix),
                                                                                                                                                                                                                                                  +                stringify!($x),
                                                                                                                                                                                                                                                  +                $x,
                                                                                                                                                                                                                                                  +                stringify!($y),
                                                                                                                                                                                                                                                  +                $y,
                                                                                                                                                                                                                                                  +            ))
                                                                                                                                                                                                                                                  +        }
                                                                                                                                                                                                                                                  +    }};
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +#[cfg(test)]
                                                                                                                                                                                                                                                  +mod tests {
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +    #[test]
                                                                                                                                                                                                                                                  +    fn test_assert_infix_as_result_x_success() {
                                                                                                                                                                                                                                                  +        let a: i32 = 1;
                                                                                                                                                                                                                                                  +        let b: i32 = 1;
                                                                                                                                                                                                                                                  +        let result = assert_infix_as_result!(a == b);
                                                                                                                                                                                                                                                  +        assert_eq!(result, Ok(()));
                                                                                                                                                                                                                                                  +        let result = assert_infix_as_result!(a >= b);
                                                                                                                                                                                                                                                  +        assert_eq!(result, Ok(()));
                                                                                                                                                                                                                                                  +    }
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +    #[test]
                                                                                                                                                                                                                                                  +    fn test_assert_infix_as_result_x_failure() {
                                                                                                                                                                                                                                                  +        let a: i32 = 1;
                                                                                                                                                                                                                                                  +        let b: i32 = 2;
                                                                                                                                                                                                                                                  +        let result = assert_infix_as_result!(a == b);
                                                                                                                                                                                                                                                  +        assert!(result.is_err());
                                                                                                                                                                                                                                                  +        assert_eq!(
                                                                                                                                                                                                                                                  +            result.unwrap_err(),
                                                                                                                                                                                                                                                  +            concat!(
                                                                                                                                                                                                                                                  +                "assertion failed: `assert_infix!(x == y)`\n",
                                                                                                                                                                                                                                                  +                " x label: `a`,\n",
                                                                                                                                                                                                                                                  +                " x debug: `1`,\n",
                                                                                                                                                                                                                                                  +                " y label: `b`,\n",
                                                                                                                                                                                                                                                  +                " y debug: `2`\n",
                                                                                                                                                                                                                                                  +            )
                                                                                                                                                                                                                                                  +        );
                                                                                                                                                                                                                                                  +        let result = assert_infix_as_result!(a >= b);
                                                                                                                                                                                                                                                  +        assert!(result.is_err());
                                                                                                                                                                                                                                                  +        assert_eq!(
                                                                                                                                                                                                                                                  +            result.unwrap_err(),
                                                                                                                                                                                                                                                  +            concat!(
                                                                                                                                                                                                                                                  +                "assertion failed: `assert_infix!(x >= y)`\n",
                                                                                                                                                                                                                                                  +                " x label: `a`,\n",
                                                                                                                                                                                                                                                  +                " x debug: `1`,\n",
                                                                                                                                                                                                                                                  +                " y label: `b`,\n",
                                                                                                                                                                                                                                                  +                " y debug: `2`\n",
                                                                                                                                                                                                                                                  +            )
                                                                                                                                                                                                                                                  +        );
                                                                                                                                                                                                                                                  +    }
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +/// Assert a infix operator, such as assert_infix!(a == b).
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * If true, return `()`.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * Otherwise, call [`panic!`] with a message and the values of the
                                                                                                                                                                                                                                                  +///   expressions with their debug representations.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// # Examples
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// ```rust
                                                                                                                                                                                                                                                  +/// # #[macro_use] extern crate assertables;
                                                                                                                                                                                                                                                  +/// # use std::panic;
                                                                                                                                                                                                                                                  +/// # fn main() {
                                                                                                                                                                                                                                                  +/// // Return Ok
                                                                                                                                                                                                                                                  +/// let a = 1;
                                                                                                                                                                                                                                                  +/// let b = 1;
                                                                                                                                                                                                                                                  +/// assert_infix!(a == b);
                                                                                                                                                                                                                                                  +/// //-> ()
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// let a = 1;
                                                                                                                                                                                                                                                  +/// let b = 2;
                                                                                                                                                                                                                                                  +/// // Panic with error message
                                                                                                                                                                                                                                                  +/// let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  +/// assert_infix!(a == b);
                                                                                                                                                                                                                                                  +/// //-> panic!
                                                                                                                                                                                                                                                  +/// });
                                                                                                                                                                                                                                                  +/// assert!(result.is_err());
                                                                                                                                                                                                                                                  +/// let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                  +/// let expect = concat!(
                                                                                                                                                                                                                                                  +///     "assertion failed: `assert_infix!(x == y)`\n",
                                                                                                                                                                                                                                                  +///     " x label: `a`,\n",
                                                                                                                                                                                                                                                  +///     " x debug: `1`,\n",
                                                                                                                                                                                                                                                  +///     " y label: `b`,\n",
                                                                                                                                                                                                                                                  +///     " y debug: `2`\n",
                                                                                                                                                                                                                                                  +/// );
                                                                                                                                                                                                                                                  +/// assert_eq!(actual, expect);
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// // Panic with error message
                                                                                                                                                                                                                                                  +/// let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  +/// assert_infix!(a == b, "message");
                                                                                                                                                                                                                                                  +/// //-> panic!
                                                                                                                                                                                                                                                  +/// });
                                                                                                                                                                                                                                                  +/// assert!(result.is_err());
                                                                                                                                                                                                                                                  +/// let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                  +/// let expect = "message";
                                                                                                                                                                                                                                                  +/// assert_eq!(actual, expect);
                                                                                                                                                                                                                                                  +/// # }
                                                                                                                                                                                                                                                  +/// ```
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// # Infix operators
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// For values:
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * `==`  equal
                                                                                                                                                                                                                                                  +/// * `!=`  not equal
                                                                                                                                                                                                                                                  +/// * `<`	less than
                                                                                                                                                                                                                                                  +/// * `<=`	less than or equal to
                                                                                                                                                                                                                                                  +/// * `>`	greater than
                                                                                                                                                                                                                                                  +/// * `>=`	greater than or equal to
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// For booleans:
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * `^`	logical XOR
                                                                                                                                                                                                                                                  +/// * `!`	logical NOT
                                                                                                                                                                                                                                                  +/// * `&`	logical AND
                                                                                                                                                                                                                                                  +/// * `|`	logical OR
                                                                                                                                                                                                                                                  +/// * `&&`	logical lazy AND
                                                                                                                                                                                                                                                  +/// * `||`	logical lazy OR
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// # Module macros
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * [`assert_infix`](macro@crate::assert_infix)
                                                                                                                                                                                                                                                  +/// * [`assert_infix_as_result`](macro@crate::assert_infix_as_result)
                                                                                                                                                                                                                                                  +/// * [`debug_assert_infix`](macro@crate::debug_assert_infix)
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +#[macro_export]
                                                                                                                                                                                                                                                  +macro_rules! assert_infix {
                                                                                                                                                                                                                                                  +    ($x:tt $infix:tt $y:tt) => {
                                                                                                                                                                                                                                                  +        match assert_infix_as_result!($x $infix $y) {
                                                                                                                                                                                                                                                  +            Ok(()) => (),
                                                                                                                                                                                                                                                  +            Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  +        }
                                                                                                                                                                                                                                                  +    };
                                                                                                                                                                                                                                                  +    ($x:tt $infix:tt $y:tt, $($message:tt)+) => {
                                                                                                                                                                                                                                                  +        match assert_infix_as_result!($x $infix $y) {
                                                                                                                                                                                                                                                  +            Ok(()) => (),
                                                                                                                                                                                                                                                  +            Err(_err) => panic!("{}", $($message)+),
                                                                                                                                                                                                                                                  +        }
                                                                                                                                                                                                                                                  +    };
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +/// Assert a infix operator, such as assert_infix!(a == b).
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro provides the same statements as [`assert_infix`](macro.assert_infix.html),
                                                                                                                                                                                                                                                  +/// except this macro's statements are only enabled in non-optimized
                                                                                                                                                                                                                                                  +/// builds by default. An optimized build will not execute this macro's
                                                                                                                                                                                                                                                  +/// statements unless `-C debug-assertions` is passed to the compiler.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro is useful for checks that are too expensive to be present
                                                                                                                                                                                                                                                  +/// in a release build but may be helpful during development.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// The result of expanding this macro is always type checked.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// An unchecked assertion allows a program in an inconsistent state to
                                                                                                                                                                                                                                                  +/// keep running, which might have unexpected consequences but does not
                                                                                                                                                                                                                                                  +/// introduce unsafety as long as this only happens in safe code. The
                                                                                                                                                                                                                                                  +/// performance cost of assertions, however, is not measurable in general.
                                                                                                                                                                                                                                                  +/// Replacing `assert*!` with `debug_assert*!` is thus only encouraged
                                                                                                                                                                                                                                                  +/// after thorough profiling, and more importantly, only in safe code!
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro is intended to work in a similar way to
                                                                                                                                                                                                                                                  +/// [`std::debug_assert`](https://doc.rust-lang.org/std/macro.debug_assert.html).
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// # Module macros
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * [`assert_infix`](macro@crate::assert_infix)
                                                                                                                                                                                                                                                  +/// * [`assert_infix`](macro@crate::assert_infix)
                                                                                                                                                                                                                                                  +/// * [`debug_assert_infix`](macro@crate::debug_assert_infix)
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +#[macro_export]
                                                                                                                                                                                                                                                  +macro_rules! debug_assert_infix {
                                                                                                                                                                                                                                                  +    ($($arg:tt)*) => {
                                                                                                                                                                                                                                                  +        if $crate::cfg!(debug_assertions) {
                                                                                                                                                                                                                                                  +            $crate::assert_infix!($($arg)*);
                                                                                                                                                                                                                                                  +        }
                                                                                                                                                                                                                                                  +    };
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/src/lib/assert_io_read_to_string_contains.rs.html b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_contains.rs.html similarity index 90% rename from doc/src/lib/assert_io_read_to_string_contains.rs.html rename to doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_contains.rs.html index a4f048ab4..4ac247356 100644 --- a/doc/src/lib/assert_io_read_to_string_contains.rs.html +++ b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_contains.rs.html @@ -1,4 +1,4 @@ -assert_io_read_to_string_contains.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_io_read_to_string_contains.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_io_read_to_string_eq.rs.html b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_eq.rs.html
                                                                                                                                                                                                                                                  similarity index 90%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_io_read_to_string_eq.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_eq.rs.html
                                                                                                                                                                                                                                                  index f804e5ad6..7d604ac61 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_io_read_to_string_eq.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_eq.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_io_read_to_string_eq.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_io_read_to_string_eq.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_io_read_to_string_eq_expr.rs.html b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_eq_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 90%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_io_read_to_string_eq_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_eq_expr.rs.html
                                                                                                                                                                                                                                                  index f539f8347..4e9789d1f 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_io_read_to_string_eq_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_eq_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_io_read_to_string_eq_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_io_read_to_string_eq_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_io_read_to_string_ge.rs.html b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_ge.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_io_read_to_string_ge.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_ge.rs.html
                                                                                                                                                                                                                                                  index ba45544db..761168ae5 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_io_read_to_string_ge.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_ge.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_io_read_to_string_ge.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_io_read_to_string_ge.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_io_read_to_string_ge_expr.rs.html b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_ge_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 90%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_io_read_to_string_ge_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_ge_expr.rs.html
                                                                                                                                                                                                                                                  index 367b5f902..0b98b6b4c 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_io_read_to_string_ge_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_ge_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_io_read_to_string_ge_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_io_read_to_string_ge_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_io_read_to_string_gt.rs.html b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_gt.rs.html
                                                                                                                                                                                                                                                  similarity index 90%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_io_read_to_string_gt.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_gt.rs.html
                                                                                                                                                                                                                                                  index dd19bbedf..55d0e3bf2 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_io_read_to_string_gt.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_gt.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_io_read_to_string_gt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_io_read_to_string_gt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_io_read_to_string_gt_expr.rs.html b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_gt_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 90%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_io_read_to_string_gt_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_gt_expr.rs.html
                                                                                                                                                                                                                                                  index 516bc751b..3817ba61f 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_io_read_to_string_gt_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_gt_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_io_read_to_string_gt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_io_read_to_string_gt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_io_read_to_string_le.rs.html b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_le.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_io_read_to_string_le.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_le.rs.html
                                                                                                                                                                                                                                                  index 815c6e298..57a17b856 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_io_read_to_string_le.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_le.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_io_read_to_string_le.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_io_read_to_string_le.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_io_read_to_string_le_expr.rs.html b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_le_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 90%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_io_read_to_string_le_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_le_expr.rs.html
                                                                                                                                                                                                                                                  index 60a6c96be..015737f3c 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_io_read_to_string_le_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_le_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_io_read_to_string_le_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_io_read_to_string_le_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_io_read_to_string_lt.rs.html b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_lt.rs.html
                                                                                                                                                                                                                                                  similarity index 90%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_io_read_to_string_lt.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_lt.rs.html
                                                                                                                                                                                                                                                  index b7291c257..0d2960563 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_io_read_to_string_lt.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_lt.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_io_read_to_string_lt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_io_read_to_string_lt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_io_read_to_string_lt_expr.rs.html b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_lt_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 90%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_io_read_to_string_lt_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_lt_expr.rs.html
                                                                                                                                                                                                                                                  index 79cca6b66..ffde10605 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_io_read_to_string_lt_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_lt_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_io_read_to_string_lt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_io_read_to_string_lt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_io_read_to_string_matches.rs.html b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_matches.rs.html
                                                                                                                                                                                                                                                  similarity index 90%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_io_read_to_string_matches.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_matches.rs.html
                                                                                                                                                                                                                                                  index 4e79e7dac..4ff2e9145 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_io_read_to_string_matches.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_matches.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_io_read_to_string_matches.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_io_read_to_string_matches.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_io_read_to_string_ne.rs.html b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_ne.rs.html
                                                                                                                                                                                                                                                  similarity index 90%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_io_read_to_string_ne.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_ne.rs.html
                                                                                                                                                                                                                                                  index 1af9e47ec..e0bdc3571 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_io_read_to_string_ne.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_ne.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_io_read_to_string_ne.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_io_read_to_string_ne.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_io_read_to_string_ne_expr.rs.html b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_ne_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 90%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_io_read_to_string_ne_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_ne_expr.rs.html
                                                                                                                                                                                                                                                  index 5db9c483f..bca13def6 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_io_read_to_string_ne_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_io_read_to_string/assert_io_read_to_string_ne_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_io_read_to_string_ne_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_io_read_to_string_ne_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_io_read_to_string/mod.rs.html b/doc/src/lib/assert_io_read_to_string/mod.rs.html
                                                                                                                                                                                                                                                  new file mode 100644
                                                                                                                                                                                                                                                  index 000000000..72f359bd2
                                                                                                                                                                                                                                                  --- /dev/null
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_io_read_to_string/mod.rs.html
                                                                                                                                                                                                                                                  @@ -0,0 +1,147 @@
                                                                                                                                                                                                                                                  +mod.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +2
                                                                                                                                                                                                                                                  +3
                                                                                                                                                                                                                                                  +4
                                                                                                                                                                                                                                                  +5
                                                                                                                                                                                                                                                  +6
                                                                                                                                                                                                                                                  +7
                                                                                                                                                                                                                                                  +8
                                                                                                                                                                                                                                                  +9
                                                                                                                                                                                                                                                  +10
                                                                                                                                                                                                                                                  +11
                                                                                                                                                                                                                                                  +12
                                                                                                                                                                                                                                                  +13
                                                                                                                                                                                                                                                  +14
                                                                                                                                                                                                                                                  +15
                                                                                                                                                                                                                                                  +16
                                                                                                                                                                                                                                                  +17
                                                                                                                                                                                                                                                  +18
                                                                                                                                                                                                                                                  +19
                                                                                                                                                                                                                                                  +20
                                                                                                                                                                                                                                                  +21
                                                                                                                                                                                                                                                  +22
                                                                                                                                                                                                                                                  +23
                                                                                                                                                                                                                                                  +24
                                                                                                                                                                                                                                                  +25
                                                                                                                                                                                                                                                  +26
                                                                                                                                                                                                                                                  +27
                                                                                                                                                                                                                                                  +28
                                                                                                                                                                                                                                                  +29
                                                                                                                                                                                                                                                  +30
                                                                                                                                                                                                                                                  +31
                                                                                                                                                                                                                                                  +32
                                                                                                                                                                                                                                                  +33
                                                                                                                                                                                                                                                  +34
                                                                                                                                                                                                                                                  +35
                                                                                                                                                                                                                                                  +36
                                                                                                                                                                                                                                                  +37
                                                                                                                                                                                                                                                  +38
                                                                                                                                                                                                                                                  +39
                                                                                                                                                                                                                                                  +40
                                                                                                                                                                                                                                                  +41
                                                                                                                                                                                                                                                  +42
                                                                                                                                                                                                                                                  +43
                                                                                                                                                                                                                                                  +44
                                                                                                                                                                                                                                                  +45
                                                                                                                                                                                                                                                  +46
                                                                                                                                                                                                                                                  +47
                                                                                                                                                                                                                                                  +48
                                                                                                                                                                                                                                                  +49
                                                                                                                                                                                                                                                  +50
                                                                                                                                                                                                                                                  +51
                                                                                                                                                                                                                                                  +52
                                                                                                                                                                                                                                                  +53
                                                                                                                                                                                                                                                  +54
                                                                                                                                                                                                                                                  +55
                                                                                                                                                                                                                                                  +56
                                                                                                                                                                                                                                                  +57
                                                                                                                                                                                                                                                  +58
                                                                                                                                                                                                                                                  +59
                                                                                                                                                                                                                                                  +60
                                                                                                                                                                                                                                                  +61
                                                                                                                                                                                                                                                  +62
                                                                                                                                                                                                                                                  +63
                                                                                                                                                                                                                                                  +64
                                                                                                                                                                                                                                                  +65
                                                                                                                                                                                                                                                  +66
                                                                                                                                                                                                                                                  +67
                                                                                                                                                                                                                                                  +68
                                                                                                                                                                                                                                                  +69
                                                                                                                                                                                                                                                  +70
                                                                                                                                                                                                                                                  +71
                                                                                                                                                                                                                                                  +72
                                                                                                                                                                                                                                                  +73
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  //! Assert macros for comparing input/output reader streams.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! These macros help with input/output readers, such as file handles, byte arrays,
                                                                                                                                                                                                                                                  +//! input streams, the trait `std::io::Read`, and anything that implements a
                                                                                                                                                                                                                                                  +//! method `read_to_string() -> String`.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! Compare a reader with another reader:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_io_read_to_string_eq!(reader1, reader2)`](macro@crate::assert_io_read_to_string_eq) ≈ reader1.read_to_string() = reader2.read_to_string()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_io_read_to_string_ne!(reader1, reader2)`](macro@crate::assert_io_read_to_string_ne) ≈ reader1.read_to_string() ≠ reader2.read_to_string()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_io_read_to_string_ge!(reader1, reader2)`](macro@crate::assert_io_read_to_string_ge) ≈ reader1.read_to_string() ≥ reader2.read_to_string()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_io_read_to_string_gt!(reader1, reader2)`](macro@crate::assert_io_read_to_string_gt) ≈ reader1.read_to_string() > reader2.read_to_string()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_io_read_to_string_le!(reader1, reader2)`](macro@crate::assert_io_read_to_string_le) ≈ reader1.read_to_string() ≤ reader2.read_to_string()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_io_read_to_string_lt!(reader1, reader2)`](macro@crate::assert_io_read_to_string_lt) ≈ reader1.read_to_string() < reader2.read_to_string()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! Compare a reader with an expression:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_io_read_to_string_eq_expr!(reader, expr)`](macro@crate::assert_io_read_to_string_eq_expr) ≈ reader.read_to_string() = expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_io_read_to_string_ne_expr!(reader, expr)`](macro@crate::assert_io_read_to_string_ne_expr) ≈ reader.read_to_string() ≠ expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_io_read_to_string_ge_expr!(reader, expr)`](macro@crate::assert_io_read_to_string_ge_expr) ≈ reader.read_to_string() ≥ expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_io_read_to_string_gt_expr!(reader, expr)`](macro@crate::assert_io_read_to_string_gt_expr) ≈ reader.read_to_string() > expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_io_read_to_string_le_expr!(reader, expr)`](macro@crate::assert_io_read_to_string_le_expr) ≈ reader.read_to_string() ≤ expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_io_read_to_string_lt_expr!(reader, expr)`](macro@crate::assert_io_read_to_string_lt_expr) ≈ reader.read_to_string() < expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! Compare a reader with its contents:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_io_read_to_string_contains!(reader, containee)`](macro@crate::assert_io_read_to_string_contains) ≈ reader.read_to_string().contains(containee)
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_io_read_to_string_matches!(reader, matcher)`](macro@crate::assert_io_read_to_string_matches) ≈ matcher.is_match(reader.read_to_string())
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # Example
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! ```rust
                                                                                                                                                                                                                                                  +//! # #[macro_use] extern crate assertables;
                                                                                                                                                                                                                                                  +//! use std::io::Read;
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # fn main() {
                                                                                                                                                                                                                                                  +//! let mut a = "alfa".as_bytes();
                                                                                                                                                                                                                                                  +//! let mut b = "alfa".as_bytes();
                                                                                                                                                                                                                                                  +//! assert_io_read_to_string_eq!(a, b);
                                                                                                                                                                                                                                                  +//! # }
                                                                                                                                                                                                                                                  +//! ```
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +// Comparisons
                                                                                                                                                                                                                                                  +pub mod assert_io_read_to_string_eq;
                                                                                                                                                                                                                                                  +pub mod assert_io_read_to_string_ne;
                                                                                                                                                                                                                                                  +pub mod assert_io_read_to_string_lt;
                                                                                                                                                                                                                                                  +pub mod assert_io_read_to_string_le;
                                                                                                                                                                                                                                                  +pub mod assert_io_read_to_string_gt;
                                                                                                                                                                                                                                                  +pub mod assert_io_read_to_string_ge;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +// Comparisons with expressions
                                                                                                                                                                                                                                                  +pub mod assert_io_read_to_string_eq_expr;
                                                                                                                                                                                                                                                  +pub mod assert_io_read_to_string_ne_expr;
                                                                                                                                                                                                                                                  +pub mod assert_io_read_to_string_lt_expr;
                                                                                                                                                                                                                                                  +pub mod assert_io_read_to_string_le_expr;
                                                                                                                                                                                                                                                  +pub mod assert_io_read_to_string_gt_expr;
                                                                                                                                                                                                                                                  +pub mod assert_io_read_to_string_ge_expr;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +// Specializations
                                                                                                                                                                                                                                                  +pub mod assert_io_read_to_string_matches;
                                                                                                                                                                                                                                                  +pub mod assert_io_read_to_string_contains;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/src/lib/assert_ne.rs.html b/doc/src/lib/assert_ne.rs.html index 5d0e8eb8d..f4b02e073 100644 --- a/doc/src/lib/assert_ne.rs.html +++ b/doc/src/lib/assert_ne.rs.html @@ -122,7 +122,7 @@ //! * [`assert_ne_as_result`](macro@crate::assert_ne_as_result) //! //! # Rust standard macros -//! +//! //! * [`assert_ne`](https://doc.rust-lang.org/std/macro.assert_ne.html) //! * [`debug_assert_ne`](https://doc.rust-lang.org/std/macro.debug_assert_ne.html) @@ -144,7 +144,7 @@ /// * [`assert_ne_as_result`](macro@crate::assert_ne_as_result) /// /// # Rust standard macros -/// +/// /// * [`assert_ne`](https://doc.rust-lang.org/std/macro.assert_ne.html) /// * [`debug_assert_ne`](https://doc.rust-lang.org/std/macro.debug_assert_ne.html) /// diff --git a/doc/src/lib/assert_option/assert_option_none.rs.html b/doc/src/lib/assert_option/assert_option_none.rs.html new file mode 100644 index 000000000..81336e761 --- /dev/null +++ b/doc/src/lib/assert_option/assert_option_none.rs.html @@ -0,0 +1,451 @@ +assert_option_none.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +2
                                                                                                                                                                                                                                                  +3
                                                                                                                                                                                                                                                  +4
                                                                                                                                                                                                                                                  +5
                                                                                                                                                                                                                                                  +6
                                                                                                                                                                                                                                                  +7
                                                                                                                                                                                                                                                  +8
                                                                                                                                                                                                                                                  +9
                                                                                                                                                                                                                                                  +10
                                                                                                                                                                                                                                                  +11
                                                                                                                                                                                                                                                  +12
                                                                                                                                                                                                                                                  +13
                                                                                                                                                                                                                                                  +14
                                                                                                                                                                                                                                                  +15
                                                                                                                                                                                                                                                  +16
                                                                                                                                                                                                                                                  +17
                                                                                                                                                                                                                                                  +18
                                                                                                                                                                                                                                                  +19
                                                                                                                                                                                                                                                  +20
                                                                                                                                                                                                                                                  +21
                                                                                                                                                                                                                                                  +22
                                                                                                                                                                                                                                                  +23
                                                                                                                                                                                                                                                  +24
                                                                                                                                                                                                                                                  +25
                                                                                                                                                                                                                                                  +26
                                                                                                                                                                                                                                                  +27
                                                                                                                                                                                                                                                  +28
                                                                                                                                                                                                                                                  +29
                                                                                                                                                                                                                                                  +30
                                                                                                                                                                                                                                                  +31
                                                                                                                                                                                                                                                  +32
                                                                                                                                                                                                                                                  +33
                                                                                                                                                                                                                                                  +34
                                                                                                                                                                                                                                                  +35
                                                                                                                                                                                                                                                  +36
                                                                                                                                                                                                                                                  +37
                                                                                                                                                                                                                                                  +38
                                                                                                                                                                                                                                                  +39
                                                                                                                                                                                                                                                  +40
                                                                                                                                                                                                                                                  +41
                                                                                                                                                                                                                                                  +42
                                                                                                                                                                                                                                                  +43
                                                                                                                                                                                                                                                  +44
                                                                                                                                                                                                                                                  +45
                                                                                                                                                                                                                                                  +46
                                                                                                                                                                                                                                                  +47
                                                                                                                                                                                                                                                  +48
                                                                                                                                                                                                                                                  +49
                                                                                                                                                                                                                                                  +50
                                                                                                                                                                                                                                                  +51
                                                                                                                                                                                                                                                  +52
                                                                                                                                                                                                                                                  +53
                                                                                                                                                                                                                                                  +54
                                                                                                                                                                                                                                                  +55
                                                                                                                                                                                                                                                  +56
                                                                                                                                                                                                                                                  +57
                                                                                                                                                                                                                                                  +58
                                                                                                                                                                                                                                                  +59
                                                                                                                                                                                                                                                  +60
                                                                                                                                                                                                                                                  +61
                                                                                                                                                                                                                                                  +62
                                                                                                                                                                                                                                                  +63
                                                                                                                                                                                                                                                  +64
                                                                                                                                                                                                                                                  +65
                                                                                                                                                                                                                                                  +66
                                                                                                                                                                                                                                                  +67
                                                                                                                                                                                                                                                  +68
                                                                                                                                                                                                                                                  +69
                                                                                                                                                                                                                                                  +70
                                                                                                                                                                                                                                                  +71
                                                                                                                                                                                                                                                  +72
                                                                                                                                                                                                                                                  +73
                                                                                                                                                                                                                                                  +74
                                                                                                                                                                                                                                                  +75
                                                                                                                                                                                                                                                  +76
                                                                                                                                                                                                                                                  +77
                                                                                                                                                                                                                                                  +78
                                                                                                                                                                                                                                                  +79
                                                                                                                                                                                                                                                  +80
                                                                                                                                                                                                                                                  +81
                                                                                                                                                                                                                                                  +82
                                                                                                                                                                                                                                                  +83
                                                                                                                                                                                                                                                  +84
                                                                                                                                                                                                                                                  +85
                                                                                                                                                                                                                                                  +86
                                                                                                                                                                                                                                                  +87
                                                                                                                                                                                                                                                  +88
                                                                                                                                                                                                                                                  +89
                                                                                                                                                                                                                                                  +90
                                                                                                                                                                                                                                                  +91
                                                                                                                                                                                                                                                  +92
                                                                                                                                                                                                                                                  +93
                                                                                                                                                                                                                                                  +94
                                                                                                                                                                                                                                                  +95
                                                                                                                                                                                                                                                  +96
                                                                                                                                                                                                                                                  +97
                                                                                                                                                                                                                                                  +98
                                                                                                                                                                                                                                                  +99
                                                                                                                                                                                                                                                  +100
                                                                                                                                                                                                                                                  +101
                                                                                                                                                                                                                                                  +102
                                                                                                                                                                                                                                                  +103
                                                                                                                                                                                                                                                  +104
                                                                                                                                                                                                                                                  +105
                                                                                                                                                                                                                                                  +106
                                                                                                                                                                                                                                                  +107
                                                                                                                                                                                                                                                  +108
                                                                                                                                                                                                                                                  +109
                                                                                                                                                                                                                                                  +110
                                                                                                                                                                                                                                                  +111
                                                                                                                                                                                                                                                  +112
                                                                                                                                                                                                                                                  +113
                                                                                                                                                                                                                                                  +114
                                                                                                                                                                                                                                                  +115
                                                                                                                                                                                                                                                  +116
                                                                                                                                                                                                                                                  +117
                                                                                                                                                                                                                                                  +118
                                                                                                                                                                                                                                                  +119
                                                                                                                                                                                                                                                  +120
                                                                                                                                                                                                                                                  +121
                                                                                                                                                                                                                                                  +122
                                                                                                                                                                                                                                                  +123
                                                                                                                                                                                                                                                  +124
                                                                                                                                                                                                                                                  +125
                                                                                                                                                                                                                                                  +126
                                                                                                                                                                                                                                                  +127
                                                                                                                                                                                                                                                  +128
                                                                                                                                                                                                                                                  +129
                                                                                                                                                                                                                                                  +130
                                                                                                                                                                                                                                                  +131
                                                                                                                                                                                                                                                  +132
                                                                                                                                                                                                                                                  +133
                                                                                                                                                                                                                                                  +134
                                                                                                                                                                                                                                                  +135
                                                                                                                                                                                                                                                  +136
                                                                                                                                                                                                                                                  +137
                                                                                                                                                                                                                                                  +138
                                                                                                                                                                                                                                                  +139
                                                                                                                                                                                                                                                  +140
                                                                                                                                                                                                                                                  +141
                                                                                                                                                                                                                                                  +142
                                                                                                                                                                                                                                                  +143
                                                                                                                                                                                                                                                  +144
                                                                                                                                                                                                                                                  +145
                                                                                                                                                                                                                                                  +146
                                                                                                                                                                                                                                                  +147
                                                                                                                                                                                                                                                  +148
                                                                                                                                                                                                                                                  +149
                                                                                                                                                                                                                                                  +150
                                                                                                                                                                                                                                                  +151
                                                                                                                                                                                                                                                  +152
                                                                                                                                                                                                                                                  +153
                                                                                                                                                                                                                                                  +154
                                                                                                                                                                                                                                                  +155
                                                                                                                                                                                                                                                  +156
                                                                                                                                                                                                                                                  +157
                                                                                                                                                                                                                                                  +158
                                                                                                                                                                                                                                                  +159
                                                                                                                                                                                                                                                  +160
                                                                                                                                                                                                                                                  +161
                                                                                                                                                                                                                                                  +162
                                                                                                                                                                                                                                                  +163
                                                                                                                                                                                                                                                  +164
                                                                                                                                                                                                                                                  +165
                                                                                                                                                                                                                                                  +166
                                                                                                                                                                                                                                                  +167
                                                                                                                                                                                                                                                  +168
                                                                                                                                                                                                                                                  +169
                                                                                                                                                                                                                                                  +170
                                                                                                                                                                                                                                                  +171
                                                                                                                                                                                                                                                  +172
                                                                                                                                                                                                                                                  +173
                                                                                                                                                                                                                                                  +174
                                                                                                                                                                                                                                                  +175
                                                                                                                                                                                                                                                  +176
                                                                                                                                                                                                                                                  +177
                                                                                                                                                                                                                                                  +178
                                                                                                                                                                                                                                                  +179
                                                                                                                                                                                                                                                  +180
                                                                                                                                                                                                                                                  +181
                                                                                                                                                                                                                                                  +182
                                                                                                                                                                                                                                                  +183
                                                                                                                                                                                                                                                  +184
                                                                                                                                                                                                                                                  +185
                                                                                                                                                                                                                                                  +186
                                                                                                                                                                                                                                                  +187
                                                                                                                                                                                                                                                  +188
                                                                                                                                                                                                                                                  +189
                                                                                                                                                                                                                                                  +190
                                                                                                                                                                                                                                                  +191
                                                                                                                                                                                                                                                  +192
                                                                                                                                                                                                                                                  +193
                                                                                                                                                                                                                                                  +194
                                                                                                                                                                                                                                                  +195
                                                                                                                                                                                                                                                  +196
                                                                                                                                                                                                                                                  +197
                                                                                                                                                                                                                                                  +198
                                                                                                                                                                                                                                                  +199
                                                                                                                                                                                                                                                  +200
                                                                                                                                                                                                                                                  +201
                                                                                                                                                                                                                                                  +202
                                                                                                                                                                                                                                                  +203
                                                                                                                                                                                                                                                  +204
                                                                                                                                                                                                                                                  +205
                                                                                                                                                                                                                                                  +206
                                                                                                                                                                                                                                                  +207
                                                                                                                                                                                                                                                  +208
                                                                                                                                                                                                                                                  +209
                                                                                                                                                                                                                                                  +210
                                                                                                                                                                                                                                                  +211
                                                                                                                                                                                                                                                  +212
                                                                                                                                                                                                                                                  +213
                                                                                                                                                                                                                                                  +214
                                                                                                                                                                                                                                                  +215
                                                                                                                                                                                                                                                  +216
                                                                                                                                                                                                                                                  +217
                                                                                                                                                                                                                                                  +218
                                                                                                                                                                                                                                                  +219
                                                                                                                                                                                                                                                  +220
                                                                                                                                                                                                                                                  +221
                                                                                                                                                                                                                                                  +222
                                                                                                                                                                                                                                                  +223
                                                                                                                                                                                                                                                  +224
                                                                                                                                                                                                                                                  +225
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  //! Assert expression.is_none() is true.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * If true, return `()`.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * Otherwise, call [`panic!`] with a message and the values of the
                                                                                                                                                                                                                                                  +//!   expressions with their debug representations.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # Examples
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! ```rust
                                                                                                                                                                                                                                                  +//! # #[macro_use] extern crate assertables;
                                                                                                                                                                                                                                                  +//! # use std::panic;
                                                                                                                                                                                                                                                  +//! # fn main() {
                                                                                                                                                                                                                                                  +//! let a: Option<i8> = Option::None;
                                                                                                                                                                                                                                                  +//! assert_option_none!(a);
                                                                                                                                                                                                                                                  +//! //-> ()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! let a: Option<i8> = Option::Some(1);
                                                                                                                                                                                                                                                  +//! // Panic with error message
                                                                                                                                                                                                                                                  +//! let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  +//! assert_option_none!(a);
                                                                                                                                                                                                                                                  +//! //-> panic!
                                                                                                                                                                                                                                                  +//! });
                                                                                                                                                                                                                                                  +//! assert!(result.is_err());
                                                                                                                                                                                                                                                  +//! let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                  +//! let expect = concat!(
                                                                                                                                                                                                                                                  +//!     "assertion failed: `assert_option_none!(expr)`\n",
                                                                                                                                                                                                                                                  +//!     "     expr label: `a`,\n",
                                                                                                                                                                                                                                                  +//!     "     expr debug: `Some(1)`,\n",
                                                                                                                                                                                                                                                  +//!     " expr.is_none(): `false`",
                                                                                                                                                                                                                                                  +//! );
                                                                                                                                                                                                                                                  +//! assert_eq!(actual, expect);
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! // Panic with error message
                                                                                                                                                                                                                                                  +//! let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  +//! assert_option_none!(a, "message");
                                                                                                                                                                                                                                                  +//! //-> panic!
                                                                                                                                                                                                                                                  +//! });
                                                                                                                                                                                                                                                  +//! assert!(result.is_err());
                                                                                                                                                                                                                                                  +//! let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                  +//! let expect = "message";
                                                                                                                                                                                                                                                  +//! assert_eq!(actual, expect);
                                                                                                                                                                                                                                                  +//! # }
                                                                                                                                                                                                                                                  +//! ```
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # Module macros
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_option_none`](macro@crate::assert_option_none)
                                                                                                                                                                                                                                                  +//! * [`assert_option_none_as_result`](macro@crate::assert_option_none_as_result)
                                                                                                                                                                                                                                                  +//! * [`debug_assert_option_none`](macro@crate::debug_assert_option_none)
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +/// Assert an expression.is_none() is true.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * If true, return Result `Ok(())`.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * Otherwise, return Result `Err` with a diagnostic message.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro provides the same statements as [`assert_option_none`](macro.assert_option_none.html),
                                                                                                                                                                                                                                                  +/// except this macro returns a Result, rather than doing a panic.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro is useful for runtime checks, such as checking parameters,
                                                                                                                                                                                                                                                  +/// or sanitizing inputs, or handling different results in different ways.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// # Module macros
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * [`assert_option_none`](macro@crate::assert_option_none)
                                                                                                                                                                                                                                                  +/// * [`assert_option_none_as_result`](macro@crate::assert_option_none_as_result)
                                                                                                                                                                                                                                                  +/// * [`debug_assert_option_none`](macro@crate::debug_assert_option_none)
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +#[macro_export]
                                                                                                                                                                                                                                                  +macro_rules! assert_option_none_as_result {
                                                                                                                                                                                                                                                  +    ($a:expr $(,)?) => {{
                                                                                                                                                                                                                                                  +        match (&$a) {
                                                                                                                                                                                                                                                  +            a_val => {
                                                                                                                                                                                                                                                  +                let is_none = a_val.is_none();
                                                                                                                                                                                                                                                  +                if is_none {
                                                                                                                                                                                                                                                  +                    Ok(())
                                                                                                                                                                                                                                                  +                } else {
                                                                                                                                                                                                                                                  +                    Err(format!(
                                                                                                                                                                                                                                                  +                        concat!(
                                                                                                                                                                                                                                                  +                            "assertion failed: `assert_option_none!(expr)`\n",
                                                                                                                                                                                                                                                  +                            "     expr label: `{}`,\n",
                                                                                                                                                                                                                                                  +                            "     expr debug: `{:?}`,\n",
                                                                                                                                                                                                                                                  +                            " expr.is_none(): `{:?}`",
                                                                                                                                                                                                                                                  +                        ),
                                                                                                                                                                                                                                                  +                        stringify!($a),
                                                                                                                                                                                                                                                  +                        $a,
                                                                                                                                                                                                                                                  +                        is_none,
                                                                                                                                                                                                                                                  +                    ))
                                                                                                                                                                                                                                                  +                }
                                                                                                                                                                                                                                                  +            }
                                                                                                                                                                                                                                                  +        }
                                                                                                                                                                                                                                                  +    }};
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +#[cfg(test)]
                                                                                                                                                                                                                                                  +mod tests {
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +    #[test]
                                                                                                                                                                                                                                                  +    fn test_assert_option_none_as_result_x_success() {
                                                                                                                                                                                                                                                  +        let a: Option<i8> = Option::None;
                                                                                                                                                                                                                                                  +        let x = assert_option_none_as_result!(a);
                                                                                                                                                                                                                                                  +        assert_eq!(x, Ok(()));
                                                                                                                                                                                                                                                  +    }
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +    #[test]
                                                                                                                                                                                                                                                  +    fn test_assert_option_none_as_result_x_failure() {
                                                                                                                                                                                                                                                  +        let a: Option<i8> = Option::Some(1);
                                                                                                                                                                                                                                                  +        let x = assert_option_none_as_result!(a);
                                                                                                                                                                                                                                                  +        assert!(x.is_err());
                                                                                                                                                                                                                                                  +        assert_eq!(
                                                                                                                                                                                                                                                  +            x.unwrap_err(),
                                                                                                                                                                                                                                                  +            concat!(
                                                                                                                                                                                                                                                  +                "assertion failed: `assert_option_none!(expr)`\n",
                                                                                                                                                                                                                                                  +                "     expr label: `a`,\n",
                                                                                                                                                                                                                                                  +                "     expr debug: `Some(1)`,\n",
                                                                                                                                                                                                                                                  +                " expr.is_none(): `false`"
                                                                                                                                                                                                                                                  +            )
                                                                                                                                                                                                                                                  +        );
                                                                                                                                                                                                                                                  +    }
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +/// Assert expression.is_none() is true.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * If true, return `()`.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * Otherwise, call [`panic!`] with a message and the values of the
                                                                                                                                                                                                                                                  +///   expressions with their debug representations.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// # Examples
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// ```rust
                                                                                                                                                                                                                                                  +/// # #[macro_use] extern crate assertables;
                                                                                                                                                                                                                                                  +/// # use std::panic;
                                                                                                                                                                                                                                                  +/// # fn main() {
                                                                                                                                                                                                                                                  +/// let a: Option<i8> = Option::None;
                                                                                                                                                                                                                                                  +/// assert_option_none!(a);
                                                                                                                                                                                                                                                  +/// //-> ()
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// let a: Option<i8> = Option::Some(1);
                                                                                                                                                                                                                                                  +/// // Panic with error message
                                                                                                                                                                                                                                                  +/// let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  +/// assert_option_none!(a);
                                                                                                                                                                                                                                                  +/// //-> panic!
                                                                                                                                                                                                                                                  +/// });
                                                                                                                                                                                                                                                  +/// assert!(result.is_err());
                                                                                                                                                                                                                                                  +/// let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                  +/// let expect = concat!(
                                                                                                                                                                                                                                                  +///     "assertion failed: `assert_option_none!(expr)`\n",
                                                                                                                                                                                                                                                  +///     "     expr label: `a`,\n",
                                                                                                                                                                                                                                                  +///     "     expr debug: `Some(1)`,\n",
                                                                                                                                                                                                                                                  +///     " expr.is_none(): `false`",
                                                                                                                                                                                                                                                  +/// );
                                                                                                                                                                                                                                                  +/// assert_eq!(actual, expect);
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// // Panic with error message
                                                                                                                                                                                                                                                  +/// let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  +/// assert_option_none!(a, "message");
                                                                                                                                                                                                                                                  +/// //-> panic!
                                                                                                                                                                                                                                                  +/// });
                                                                                                                                                                                                                                                  +/// assert!(result.is_err());
                                                                                                                                                                                                                                                  +/// let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                  +/// let expect = "message";
                                                                                                                                                                                                                                                  +/// assert_eq!(actual, expect);
                                                                                                                                                                                                                                                  +/// # }
                                                                                                                                                                                                                                                  +/// ```
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// # Module macros
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * [`assert_option_none`](macro@crate::assert_option_none)
                                                                                                                                                                                                                                                  +/// * [`assert_option_none_as_result`](macro@crate::assert_option_none_as_result)
                                                                                                                                                                                                                                                  +/// * [`debug_assert_option_none`](macro@crate::debug_assert_option_none)
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +#[macro_export]
                                                                                                                                                                                                                                                  +macro_rules! assert_option_none {
                                                                                                                                                                                                                                                  +    ($a:expr $(,)?) => ({
                                                                                                                                                                                                                                                  +        match assert_option_none_as_result!($a) {
                                                                                                                                                                                                                                                  +            Ok(()) => (),
                                                                                                                                                                                                                                                  +            Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  +        }
                                                                                                                                                                                                                                                  +    });
                                                                                                                                                                                                                                                  +    ($a:expr, $($message:tt)+) => ({
                                                                                                                                                                                                                                                  +        match assert_option_none_as_result!($a) {
                                                                                                                                                                                                                                                  +            Ok(()) => (),
                                                                                                                                                                                                                                                  +            Err(_err) => panic!("{}", $($message)+),
                                                                                                                                                                                                                                                  +        }
                                                                                                                                                                                                                                                  +    });
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +/// Assert expression.is_none() is true.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro provides the same statements as [`assert_option_none`](macro.assert_option_none.html),
                                                                                                                                                                                                                                                  +/// except this macro's statements are only enabled in non-optimized
                                                                                                                                                                                                                                                  +/// builds by default. An optimized build will not execute this macro's
                                                                                                                                                                                                                                                  +/// statements unless `-C debug-assertions` is passed to the compiler.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro is useful for checks that are too expensive to be present
                                                                                                                                                                                                                                                  +/// in a release build but may be helpful during development.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// The result of expanding this macro is always type checked.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// An unchecked assertion allows a program in an inconsistent state to
                                                                                                                                                                                                                                                  +/// keep running, which might have unexpected consequences but does not
                                                                                                                                                                                                                                                  +/// introduce unsafety as long as this only happens in safe code. The
                                                                                                                                                                                                                                                  +/// performance cost of assertions, however, is not measurable in general.
                                                                                                                                                                                                                                                  +/// Replacing `assert*!` with `debug_assert*!` is thus only encouraged
                                                                                                                                                                                                                                                  +/// after thorough profiling, and more importantly, only in safe code!
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro is intended to work in a similar way to
                                                                                                                                                                                                                                                  +/// [`std::debug_assert`](https://doc.rust-lang.org/std/macro.debug_assert.html).
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// # Module macros
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * [`assert_option_none`](macro@crate::assert_option_none)
                                                                                                                                                                                                                                                  +/// * [`assert_option_none`](macro@crate::assert_option_none)
                                                                                                                                                                                                                                                  +/// * [`debug_assert_option_none`](macro@crate::debug_assert_option_none)
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +#[macro_export]
                                                                                                                                                                                                                                                  +macro_rules! debug_assert_option_none {
                                                                                                                                                                                                                                                  +    ($($arg:tt)*) => {
                                                                                                                                                                                                                                                  +        if $crate::cfg!(debug_assertions) {
                                                                                                                                                                                                                                                  +            $crate::assert_option_none!($($arg)*);
                                                                                                                                                                                                                                                  +        }
                                                                                                                                                                                                                                                  +    };
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/src/lib/assert_option/assert_option_some.rs.html b/doc/src/lib/assert_option/assert_option_some.rs.html new file mode 100644 index 000000000..94860a547 --- /dev/null +++ b/doc/src/lib/assert_option/assert_option_some.rs.html @@ -0,0 +1,451 @@ +assert_option_some.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +2
                                                                                                                                                                                                                                                  +3
                                                                                                                                                                                                                                                  +4
                                                                                                                                                                                                                                                  +5
                                                                                                                                                                                                                                                  +6
                                                                                                                                                                                                                                                  +7
                                                                                                                                                                                                                                                  +8
                                                                                                                                                                                                                                                  +9
                                                                                                                                                                                                                                                  +10
                                                                                                                                                                                                                                                  +11
                                                                                                                                                                                                                                                  +12
                                                                                                                                                                                                                                                  +13
                                                                                                                                                                                                                                                  +14
                                                                                                                                                                                                                                                  +15
                                                                                                                                                                                                                                                  +16
                                                                                                                                                                                                                                                  +17
                                                                                                                                                                                                                                                  +18
                                                                                                                                                                                                                                                  +19
                                                                                                                                                                                                                                                  +20
                                                                                                                                                                                                                                                  +21
                                                                                                                                                                                                                                                  +22
                                                                                                                                                                                                                                                  +23
                                                                                                                                                                                                                                                  +24
                                                                                                                                                                                                                                                  +25
                                                                                                                                                                                                                                                  +26
                                                                                                                                                                                                                                                  +27
                                                                                                                                                                                                                                                  +28
                                                                                                                                                                                                                                                  +29
                                                                                                                                                                                                                                                  +30
                                                                                                                                                                                                                                                  +31
                                                                                                                                                                                                                                                  +32
                                                                                                                                                                                                                                                  +33
                                                                                                                                                                                                                                                  +34
                                                                                                                                                                                                                                                  +35
                                                                                                                                                                                                                                                  +36
                                                                                                                                                                                                                                                  +37
                                                                                                                                                                                                                                                  +38
                                                                                                                                                                                                                                                  +39
                                                                                                                                                                                                                                                  +40
                                                                                                                                                                                                                                                  +41
                                                                                                                                                                                                                                                  +42
                                                                                                                                                                                                                                                  +43
                                                                                                                                                                                                                                                  +44
                                                                                                                                                                                                                                                  +45
                                                                                                                                                                                                                                                  +46
                                                                                                                                                                                                                                                  +47
                                                                                                                                                                                                                                                  +48
                                                                                                                                                                                                                                                  +49
                                                                                                                                                                                                                                                  +50
                                                                                                                                                                                                                                                  +51
                                                                                                                                                                                                                                                  +52
                                                                                                                                                                                                                                                  +53
                                                                                                                                                                                                                                                  +54
                                                                                                                                                                                                                                                  +55
                                                                                                                                                                                                                                                  +56
                                                                                                                                                                                                                                                  +57
                                                                                                                                                                                                                                                  +58
                                                                                                                                                                                                                                                  +59
                                                                                                                                                                                                                                                  +60
                                                                                                                                                                                                                                                  +61
                                                                                                                                                                                                                                                  +62
                                                                                                                                                                                                                                                  +63
                                                                                                                                                                                                                                                  +64
                                                                                                                                                                                                                                                  +65
                                                                                                                                                                                                                                                  +66
                                                                                                                                                                                                                                                  +67
                                                                                                                                                                                                                                                  +68
                                                                                                                                                                                                                                                  +69
                                                                                                                                                                                                                                                  +70
                                                                                                                                                                                                                                                  +71
                                                                                                                                                                                                                                                  +72
                                                                                                                                                                                                                                                  +73
                                                                                                                                                                                                                                                  +74
                                                                                                                                                                                                                                                  +75
                                                                                                                                                                                                                                                  +76
                                                                                                                                                                                                                                                  +77
                                                                                                                                                                                                                                                  +78
                                                                                                                                                                                                                                                  +79
                                                                                                                                                                                                                                                  +80
                                                                                                                                                                                                                                                  +81
                                                                                                                                                                                                                                                  +82
                                                                                                                                                                                                                                                  +83
                                                                                                                                                                                                                                                  +84
                                                                                                                                                                                                                                                  +85
                                                                                                                                                                                                                                                  +86
                                                                                                                                                                                                                                                  +87
                                                                                                                                                                                                                                                  +88
                                                                                                                                                                                                                                                  +89
                                                                                                                                                                                                                                                  +90
                                                                                                                                                                                                                                                  +91
                                                                                                                                                                                                                                                  +92
                                                                                                                                                                                                                                                  +93
                                                                                                                                                                                                                                                  +94
                                                                                                                                                                                                                                                  +95
                                                                                                                                                                                                                                                  +96
                                                                                                                                                                                                                                                  +97
                                                                                                                                                                                                                                                  +98
                                                                                                                                                                                                                                                  +99
                                                                                                                                                                                                                                                  +100
                                                                                                                                                                                                                                                  +101
                                                                                                                                                                                                                                                  +102
                                                                                                                                                                                                                                                  +103
                                                                                                                                                                                                                                                  +104
                                                                                                                                                                                                                                                  +105
                                                                                                                                                                                                                                                  +106
                                                                                                                                                                                                                                                  +107
                                                                                                                                                                                                                                                  +108
                                                                                                                                                                                                                                                  +109
                                                                                                                                                                                                                                                  +110
                                                                                                                                                                                                                                                  +111
                                                                                                                                                                                                                                                  +112
                                                                                                                                                                                                                                                  +113
                                                                                                                                                                                                                                                  +114
                                                                                                                                                                                                                                                  +115
                                                                                                                                                                                                                                                  +116
                                                                                                                                                                                                                                                  +117
                                                                                                                                                                                                                                                  +118
                                                                                                                                                                                                                                                  +119
                                                                                                                                                                                                                                                  +120
                                                                                                                                                                                                                                                  +121
                                                                                                                                                                                                                                                  +122
                                                                                                                                                                                                                                                  +123
                                                                                                                                                                                                                                                  +124
                                                                                                                                                                                                                                                  +125
                                                                                                                                                                                                                                                  +126
                                                                                                                                                                                                                                                  +127
                                                                                                                                                                                                                                                  +128
                                                                                                                                                                                                                                                  +129
                                                                                                                                                                                                                                                  +130
                                                                                                                                                                                                                                                  +131
                                                                                                                                                                                                                                                  +132
                                                                                                                                                                                                                                                  +133
                                                                                                                                                                                                                                                  +134
                                                                                                                                                                                                                                                  +135
                                                                                                                                                                                                                                                  +136
                                                                                                                                                                                                                                                  +137
                                                                                                                                                                                                                                                  +138
                                                                                                                                                                                                                                                  +139
                                                                                                                                                                                                                                                  +140
                                                                                                                                                                                                                                                  +141
                                                                                                                                                                                                                                                  +142
                                                                                                                                                                                                                                                  +143
                                                                                                                                                                                                                                                  +144
                                                                                                                                                                                                                                                  +145
                                                                                                                                                                                                                                                  +146
                                                                                                                                                                                                                                                  +147
                                                                                                                                                                                                                                                  +148
                                                                                                                                                                                                                                                  +149
                                                                                                                                                                                                                                                  +150
                                                                                                                                                                                                                                                  +151
                                                                                                                                                                                                                                                  +152
                                                                                                                                                                                                                                                  +153
                                                                                                                                                                                                                                                  +154
                                                                                                                                                                                                                                                  +155
                                                                                                                                                                                                                                                  +156
                                                                                                                                                                                                                                                  +157
                                                                                                                                                                                                                                                  +158
                                                                                                                                                                                                                                                  +159
                                                                                                                                                                                                                                                  +160
                                                                                                                                                                                                                                                  +161
                                                                                                                                                                                                                                                  +162
                                                                                                                                                                                                                                                  +163
                                                                                                                                                                                                                                                  +164
                                                                                                                                                                                                                                                  +165
                                                                                                                                                                                                                                                  +166
                                                                                                                                                                                                                                                  +167
                                                                                                                                                                                                                                                  +168
                                                                                                                                                                                                                                                  +169
                                                                                                                                                                                                                                                  +170
                                                                                                                                                                                                                                                  +171
                                                                                                                                                                                                                                                  +172
                                                                                                                                                                                                                                                  +173
                                                                                                                                                                                                                                                  +174
                                                                                                                                                                                                                                                  +175
                                                                                                                                                                                                                                                  +176
                                                                                                                                                                                                                                                  +177
                                                                                                                                                                                                                                                  +178
                                                                                                                                                                                                                                                  +179
                                                                                                                                                                                                                                                  +180
                                                                                                                                                                                                                                                  +181
                                                                                                                                                                                                                                                  +182
                                                                                                                                                                                                                                                  +183
                                                                                                                                                                                                                                                  +184
                                                                                                                                                                                                                                                  +185
                                                                                                                                                                                                                                                  +186
                                                                                                                                                                                                                                                  +187
                                                                                                                                                                                                                                                  +188
                                                                                                                                                                                                                                                  +189
                                                                                                                                                                                                                                                  +190
                                                                                                                                                                                                                                                  +191
                                                                                                                                                                                                                                                  +192
                                                                                                                                                                                                                                                  +193
                                                                                                                                                                                                                                                  +194
                                                                                                                                                                                                                                                  +195
                                                                                                                                                                                                                                                  +196
                                                                                                                                                                                                                                                  +197
                                                                                                                                                                                                                                                  +198
                                                                                                                                                                                                                                                  +199
                                                                                                                                                                                                                                                  +200
                                                                                                                                                                                                                                                  +201
                                                                                                                                                                                                                                                  +202
                                                                                                                                                                                                                                                  +203
                                                                                                                                                                                                                                                  +204
                                                                                                                                                                                                                                                  +205
                                                                                                                                                                                                                                                  +206
                                                                                                                                                                                                                                                  +207
                                                                                                                                                                                                                                                  +208
                                                                                                                                                                                                                                                  +209
                                                                                                                                                                                                                                                  +210
                                                                                                                                                                                                                                                  +211
                                                                                                                                                                                                                                                  +212
                                                                                                                                                                                                                                                  +213
                                                                                                                                                                                                                                                  +214
                                                                                                                                                                                                                                                  +215
                                                                                                                                                                                                                                                  +216
                                                                                                                                                                                                                                                  +217
                                                                                                                                                                                                                                                  +218
                                                                                                                                                                                                                                                  +219
                                                                                                                                                                                                                                                  +220
                                                                                                                                                                                                                                                  +221
                                                                                                                                                                                                                                                  +222
                                                                                                                                                                                                                                                  +223
                                                                                                                                                                                                                                                  +224
                                                                                                                                                                                                                                                  +225
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  //! Assert expression.is_some() is true.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * If true, return `()`.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * Otherwise, call [`panic!`] with a message and the values of the
                                                                                                                                                                                                                                                  +//!   expressions with their debug representations.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # Examples
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! ```rust
                                                                                                                                                                                                                                                  +//! # #[macro_use] extern crate assertables;
                                                                                                                                                                                                                                                  +//! # use std::panic;
                                                                                                                                                                                                                                                  +//! # fn main() {
                                                                                                                                                                                                                                                  +//! let a: Option<i8> = Option::Some(1);
                                                                                                                                                                                                                                                  +//! assert_option_some!(a);
                                                                                                                                                                                                                                                  +//! //-> ()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! let a: Option<i8> = Option::None;
                                                                                                                                                                                                                                                  +//! // Panic with error message
                                                                                                                                                                                                                                                  +//! let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  +//! assert_option_some!(a);
                                                                                                                                                                                                                                                  +//! //-> panic!
                                                                                                                                                                                                                                                  +//! });
                                                                                                                                                                                                                                                  +//! assert!(result.is_err());
                                                                                                                                                                                                                                                  +//! let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                  +//! let expect = concat!(
                                                                                                                                                                                                                                                  +//!     "assertion failed: `assert_option_some!(expr)`\n",
                                                                                                                                                                                                                                                  +//!     "     expr label: `a`,\n",
                                                                                                                                                                                                                                                  +//!     "     expr debug: `None`,\n",
                                                                                                                                                                                                                                                  +//!     " expr.is_some(): `false`",
                                                                                                                                                                                                                                                  +//! );
                                                                                                                                                                                                                                                  +//! assert_eq!(actual, expect);
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! // Panic with error message
                                                                                                                                                                                                                                                  +//! let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  +//! assert_option_some!(a, "message");
                                                                                                                                                                                                                                                  +//! //-> panic!
                                                                                                                                                                                                                                                  +//! });
                                                                                                                                                                                                                                                  +//! assert!(result.is_err());
                                                                                                                                                                                                                                                  +//! let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                  +//! let expect = "message";
                                                                                                                                                                                                                                                  +//! assert_eq!(actual, expect);
                                                                                                                                                                                                                                                  +//! # }
                                                                                                                                                                                                                                                  +//! ```
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # Module macros
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_option_some`](macro@crate::assert_option_some)
                                                                                                                                                                                                                                                  +//! * [`assert_option_some_as_result`](macro@crate::assert_option_some_as_result)
                                                                                                                                                                                                                                                  +//! * [`debug_assert_option_some`](macro@crate::debug_assert_option_some)
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +/// Assert an expression.is_some() is true.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * If true, return Result `Ok(())`.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * Otherwise, return Result `Err` with a diagnostic message.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro provides the same statements as [`assert_option_some`](macro.assert_option_some.html),
                                                                                                                                                                                                                                                  +/// except this macro returns a Result, rather than doing a panic.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro is useful for runtime checks, such as checking parameters,
                                                                                                                                                                                                                                                  +/// or sanitizing inputs, or handling different results in different ways.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// # Module macros
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * [`assert_option_some`](macro@crate::assert_option_some)
                                                                                                                                                                                                                                                  +/// * [`assert_option_some_as_result`](macro@crate::assert_option_some_as_result)
                                                                                                                                                                                                                                                  +/// * [`debug_assert_option_some`](macro@crate::debug_assert_option_some)
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +#[macro_export]
                                                                                                                                                                                                                                                  +macro_rules! assert_option_some_as_result {
                                                                                                                                                                                                                                                  +    ($a:expr $(,)?) => {{
                                                                                                                                                                                                                                                  +        match (&$a) {
                                                                                                                                                                                                                                                  +            a_val => {
                                                                                                                                                                                                                                                  +                let is_some = a_val.is_some();
                                                                                                                                                                                                                                                  +                if is_some {
                                                                                                                                                                                                                                                  +                    Ok(())
                                                                                                                                                                                                                                                  +                } else {
                                                                                                                                                                                                                                                  +                    Err(format!(
                                                                                                                                                                                                                                                  +                        concat!(
                                                                                                                                                                                                                                                  +                            "assertion failed: `assert_option_some!(expr)`\n",
                                                                                                                                                                                                                                                  +                            "     expr label: `{}`,\n",
                                                                                                                                                                                                                                                  +                            "     expr debug: `{:?}`,\n",
                                                                                                                                                                                                                                                  +                            " expr.is_some(): `{:?}`",
                                                                                                                                                                                                                                                  +                        ),
                                                                                                                                                                                                                                                  +                        stringify!($a),
                                                                                                                                                                                                                                                  +                        $a,
                                                                                                                                                                                                                                                  +                        is_some,
                                                                                                                                                                                                                                                  +                    ))
                                                                                                                                                                                                                                                  +                }
                                                                                                                                                                                                                                                  +            }
                                                                                                                                                                                                                                                  +        }
                                                                                                                                                                                                                                                  +    }};
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +#[cfg(test)]
                                                                                                                                                                                                                                                  +mod tests {
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +    #[test]
                                                                                                                                                                                                                                                  +    fn test_assert_option_some_as_result_x_success() {
                                                                                                                                                                                                                                                  +        let a: Option<i8> = Option::Some(1);
                                                                                                                                                                                                                                                  +        let x = assert_option_some_as_result!(a);
                                                                                                                                                                                                                                                  +        assert_eq!(x, Ok(()));
                                                                                                                                                                                                                                                  +    }
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +    #[test]
                                                                                                                                                                                                                                                  +    fn test_assert_option_some_as_result_x_failure() {
                                                                                                                                                                                                                                                  +        let a: Option<i8> = Option::None;
                                                                                                                                                                                                                                                  +        let x = assert_option_some_as_result!(a);
                                                                                                                                                                                                                                                  +        assert!(x.is_err());
                                                                                                                                                                                                                                                  +        assert_eq!(
                                                                                                                                                                                                                                                  +            x.unwrap_err(),
                                                                                                                                                                                                                                                  +            concat!(
                                                                                                                                                                                                                                                  +                "assertion failed: `assert_option_some!(expr)`\n",
                                                                                                                                                                                                                                                  +                "     expr label: `a`,\n",
                                                                                                                                                                                                                                                  +                "     expr debug: `None`,\n",
                                                                                                                                                                                                                                                  +                " expr.is_some(): `false`"
                                                                                                                                                                                                                                                  +            )
                                                                                                                                                                                                                                                  +        );
                                                                                                                                                                                                                                                  +    }
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +/// Assert expression.is_some() is true.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * If true, return `()`.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * Otherwise, call [`panic!`] with a message and the values of the
                                                                                                                                                                                                                                                  +///   expressions with their debug representations.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// # Examples
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// ```rust
                                                                                                                                                                                                                                                  +/// # #[macro_use] extern crate assertables;
                                                                                                                                                                                                                                                  +/// # use std::panic;
                                                                                                                                                                                                                                                  +/// # fn main() {
                                                                                                                                                                                                                                                  +/// let a: Option<i8> = Option::Some(1);
                                                                                                                                                                                                                                                  +/// assert_option_some!(a);
                                                                                                                                                                                                                                                  +/// //-> ()
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// let a: Option<i8> = Option::None;
                                                                                                                                                                                                                                                  +/// // Panic with error message
                                                                                                                                                                                                                                                  +/// let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  +/// assert_option_some!(a);
                                                                                                                                                                                                                                                  +/// //-> panic!
                                                                                                                                                                                                                                                  +/// });
                                                                                                                                                                                                                                                  +/// assert!(result.is_err());
                                                                                                                                                                                                                                                  +/// let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                  +/// let expect = concat!(
                                                                                                                                                                                                                                                  +///     "assertion failed: `assert_option_some!(expr)`\n",
                                                                                                                                                                                                                                                  +///     "     expr label: `a`,\n",
                                                                                                                                                                                                                                                  +///     "     expr debug: `None`,\n",
                                                                                                                                                                                                                                                  +///     " expr.is_some(): `false`",
                                                                                                                                                                                                                                                  +/// );
                                                                                                                                                                                                                                                  +/// assert_eq!(actual, expect);
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// // Panic with error message
                                                                                                                                                                                                                                                  +/// let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  +/// assert_option_some!(a, "message");
                                                                                                                                                                                                                                                  +/// //-> panic!
                                                                                                                                                                                                                                                  +/// });
                                                                                                                                                                                                                                                  +/// assert!(result.is_err());
                                                                                                                                                                                                                                                  +/// let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                  +/// let expect = "message";
                                                                                                                                                                                                                                                  +/// assert_eq!(actual, expect);
                                                                                                                                                                                                                                                  +/// # }
                                                                                                                                                                                                                                                  +/// ```
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// # Module macros
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * [`assert_option_some`](macro@crate::assert_option_some)
                                                                                                                                                                                                                                                  +/// * [`assert_option_some_as_result`](macro@crate::assert_option_some_as_result)
                                                                                                                                                                                                                                                  +/// * [`debug_assert_option_some`](macro@crate::debug_assert_option_some)
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +#[macro_export]
                                                                                                                                                                                                                                                  +macro_rules! assert_option_some {
                                                                                                                                                                                                                                                  +    ($a:expr $(,)?) => ({
                                                                                                                                                                                                                                                  +        match assert_option_some_as_result!($a) {
                                                                                                                                                                                                                                                  +            Ok(()) => (),
                                                                                                                                                                                                                                                  +            Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  +        }
                                                                                                                                                                                                                                                  +    });
                                                                                                                                                                                                                                                  +    ($a:expr, $($message:tt)+) => ({
                                                                                                                                                                                                                                                  +        match assert_option_some_as_result!($a) {
                                                                                                                                                                                                                                                  +            Ok(()) => (),
                                                                                                                                                                                                                                                  +            Err(_err) => panic!("{}", $($message)+),
                                                                                                                                                                                                                                                  +        }
                                                                                                                                                                                                                                                  +    });
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +/// Assert expression.is_some() is true.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro provides the same statements as [`assert_option_some`](macro.assert_option_some.html),
                                                                                                                                                                                                                                                  +/// except this macro's statements are only enabled in non-optimized
                                                                                                                                                                                                                                                  +/// builds by default. An optimized build will not execute this macro's
                                                                                                                                                                                                                                                  +/// statements unless `-C debug-assertions` is passed to the compiler.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro is useful for checks that are too expensive to be present
                                                                                                                                                                                                                                                  +/// in a release build but may be helpful during development.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// The result of expanding this macro is always type checked.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// An unchecked assertion allows a program in an inconsistent state to
                                                                                                                                                                                                                                                  +/// keep running, which might have unexpected consequences but does not
                                                                                                                                                                                                                                                  +/// introduce unsafety as long as this only happens in safe code. The
                                                                                                                                                                                                                                                  +/// performance cost of assertions, however, is not measurable in general.
                                                                                                                                                                                                                                                  +/// Replacing `assert*!` with `debug_assert*!` is thus only encouraged
                                                                                                                                                                                                                                                  +/// after thorough profiling, and more importantly, only in safe code!
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro is intended to work in a similar way to
                                                                                                                                                                                                                                                  +/// [`std::debug_assert`](https://doc.rust-lang.org/std/macro.debug_assert.html).
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// # Module macros
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * [`assert_option_some`](macro@crate::assert_option_some)
                                                                                                                                                                                                                                                  +/// * [`assert_option_some`](macro@crate::assert_option_some)
                                                                                                                                                                                                                                                  +/// * [`debug_assert_option_some`](macro@crate::debug_assert_option_some)
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +#[macro_export]
                                                                                                                                                                                                                                                  +macro_rules! debug_assert_option_some {
                                                                                                                                                                                                                                                  +    ($($arg:tt)*) => {
                                                                                                                                                                                                                                                  +        if $crate::cfg!(debug_assertions) {
                                                                                                                                                                                                                                                  +            $crate::assert_option_some!($($arg)*);
                                                                                                                                                                                                                                                  +        }
                                                                                                                                                                                                                                                  +    };
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/src/lib/assert_option/mod.rs.html b/doc/src/lib/assert_option/mod.rs.html new file mode 100644 index 000000000..9dc646d7e --- /dev/null +++ b/doc/src/lib/assert_option/mod.rs.html @@ -0,0 +1,61 @@ +mod.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +2
                                                                                                                                                                                                                                                  +3
                                                                                                                                                                                                                                                  +4
                                                                                                                                                                                                                                                  +5
                                                                                                                                                                                                                                                  +6
                                                                                                                                                                                                                                                  +7
                                                                                                                                                                                                                                                  +8
                                                                                                                                                                                                                                                  +9
                                                                                                                                                                                                                                                  +10
                                                                                                                                                                                                                                                  +11
                                                                                                                                                                                                                                                  +12
                                                                                                                                                                                                                                                  +13
                                                                                                                                                                                                                                                  +14
                                                                                                                                                                                                                                                  +15
                                                                                                                                                                                                                                                  +16
                                                                                                                                                                                                                                                  +17
                                                                                                                                                                                                                                                  +18
                                                                                                                                                                                                                                                  +19
                                                                                                                                                                                                                                                  +20
                                                                                                                                                                                                                                                  +21
                                                                                                                                                                                                                                                  +22
                                                                                                                                                                                                                                                  +23
                                                                                                                                                                                                                                                  +24
                                                                                                                                                                                                                                                  +25
                                                                                                                                                                                                                                                  +26
                                                                                                                                                                                                                                                  +27
                                                                                                                                                                                                                                                  +28
                                                                                                                                                                                                                                                  +29
                                                                                                                                                                                                                                                  +30
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  //! Assert macros for Option (Some or None)
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! These macros help compare an `Option` that is either `Some`, `None`.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! The macros use these capabilities:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * implements `.is_some() -> boolean`
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * implements `.unwrap_some() -> comparable`
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * implements `.is_none() -> boolean`
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # Macros
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_option_some!(a)`](macro@crate::assert_option_some) ≈ a.is_some()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_option_none!(a)`](macro@crate::assert_option_none) ≈ a.is_none()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # Example
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! ```rust
                                                                                                                                                                                                                                                  +//! # #[macro_use] extern crate assertables;
                                                                                                                                                                                                                                                  +//! # fn main() {
                                                                                                                                                                                                                                                  +//! let a: Option<i8> = Option::Some(1);
                                                                                                                                                                                                                                                  +//! assert_option_some!(a);
                                                                                                                                                                                                                                                  +//! # }
                                                                                                                                                                                                                                                  +//! ```
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +pub mod assert_option_some;
                                                                                                                                                                                                                                                  +pub mod assert_option_none;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/src/lib/assert_program_args_stderr_contains.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stderr_contains.rs.html similarity index 91% rename from doc/src/lib/assert_program_args_stderr_contains.rs.html rename to doc/src/lib/assert_program_args/assert_program_args_stderr_contains.rs.html index 7c95ce149..fad6b9196 100644 --- a/doc/src/lib/assert_program_args_stderr_contains.rs.html +++ b/doc/src/lib/assert_program_args/assert_program_args_stderr_contains.rs.html @@ -1,4 +1,4 @@ -assert_program_args_stderr_contains.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stderr_contains.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stderr_eq.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stderr_eq.rs.html
                                                                                                                                                                                                                                                  similarity index 92%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stderr_eq.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stderr_eq.rs.html
                                                                                                                                                                                                                                                  index b31e31125..ffc126759 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stderr_eq.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stderr_eq.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stderr_eq.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stderr_eq.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stderr_eq_expr.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stderr_eq_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stderr_eq_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stderr_eq_expr.rs.html
                                                                                                                                                                                                                                                  index dc5adf77c..8aabff817 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stderr_eq_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stderr_eq_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stderr_eq_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stderr_eq_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stderr_ge.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stderr_ge.rs.html
                                                                                                                                                                                                                                                  similarity index 92%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stderr_ge.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stderr_ge.rs.html
                                                                                                                                                                                                                                                  index f4888876b..8761902b0 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stderr_ge.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stderr_ge.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stderr_ge.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stderr_ge.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stderr_ge_expr.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stderr_ge_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 89%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stderr_ge_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stderr_ge_expr.rs.html
                                                                                                                                                                                                                                                  index eb3361192..787bcfe28 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stderr_ge_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stderr_ge_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stderr_ge_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stderr_ge_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stderr_gt.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stderr_gt.rs.html
                                                                                                                                                                                                                                                  similarity index 92%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stderr_gt.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stderr_gt.rs.html
                                                                                                                                                                                                                                                  index e5a651de4..23d92d62f 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stderr_gt.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stderr_gt.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stderr_gt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stderr_gt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stderr_gt_expr.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stderr_gt_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stderr_gt_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stderr_gt_expr.rs.html
                                                                                                                                                                                                                                                  index d11aa4c9a..7a52bed7a 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stderr_gt_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stderr_gt_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stderr_gt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stderr_gt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stderr_is_match.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stderr_is_match.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stderr_is_match.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stderr_is_match.rs.html
                                                                                                                                                                                                                                                  index 84cdee907..9a6a8e27e 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stderr_is_match.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stderr_is_match.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stderr_is_match.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stderr_is_match.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stderr_le.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stderr_le.rs.html
                                                                                                                                                                                                                                                  similarity index 92%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stderr_le.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stderr_le.rs.html
                                                                                                                                                                                                                                                  index 67c6b9be5..72ae9a2a8 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stderr_le.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stderr_le.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stderr_le.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stderr_le.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stderr_le_expr.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stderr_le_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stderr_le_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stderr_le_expr.rs.html
                                                                                                                                                                                                                                                  index 41e3ca6ad..f3042c659 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stderr_le_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stderr_le_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stderr_le_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stderr_le_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stderr_lt.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stderr_lt.rs.html
                                                                                                                                                                                                                                                  similarity index 92%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stderr_lt.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stderr_lt.rs.html
                                                                                                                                                                                                                                                  index 1fed28782..8389643b3 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stderr_lt.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stderr_lt.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stderr_lt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stderr_lt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stderr_lt_expr.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stderr_lt_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stderr_lt_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stderr_lt_expr.rs.html
                                                                                                                                                                                                                                                  index fe0d43a72..c24808fcd 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stderr_lt_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stderr_lt_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stderr_lt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stderr_lt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stderr_ne.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stderr_ne.rs.html
                                                                                                                                                                                                                                                  similarity index 92%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stderr_ne.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stderr_ne.rs.html
                                                                                                                                                                                                                                                  index e2a257c8e..f331bcea6 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stderr_ne.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stderr_ne.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stderr_ne.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stderr_ne.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stderr_ne_expr.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stderr_ne_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stderr_ne_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stderr_ne_expr.rs.html
                                                                                                                                                                                                                                                  index 85f9cf1df..e6a965e4b 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stderr_ne_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stderr_ne_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stderr_ne_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stderr_ne_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stdout_contains.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stdout_contains.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stdout_contains.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stdout_contains.rs.html
                                                                                                                                                                                                                                                  index 31eb2f266..5eb2b2470 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stdout_contains.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stdout_contains.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stdout_contains.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stdout_contains.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stdout_eq.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stdout_eq.rs.html
                                                                                                                                                                                                                                                  similarity index 92%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stdout_eq.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stdout_eq.rs.html
                                                                                                                                                                                                                                                  index a98926273..b3ad56cef 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stdout_eq.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stdout_eq.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stdout_eq.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stdout_eq.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stdout_eq_expr.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stdout_eq_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stdout_eq_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stdout_eq_expr.rs.html
                                                                                                                                                                                                                                                  index 4013192f0..1f61d8f05 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stdout_eq_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stdout_eq_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stdout_eq_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stdout_eq_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stdout_ge.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stdout_ge.rs.html
                                                                                                                                                                                                                                                  similarity index 92%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stdout_ge.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stdout_ge.rs.html
                                                                                                                                                                                                                                                  index d9a17cad3..18f551aa8 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stdout_ge.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stdout_ge.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stdout_ge.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stdout_ge.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stdout_ge_expr.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stdout_ge_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stdout_ge_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stdout_ge_expr.rs.html
                                                                                                                                                                                                                                                  index 05cf46355..3f4348193 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stdout_ge_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stdout_ge_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stdout_ge_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stdout_ge_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stdout_gt.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stdout_gt.rs.html
                                                                                                                                                                                                                                                  similarity index 92%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stdout_gt.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stdout_gt.rs.html
                                                                                                                                                                                                                                                  index a23407f26..3cc677ea0 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stdout_gt.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stdout_gt.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stdout_gt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stdout_gt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stdout_gt_expr.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stdout_gt_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stdout_gt_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stdout_gt_expr.rs.html
                                                                                                                                                                                                                                                  index c1431d509..a0085358e 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stdout_gt_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stdout_gt_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stdout_gt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stdout_gt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stdout_is_match.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stdout_is_match.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stdout_is_match.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stdout_is_match.rs.html
                                                                                                                                                                                                                                                  index d53ada1b1..338cbcfe4 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stdout_is_match.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stdout_is_match.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stdout_is_match.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stdout_is_match.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stdout_le.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stdout_le.rs.html
                                                                                                                                                                                                                                                  similarity index 92%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stdout_le.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stdout_le.rs.html
                                                                                                                                                                                                                                                  index 5f6a632d7..1a0d46a9b 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stdout_le.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stdout_le.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stdout_le.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stdout_le.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stdout_le_expr.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stdout_le_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stdout_le_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stdout_le_expr.rs.html
                                                                                                                                                                                                                                                  index 73013c2bd..488dcbd3f 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stdout_le_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stdout_le_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stdout_le_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stdout_le_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stdout_lt.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stdout_lt.rs.html
                                                                                                                                                                                                                                                  similarity index 92%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stdout_lt.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stdout_lt.rs.html
                                                                                                                                                                                                                                                  index 13c750df1..e2cd409cf 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stdout_lt.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stdout_lt.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stdout_lt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stdout_lt.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stdout_lt_expr.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stdout_lt_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stdout_lt_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stdout_lt_expr.rs.html
                                                                                                                                                                                                                                                  index 56b08eeaf..2f20e0f20 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stdout_lt_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stdout_lt_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stdout_lt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stdout_lt_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stdout_ne.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stdout_ne.rs.html
                                                                                                                                                                                                                                                  similarity index 92%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stdout_ne.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stdout_ne.rs.html
                                                                                                                                                                                                                                                  index 38431e14f..8f452793b 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stdout_ne.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stdout_ne.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stdout_ne.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stdout_ne.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args_stdout_ne_expr.rs.html b/doc/src/lib/assert_program_args/assert_program_args_stdout_ne_expr.rs.html
                                                                                                                                                                                                                                                  similarity index 91%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_program_args_stdout_ne_expr.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_program_args/assert_program_args_stdout_ne_expr.rs.html
                                                                                                                                                                                                                                                  index d73a62b9a..8058de30b 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_program_args_stdout_ne_expr.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/assert_program_args_stdout_ne_expr.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_program_args_stdout_ne_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_program_args_stdout_ne_expr.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_program_args/mod.rs.html b/doc/src/lib/assert_program_args/mod.rs.html
                                                                                                                                                                                                                                                  new file mode 100644
                                                                                                                                                                                                                                                  index 000000000..59f6f58bf
                                                                                                                                                                                                                                                  --- /dev/null
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_program_args/mod.rs.html
                                                                                                                                                                                                                                                  @@ -0,0 +1,153 @@
                                                                                                                                                                                                                                                  +mod.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +2
                                                                                                                                                                                                                                                  +3
                                                                                                                                                                                                                                                  +4
                                                                                                                                                                                                                                                  +5
                                                                                                                                                                                                                                                  +6
                                                                                                                                                                                                                                                  +7
                                                                                                                                                                                                                                                  +8
                                                                                                                                                                                                                                                  +9
                                                                                                                                                                                                                                                  +10
                                                                                                                                                                                                                                                  +11
                                                                                                                                                                                                                                                  +12
                                                                                                                                                                                                                                                  +13
                                                                                                                                                                                                                                                  +14
                                                                                                                                                                                                                                                  +15
                                                                                                                                                                                                                                                  +16
                                                                                                                                                                                                                                                  +17
                                                                                                                                                                                                                                                  +18
                                                                                                                                                                                                                                                  +19
                                                                                                                                                                                                                                                  +20
                                                                                                                                                                                                                                                  +21
                                                                                                                                                                                                                                                  +22
                                                                                                                                                                                                                                                  +23
                                                                                                                                                                                                                                                  +24
                                                                                                                                                                                                                                                  +25
                                                                                                                                                                                                                                                  +26
                                                                                                                                                                                                                                                  +27
                                                                                                                                                                                                                                                  +28
                                                                                                                                                                                                                                                  +29
                                                                                                                                                                                                                                                  +30
                                                                                                                                                                                                                                                  +31
                                                                                                                                                                                                                                                  +32
                                                                                                                                                                                                                                                  +33
                                                                                                                                                                                                                                                  +34
                                                                                                                                                                                                                                                  +35
                                                                                                                                                                                                                                                  +36
                                                                                                                                                                                                                                                  +37
                                                                                                                                                                                                                                                  +38
                                                                                                                                                                                                                                                  +39
                                                                                                                                                                                                                                                  +40
                                                                                                                                                                                                                                                  +41
                                                                                                                                                                                                                                                  +42
                                                                                                                                                                                                                                                  +43
                                                                                                                                                                                                                                                  +44
                                                                                                                                                                                                                                                  +45
                                                                                                                                                                                                                                                  +46
                                                                                                                                                                                                                                                  +47
                                                                                                                                                                                                                                                  +48
                                                                                                                                                                                                                                                  +49
                                                                                                                                                                                                                                                  +50
                                                                                                                                                                                                                                                  +51
                                                                                                                                                                                                                                                  +52
                                                                                                                                                                                                                                                  +53
                                                                                                                                                                                                                                                  +54
                                                                                                                                                                                                                                                  +55
                                                                                                                                                                                                                                                  +56
                                                                                                                                                                                                                                                  +57
                                                                                                                                                                                                                                                  +58
                                                                                                                                                                                                                                                  +59
                                                                                                                                                                                                                                                  +60
                                                                                                                                                                                                                                                  +61
                                                                                                                                                                                                                                                  +62
                                                                                                                                                                                                                                                  +63
                                                                                                                                                                                                                                                  +64
                                                                                                                                                                                                                                                  +65
                                                                                                                                                                                                                                                  +66
                                                                                                                                                                                                                                                  +67
                                                                                                                                                                                                                                                  +68
                                                                                                                                                                                                                                                  +69
                                                                                                                                                                                                                                                  +70
                                                                                                                                                                                                                                                  +71
                                                                                                                                                                                                                                                  +72
                                                                                                                                                                                                                                                  +73
                                                                                                                                                                                                                                                  +74
                                                                                                                                                                                                                                                  +75
                                                                                                                                                                                                                                                  +76
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  //! Assert macros for comparing programs with arguments.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! These macros help with calling external programs with arguments, then
                                                                                                                                                                                                                                                  +//! capturing the standard output stream and standard error stream.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! These macros have corresponding macros in the module [`assert_command`](module@crate::assert_command).
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! Compare command using program and arguments to standard output:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_program_args_stdout_eq!(program1, args1, program2, args2)`](macro@crate::assert_program_args_stdout_eq) ≈ command using program1 and args1 to stdout = command2 with program2 and args2 to stdout
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_program_args_stdout_eq_expr!(program, args, expr)`](macro@crate::assert_program_args_stdout_eq_expr) ≈ command using program and args to stdout = expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_program_args_stdout_contains!(program, args, containee)`](macro@crate::assert_program_args_stdout_contains) ≈ command using program and args to stdout contains containee
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_program_args_stdout_is_match!(program, args, matcher)`](macro@crate::assert_program_args_stdout_is_match) ≈ matcher is match with command using program and args
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! Compare command using program and arguments to standard output:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_program_args_stderr_eq!(program1, args1, program2, args2)`](macro@crate::assert_program_args_stderr_eq) ≈ command using program1 and args1 to stderr = command2 with program2 and args2 to stderr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_program_args_stderr_eq_expr!(program, args, expr)`](macro@crate::assert_program_args_stderr_eq_expr) ≈ command using program and args to stderr = expr
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_program_args_stderr_contains!(program, args, containee)`](macro@crate::assert_program_args_stderr_contains) ≈ command using program and args to stderr contains containee
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_program_args_stderr_is_match!(program, args, matcher)`](macro@crate::assert_program_args_stderr_is_match) ≈ matcher is match with command using program and args
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # Example
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! ```rust
                                                                                                                                                                                                                                                  +//! # #[macro_use] extern crate assertables;
                                                                                                                                                                                                                                                  +//! # fn main() {
                                                                                                                                                                                                                                                  +//! let a_program = "bin/printf-stdout";
                                                                                                                                                                                                                                                  +//! let a_args = ["%s", "hello"];
                                                                                                                                                                                                                                                  +//! let b_program = "bin/printf-stdout";
                                                                                                                                                                                                                                                  +//! let b_args = ["%s%s%s%s%s", "h", "e", "l", "l", "o"];
                                                                                                                                                                                                                                                  +//! assert_program_args_stdout_eq!(&a_program, &a_args, &b_program, &b_args);
                                                                                                                                                                                                                                                  +//! # }
                                                                                                                                                                                                                                                  +//! ```
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +// stdout
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stdout_eq;
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stdout_eq_expr;
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stdout_ge;
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stdout_ge_expr;
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stdout_gt;
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stdout_gt_expr;
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stdout_le;
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stdout_le_expr;
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stdout_lt;
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stdout_lt_expr;
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stdout_ne;
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stdout_ne_expr;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +// stdout searches
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stdout_contains;
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stdout_is_match;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +// stderr
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stderr_eq;
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stderr_eq_expr;
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stderr_ge;
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stderr_ge_expr;
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stderr_gt;
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stderr_gt_expr;
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stderr_le;
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stderr_le_expr;
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stderr_lt;
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stderr_lt_expr;
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stderr_ne;
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stderr_ne_expr;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +// stderr searches
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stderr_contains;
                                                                                                                                                                                                                                                  +pub mod assert_program_args_stderr_is_match;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/src/lib/assert_result/assert_result_err.rs.html b/doc/src/lib/assert_result/assert_result_err.rs.html new file mode 100644 index 000000000..33bd0d9c0 --- /dev/null +++ b/doc/src/lib/assert_result/assert_result_err.rs.html @@ -0,0 +1,451 @@ +assert_result_err.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +2
                                                                                                                                                                                                                                                  +3
                                                                                                                                                                                                                                                  +4
                                                                                                                                                                                                                                                  +5
                                                                                                                                                                                                                                                  +6
                                                                                                                                                                                                                                                  +7
                                                                                                                                                                                                                                                  +8
                                                                                                                                                                                                                                                  +9
                                                                                                                                                                                                                                                  +10
                                                                                                                                                                                                                                                  +11
                                                                                                                                                                                                                                                  +12
                                                                                                                                                                                                                                                  +13
                                                                                                                                                                                                                                                  +14
                                                                                                                                                                                                                                                  +15
                                                                                                                                                                                                                                                  +16
                                                                                                                                                                                                                                                  +17
                                                                                                                                                                                                                                                  +18
                                                                                                                                                                                                                                                  +19
                                                                                                                                                                                                                                                  +20
                                                                                                                                                                                                                                                  +21
                                                                                                                                                                                                                                                  +22
                                                                                                                                                                                                                                                  +23
                                                                                                                                                                                                                                                  +24
                                                                                                                                                                                                                                                  +25
                                                                                                                                                                                                                                                  +26
                                                                                                                                                                                                                                                  +27
                                                                                                                                                                                                                                                  +28
                                                                                                                                                                                                                                                  +29
                                                                                                                                                                                                                                                  +30
                                                                                                                                                                                                                                                  +31
                                                                                                                                                                                                                                                  +32
                                                                                                                                                                                                                                                  +33
                                                                                                                                                                                                                                                  +34
                                                                                                                                                                                                                                                  +35
                                                                                                                                                                                                                                                  +36
                                                                                                                                                                                                                                                  +37
                                                                                                                                                                                                                                                  +38
                                                                                                                                                                                                                                                  +39
                                                                                                                                                                                                                                                  +40
                                                                                                                                                                                                                                                  +41
                                                                                                                                                                                                                                                  +42
                                                                                                                                                                                                                                                  +43
                                                                                                                                                                                                                                                  +44
                                                                                                                                                                                                                                                  +45
                                                                                                                                                                                                                                                  +46
                                                                                                                                                                                                                                                  +47
                                                                                                                                                                                                                                                  +48
                                                                                                                                                                                                                                                  +49
                                                                                                                                                                                                                                                  +50
                                                                                                                                                                                                                                                  +51
                                                                                                                                                                                                                                                  +52
                                                                                                                                                                                                                                                  +53
                                                                                                                                                                                                                                                  +54
                                                                                                                                                                                                                                                  +55
                                                                                                                                                                                                                                                  +56
                                                                                                                                                                                                                                                  +57
                                                                                                                                                                                                                                                  +58
                                                                                                                                                                                                                                                  +59
                                                                                                                                                                                                                                                  +60
                                                                                                                                                                                                                                                  +61
                                                                                                                                                                                                                                                  +62
                                                                                                                                                                                                                                                  +63
                                                                                                                                                                                                                                                  +64
                                                                                                                                                                                                                                                  +65
                                                                                                                                                                                                                                                  +66
                                                                                                                                                                                                                                                  +67
                                                                                                                                                                                                                                                  +68
                                                                                                                                                                                                                                                  +69
                                                                                                                                                                                                                                                  +70
                                                                                                                                                                                                                                                  +71
                                                                                                                                                                                                                                                  +72
                                                                                                                                                                                                                                                  +73
                                                                                                                                                                                                                                                  +74
                                                                                                                                                                                                                                                  +75
                                                                                                                                                                                                                                                  +76
                                                                                                                                                                                                                                                  +77
                                                                                                                                                                                                                                                  +78
                                                                                                                                                                                                                                                  +79
                                                                                                                                                                                                                                                  +80
                                                                                                                                                                                                                                                  +81
                                                                                                                                                                                                                                                  +82
                                                                                                                                                                                                                                                  +83
                                                                                                                                                                                                                                                  +84
                                                                                                                                                                                                                                                  +85
                                                                                                                                                                                                                                                  +86
                                                                                                                                                                                                                                                  +87
                                                                                                                                                                                                                                                  +88
                                                                                                                                                                                                                                                  +89
                                                                                                                                                                                                                                                  +90
                                                                                                                                                                                                                                                  +91
                                                                                                                                                                                                                                                  +92
                                                                                                                                                                                                                                                  +93
                                                                                                                                                                                                                                                  +94
                                                                                                                                                                                                                                                  +95
                                                                                                                                                                                                                                                  +96
                                                                                                                                                                                                                                                  +97
                                                                                                                                                                                                                                                  +98
                                                                                                                                                                                                                                                  +99
                                                                                                                                                                                                                                                  +100
                                                                                                                                                                                                                                                  +101
                                                                                                                                                                                                                                                  +102
                                                                                                                                                                                                                                                  +103
                                                                                                                                                                                                                                                  +104
                                                                                                                                                                                                                                                  +105
                                                                                                                                                                                                                                                  +106
                                                                                                                                                                                                                                                  +107
                                                                                                                                                                                                                                                  +108
                                                                                                                                                                                                                                                  +109
                                                                                                                                                                                                                                                  +110
                                                                                                                                                                                                                                                  +111
                                                                                                                                                                                                                                                  +112
                                                                                                                                                                                                                                                  +113
                                                                                                                                                                                                                                                  +114
                                                                                                                                                                                                                                                  +115
                                                                                                                                                                                                                                                  +116
                                                                                                                                                                                                                                                  +117
                                                                                                                                                                                                                                                  +118
                                                                                                                                                                                                                                                  +119
                                                                                                                                                                                                                                                  +120
                                                                                                                                                                                                                                                  +121
                                                                                                                                                                                                                                                  +122
                                                                                                                                                                                                                                                  +123
                                                                                                                                                                                                                                                  +124
                                                                                                                                                                                                                                                  +125
                                                                                                                                                                                                                                                  +126
                                                                                                                                                                                                                                                  +127
                                                                                                                                                                                                                                                  +128
                                                                                                                                                                                                                                                  +129
                                                                                                                                                                                                                                                  +130
                                                                                                                                                                                                                                                  +131
                                                                                                                                                                                                                                                  +132
                                                                                                                                                                                                                                                  +133
                                                                                                                                                                                                                                                  +134
                                                                                                                                                                                                                                                  +135
                                                                                                                                                                                                                                                  +136
                                                                                                                                                                                                                                                  +137
                                                                                                                                                                                                                                                  +138
                                                                                                                                                                                                                                                  +139
                                                                                                                                                                                                                                                  +140
                                                                                                                                                                                                                                                  +141
                                                                                                                                                                                                                                                  +142
                                                                                                                                                                                                                                                  +143
                                                                                                                                                                                                                                                  +144
                                                                                                                                                                                                                                                  +145
                                                                                                                                                                                                                                                  +146
                                                                                                                                                                                                                                                  +147
                                                                                                                                                                                                                                                  +148
                                                                                                                                                                                                                                                  +149
                                                                                                                                                                                                                                                  +150
                                                                                                                                                                                                                                                  +151
                                                                                                                                                                                                                                                  +152
                                                                                                                                                                                                                                                  +153
                                                                                                                                                                                                                                                  +154
                                                                                                                                                                                                                                                  +155
                                                                                                                                                                                                                                                  +156
                                                                                                                                                                                                                                                  +157
                                                                                                                                                                                                                                                  +158
                                                                                                                                                                                                                                                  +159
                                                                                                                                                                                                                                                  +160
                                                                                                                                                                                                                                                  +161
                                                                                                                                                                                                                                                  +162
                                                                                                                                                                                                                                                  +163
                                                                                                                                                                                                                                                  +164
                                                                                                                                                                                                                                                  +165
                                                                                                                                                                                                                                                  +166
                                                                                                                                                                                                                                                  +167
                                                                                                                                                                                                                                                  +168
                                                                                                                                                                                                                                                  +169
                                                                                                                                                                                                                                                  +170
                                                                                                                                                                                                                                                  +171
                                                                                                                                                                                                                                                  +172
                                                                                                                                                                                                                                                  +173
                                                                                                                                                                                                                                                  +174
                                                                                                                                                                                                                                                  +175
                                                                                                                                                                                                                                                  +176
                                                                                                                                                                                                                                                  +177
                                                                                                                                                                                                                                                  +178
                                                                                                                                                                                                                                                  +179
                                                                                                                                                                                                                                                  +180
                                                                                                                                                                                                                                                  +181
                                                                                                                                                                                                                                                  +182
                                                                                                                                                                                                                                                  +183
                                                                                                                                                                                                                                                  +184
                                                                                                                                                                                                                                                  +185
                                                                                                                                                                                                                                                  +186
                                                                                                                                                                                                                                                  +187
                                                                                                                                                                                                                                                  +188
                                                                                                                                                                                                                                                  +189
                                                                                                                                                                                                                                                  +190
                                                                                                                                                                                                                                                  +191
                                                                                                                                                                                                                                                  +192
                                                                                                                                                                                                                                                  +193
                                                                                                                                                                                                                                                  +194
                                                                                                                                                                                                                                                  +195
                                                                                                                                                                                                                                                  +196
                                                                                                                                                                                                                                                  +197
                                                                                                                                                                                                                                                  +198
                                                                                                                                                                                                                                                  +199
                                                                                                                                                                                                                                                  +200
                                                                                                                                                                                                                                                  +201
                                                                                                                                                                                                                                                  +202
                                                                                                                                                                                                                                                  +203
                                                                                                                                                                                                                                                  +204
                                                                                                                                                                                                                                                  +205
                                                                                                                                                                                                                                                  +206
                                                                                                                                                                                                                                                  +207
                                                                                                                                                                                                                                                  +208
                                                                                                                                                                                                                                                  +209
                                                                                                                                                                                                                                                  +210
                                                                                                                                                                                                                                                  +211
                                                                                                                                                                                                                                                  +212
                                                                                                                                                                                                                                                  +213
                                                                                                                                                                                                                                                  +214
                                                                                                                                                                                                                                                  +215
                                                                                                                                                                                                                                                  +216
                                                                                                                                                                                                                                                  +217
                                                                                                                                                                                                                                                  +218
                                                                                                                                                                                                                                                  +219
                                                                                                                                                                                                                                                  +220
                                                                                                                                                                                                                                                  +221
                                                                                                                                                                                                                                                  +222
                                                                                                                                                                                                                                                  +223
                                                                                                                                                                                                                                                  +224
                                                                                                                                                                                                                                                  +225
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  //! Assert expression.is_err() is true.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * If true, return `()`.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * Otherwise, call [`panic!`] with a message and the values of the
                                                                                                                                                                                                                                                  +//!   expressions with their debug representations.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # Examples
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! ```rust
                                                                                                                                                                                                                                                  +//! # #[macro_use] extern crate assertables;
                                                                                                                                                                                                                                                  +//! # use std::panic;
                                                                                                                                                                                                                                                  +//! # fn main() {
                                                                                                                                                                                                                                                  +//! let a: Result<(), i8> = Result::Err(1);
                                                                                                                                                                                                                                                  +//! assert_result_err!(a);
                                                                                                                                                                                                                                                  +//! //-> ()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! let a: Result<(), i8> = Result::Ok(());
                                                                                                                                                                                                                                                  +//! // Panic with error message
                                                                                                                                                                                                                                                  +//! let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  +//! assert_result_err!(a);
                                                                                                                                                                                                                                                  +//! //-> panic!
                                                                                                                                                                                                                                                  +//! });
                                                                                                                                                                                                                                                  +//! assert!(result.is_err());
                                                                                                                                                                                                                                                  +//! let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                  +//! let expect = concat!(
                                                                                                                                                                                                                                                  +//!     "assertion failed: `assert_result_err!(expr)`\n",
                                                                                                                                                                                                                                                  +//!     "    expr label: `a`,\n",
                                                                                                                                                                                                                                                  +//!     "    expr debug: `Ok(())`,\n",
                                                                                                                                                                                                                                                  +//!     " expr.is_err(): `false`",
                                                                                                                                                                                                                                                  +//! );
                                                                                                                                                                                                                                                  +//! assert_eq!(actual, expect);
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! // Panic with error message
                                                                                                                                                                                                                                                  +//! let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  +//! assert_result_err!(a, "message");
                                                                                                                                                                                                                                                  +//! //-> panic!
                                                                                                                                                                                                                                                  +//! });
                                                                                                                                                                                                                                                  +//! assert!(result.is_err());
                                                                                                                                                                                                                                                  +//! let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                  +//! let expect = "message";
                                                                                                                                                                                                                                                  +//! assert_eq!(actual, expect);
                                                                                                                                                                                                                                                  +//! # }
                                                                                                                                                                                                                                                  +//! ```
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # Module macros
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_result_err`](macro@crate::assert_result_err)
                                                                                                                                                                                                                                                  +//! * [`assert_result_err_as_result`](macro@crate::assert_result_err_as_result)
                                                                                                                                                                                                                                                  +//! * [`debug_assert_result_err`](macro@crate::debug_assert_result_err)
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +/// Assert an expression.is_err() is true.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * If true, return Result `Ok(())`.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * Otherwise, return Result `Err` with a diagnostic message.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro provides the same statements as [`assert_result_err`](macro.assert_result_err.html),
                                                                                                                                                                                                                                                  +/// except this macro returns a Result, rather than doing a panic.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro is useful for runtime checks, such as checking parameters,
                                                                                                                                                                                                                                                  +/// or sanitizing inputs, or handling different results in different ways.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// # Module macros
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * [`assert_result_err`](macro@crate::assert_result_err)
                                                                                                                                                                                                                                                  +/// * [`assert_result_err_as_result`](macro@crate::assert_result_err_as_result)
                                                                                                                                                                                                                                                  +/// * [`debug_assert_result_err`](macro@crate::debug_assert_result_err)
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +#[macro_export]
                                                                                                                                                                                                                                                  +macro_rules! assert_result_err_as_result {
                                                                                                                                                                                                                                                  +    ($a:expr $(,)?) => {{
                                                                                                                                                                                                                                                  +        match (&$a) {
                                                                                                                                                                                                                                                  +            a_val => {
                                                                                                                                                                                                                                                  +                let is_err = a_val.is_err();
                                                                                                                                                                                                                                                  +                if is_err {
                                                                                                                                                                                                                                                  +                    Ok(())
                                                                                                                                                                                                                                                  +                } else {
                                                                                                                                                                                                                                                  +                    Err(format!(
                                                                                                                                                                                                                                                  +                        concat!(
                                                                                                                                                                                                                                                  +                            "assertion failed: `assert_result_err!(expr)`\n",
                                                                                                                                                                                                                                                  +                            "    expr label: `{}`,\n",
                                                                                                                                                                                                                                                  +                            "    expr debug: `{:?}`,\n",
                                                                                                                                                                                                                                                  +                            " expr.is_err(): `{:?}`"
                                                                                                                                                                                                                                                  +                        ),
                                                                                                                                                                                                                                                  +                        stringify!($a),
                                                                                                                                                                                                                                                  +                        $a,
                                                                                                                                                                                                                                                  +                        is_err,
                                                                                                                                                                                                                                                  +                    ))
                                                                                                                                                                                                                                                  +                }
                                                                                                                                                                                                                                                  +            }
                                                                                                                                                                                                                                                  +        }
                                                                                                                                                                                                                                                  +    }};
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +#[cfg(test)]
                                                                                                                                                                                                                                                  +mod tests {
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +    #[test]
                                                                                                                                                                                                                                                  +    fn test_assert_result_err_as_result_x_success() {
                                                                                                                                                                                                                                                  +        let a: Result<(), i8> = Result::Err(1);
                                                                                                                                                                                                                                                  +        let x = assert_result_err_as_result!(a);
                                                                                                                                                                                                                                                  +        assert_eq!(x, Ok(()));
                                                                                                                                                                                                                                                  +    }
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +    #[test]
                                                                                                                                                                                                                                                  +    fn test_assert_result_err_as_result_x_failure() {
                                                                                                                                                                                                                                                  +        let a: Result<(), i8>  = Result::Ok(());
                                                                                                                                                                                                                                                  +        let x = assert_result_err_as_result!(a);
                                                                                                                                                                                                                                                  +        assert!(x.is_err());
                                                                                                                                                                                                                                                  +        assert_eq!(
                                                                                                                                                                                                                                                  +            x.unwrap_err(),
                                                                                                                                                                                                                                                  +            concat!(
                                                                                                                                                                                                                                                  +                "assertion failed: `assert_result_err!(expr)`\n",
                                                                                                                                                                                                                                                  +                "    expr label: `a`,\n",
                                                                                                                                                                                                                                                  +                "    expr debug: `Ok(())`,\n",
                                                                                                                                                                                                                                                  +                " expr.is_err(): `false`"
                                                                                                                                                                                                                                                  +            )
                                                                                                                                                                                                                                                  +        );
                                                                                                                                                                                                                                                  +    }
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +/// Assert expression.is_err() is true.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * If true, return `()`.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * Otherwise, call [`panic!`] with a message and the values of the
                                                                                                                                                                                                                                                  +///   expressions with their debug representations.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// # Examples
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// ```rust
                                                                                                                                                                                                                                                  +/// # #[macro_use] extern crate assertables;
                                                                                                                                                                                                                                                  +/// # use std::panic;
                                                                                                                                                                                                                                                  +/// # fn main() {
                                                                                                                                                                                                                                                  +/// let a: Result<(), i8> = Result::Err(1);
                                                                                                                                                                                                                                                  +/// assert_result_err!(a);
                                                                                                                                                                                                                                                  +/// //-> ()
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// let a: Result<(), i8> = Result::Ok(());
                                                                                                                                                                                                                                                  +/// // Panic with error message
                                                                                                                                                                                                                                                  +/// let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  +/// assert_result_err!(a);
                                                                                                                                                                                                                                                  +/// //-> panic!
                                                                                                                                                                                                                                                  +/// });
                                                                                                                                                                                                                                                  +/// assert!(result.is_err());
                                                                                                                                                                                                                                                  +/// let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                  +/// let expect = concat!(
                                                                                                                                                                                                                                                  +///     "assertion failed: `assert_result_err!(expr)`\n",
                                                                                                                                                                                                                                                  +///     "    expr label: `a`,\n",
                                                                                                                                                                                                                                                  +///     "    expr debug: `Ok(())`,\n",
                                                                                                                                                                                                                                                  +///     " expr.is_err(): `false`",
                                                                                                                                                                                                                                                  +/// );
                                                                                                                                                                                                                                                  +/// assert_eq!(actual, expect);
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// // Panic with error message
                                                                                                                                                                                                                                                  +/// let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  +/// assert_result_err!(a, "message");
                                                                                                                                                                                                                                                  +/// //-> panic!
                                                                                                                                                                                                                                                  +/// });
                                                                                                                                                                                                                                                  +/// assert!(result.is_err());
                                                                                                                                                                                                                                                  +/// let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                  +/// let expect = "message";
                                                                                                                                                                                                                                                  +/// assert_eq!(actual, expect);
                                                                                                                                                                                                                                                  +/// # }
                                                                                                                                                                                                                                                  +/// ```
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// # Module macros
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * [`assert_result_err`](macro@crate::assert_result_err)
                                                                                                                                                                                                                                                  +/// * [`assert_result_err_as_result`](macro@crate::assert_result_err_as_result)
                                                                                                                                                                                                                                                  +/// * [`debug_assert_result_err`](macro@crate::debug_assert_result_err)
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +#[macro_export]
                                                                                                                                                                                                                                                  +macro_rules! assert_result_err {
                                                                                                                                                                                                                                                  +    ($a:expr $(,)?) => ({
                                                                                                                                                                                                                                                  +        match assert_result_err_as_result!($a) {
                                                                                                                                                                                                                                                  +            Ok(()) => (),
                                                                                                                                                                                                                                                  +            Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  +        }
                                                                                                                                                                                                                                                  +    });
                                                                                                                                                                                                                                                  +    ($a:expr, $($message:tt)+) => ({
                                                                                                                                                                                                                                                  +        match assert_result_err_as_result!($a) {
                                                                                                                                                                                                                                                  +            Ok(()) => (),
                                                                                                                                                                                                                                                  +            Err(_err) => panic!("{}", $($message)+),
                                                                                                                                                                                                                                                  +        }
                                                                                                                                                                                                                                                  +    });
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +/// Assert expression.is_err() is true.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro provides the same statements as [`assert_result_err`](macro.assert_result_err.html),
                                                                                                                                                                                                                                                  +/// except this macro's statements are only enabled in non-optimized
                                                                                                                                                                                                                                                  +/// builds by default. An optimized build will not execute this macro's
                                                                                                                                                                                                                                                  +/// statements unless `-C debug-assertions` is passed to the compiler.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro is useful for checks that are too expensive to be present
                                                                                                                                                                                                                                                  +/// in a release build but may be helpful during development.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// The result of expanding this macro is always type checked.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// An unchecked assertion allows a program in an inconsistent state to
                                                                                                                                                                                                                                                  +/// keep running, which might have unexpected consequences but does not
                                                                                                                                                                                                                                                  +/// introduce unsafety as long as this only happens in safe code. The
                                                                                                                                                                                                                                                  +/// performance cost of assertions, however, is not measurable in general.
                                                                                                                                                                                                                                                  +/// Replacing `assert*!` with `debug_assert*!` is thus only encouraged
                                                                                                                                                                                                                                                  +/// after thorough profiling, and more importantly, only in safe code!
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro is intended to work in a similar way to
                                                                                                                                                                                                                                                  +/// [`std::debug_assert`](https://doc.rust-lang.org/std/macro.debug_assert.html).
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// # Module macros
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * [`assert_result_err`](macro@crate::assert_result_err)
                                                                                                                                                                                                                                                  +/// * [`assert_result_err`](macro@crate::assert_result_err)
                                                                                                                                                                                                                                                  +/// * [`debug_assert_result_err`](macro@crate::debug_assert_result_err)
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +#[macro_export]
                                                                                                                                                                                                                                                  +macro_rules! debug_assert_result_err {
                                                                                                                                                                                                                                                  +    ($($arg:tt)*) => {
                                                                                                                                                                                                                                                  +        if $crate::cfg!(debug_assertions) {
                                                                                                                                                                                                                                                  +            $crate::assert_result_err!($($arg)*);
                                                                                                                                                                                                                                                  +        }
                                                                                                                                                                                                                                                  +    };
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/src/lib/assert_result/assert_result_ok.rs.html b/doc/src/lib/assert_result/assert_result_ok.rs.html new file mode 100644 index 000000000..afd321863 --- /dev/null +++ b/doc/src/lib/assert_result/assert_result_ok.rs.html @@ -0,0 +1,451 @@ +assert_result_ok.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +2
                                                                                                                                                                                                                                                  +3
                                                                                                                                                                                                                                                  +4
                                                                                                                                                                                                                                                  +5
                                                                                                                                                                                                                                                  +6
                                                                                                                                                                                                                                                  +7
                                                                                                                                                                                                                                                  +8
                                                                                                                                                                                                                                                  +9
                                                                                                                                                                                                                                                  +10
                                                                                                                                                                                                                                                  +11
                                                                                                                                                                                                                                                  +12
                                                                                                                                                                                                                                                  +13
                                                                                                                                                                                                                                                  +14
                                                                                                                                                                                                                                                  +15
                                                                                                                                                                                                                                                  +16
                                                                                                                                                                                                                                                  +17
                                                                                                                                                                                                                                                  +18
                                                                                                                                                                                                                                                  +19
                                                                                                                                                                                                                                                  +20
                                                                                                                                                                                                                                                  +21
                                                                                                                                                                                                                                                  +22
                                                                                                                                                                                                                                                  +23
                                                                                                                                                                                                                                                  +24
                                                                                                                                                                                                                                                  +25
                                                                                                                                                                                                                                                  +26
                                                                                                                                                                                                                                                  +27
                                                                                                                                                                                                                                                  +28
                                                                                                                                                                                                                                                  +29
                                                                                                                                                                                                                                                  +30
                                                                                                                                                                                                                                                  +31
                                                                                                                                                                                                                                                  +32
                                                                                                                                                                                                                                                  +33
                                                                                                                                                                                                                                                  +34
                                                                                                                                                                                                                                                  +35
                                                                                                                                                                                                                                                  +36
                                                                                                                                                                                                                                                  +37
                                                                                                                                                                                                                                                  +38
                                                                                                                                                                                                                                                  +39
                                                                                                                                                                                                                                                  +40
                                                                                                                                                                                                                                                  +41
                                                                                                                                                                                                                                                  +42
                                                                                                                                                                                                                                                  +43
                                                                                                                                                                                                                                                  +44
                                                                                                                                                                                                                                                  +45
                                                                                                                                                                                                                                                  +46
                                                                                                                                                                                                                                                  +47
                                                                                                                                                                                                                                                  +48
                                                                                                                                                                                                                                                  +49
                                                                                                                                                                                                                                                  +50
                                                                                                                                                                                                                                                  +51
                                                                                                                                                                                                                                                  +52
                                                                                                                                                                                                                                                  +53
                                                                                                                                                                                                                                                  +54
                                                                                                                                                                                                                                                  +55
                                                                                                                                                                                                                                                  +56
                                                                                                                                                                                                                                                  +57
                                                                                                                                                                                                                                                  +58
                                                                                                                                                                                                                                                  +59
                                                                                                                                                                                                                                                  +60
                                                                                                                                                                                                                                                  +61
                                                                                                                                                                                                                                                  +62
                                                                                                                                                                                                                                                  +63
                                                                                                                                                                                                                                                  +64
                                                                                                                                                                                                                                                  +65
                                                                                                                                                                                                                                                  +66
                                                                                                                                                                                                                                                  +67
                                                                                                                                                                                                                                                  +68
                                                                                                                                                                                                                                                  +69
                                                                                                                                                                                                                                                  +70
                                                                                                                                                                                                                                                  +71
                                                                                                                                                                                                                                                  +72
                                                                                                                                                                                                                                                  +73
                                                                                                                                                                                                                                                  +74
                                                                                                                                                                                                                                                  +75
                                                                                                                                                                                                                                                  +76
                                                                                                                                                                                                                                                  +77
                                                                                                                                                                                                                                                  +78
                                                                                                                                                                                                                                                  +79
                                                                                                                                                                                                                                                  +80
                                                                                                                                                                                                                                                  +81
                                                                                                                                                                                                                                                  +82
                                                                                                                                                                                                                                                  +83
                                                                                                                                                                                                                                                  +84
                                                                                                                                                                                                                                                  +85
                                                                                                                                                                                                                                                  +86
                                                                                                                                                                                                                                                  +87
                                                                                                                                                                                                                                                  +88
                                                                                                                                                                                                                                                  +89
                                                                                                                                                                                                                                                  +90
                                                                                                                                                                                                                                                  +91
                                                                                                                                                                                                                                                  +92
                                                                                                                                                                                                                                                  +93
                                                                                                                                                                                                                                                  +94
                                                                                                                                                                                                                                                  +95
                                                                                                                                                                                                                                                  +96
                                                                                                                                                                                                                                                  +97
                                                                                                                                                                                                                                                  +98
                                                                                                                                                                                                                                                  +99
                                                                                                                                                                                                                                                  +100
                                                                                                                                                                                                                                                  +101
                                                                                                                                                                                                                                                  +102
                                                                                                                                                                                                                                                  +103
                                                                                                                                                                                                                                                  +104
                                                                                                                                                                                                                                                  +105
                                                                                                                                                                                                                                                  +106
                                                                                                                                                                                                                                                  +107
                                                                                                                                                                                                                                                  +108
                                                                                                                                                                                                                                                  +109
                                                                                                                                                                                                                                                  +110
                                                                                                                                                                                                                                                  +111
                                                                                                                                                                                                                                                  +112
                                                                                                                                                                                                                                                  +113
                                                                                                                                                                                                                                                  +114
                                                                                                                                                                                                                                                  +115
                                                                                                                                                                                                                                                  +116
                                                                                                                                                                                                                                                  +117
                                                                                                                                                                                                                                                  +118
                                                                                                                                                                                                                                                  +119
                                                                                                                                                                                                                                                  +120
                                                                                                                                                                                                                                                  +121
                                                                                                                                                                                                                                                  +122
                                                                                                                                                                                                                                                  +123
                                                                                                                                                                                                                                                  +124
                                                                                                                                                                                                                                                  +125
                                                                                                                                                                                                                                                  +126
                                                                                                                                                                                                                                                  +127
                                                                                                                                                                                                                                                  +128
                                                                                                                                                                                                                                                  +129
                                                                                                                                                                                                                                                  +130
                                                                                                                                                                                                                                                  +131
                                                                                                                                                                                                                                                  +132
                                                                                                                                                                                                                                                  +133
                                                                                                                                                                                                                                                  +134
                                                                                                                                                                                                                                                  +135
                                                                                                                                                                                                                                                  +136
                                                                                                                                                                                                                                                  +137
                                                                                                                                                                                                                                                  +138
                                                                                                                                                                                                                                                  +139
                                                                                                                                                                                                                                                  +140
                                                                                                                                                                                                                                                  +141
                                                                                                                                                                                                                                                  +142
                                                                                                                                                                                                                                                  +143
                                                                                                                                                                                                                                                  +144
                                                                                                                                                                                                                                                  +145
                                                                                                                                                                                                                                                  +146
                                                                                                                                                                                                                                                  +147
                                                                                                                                                                                                                                                  +148
                                                                                                                                                                                                                                                  +149
                                                                                                                                                                                                                                                  +150
                                                                                                                                                                                                                                                  +151
                                                                                                                                                                                                                                                  +152
                                                                                                                                                                                                                                                  +153
                                                                                                                                                                                                                                                  +154
                                                                                                                                                                                                                                                  +155
                                                                                                                                                                                                                                                  +156
                                                                                                                                                                                                                                                  +157
                                                                                                                                                                                                                                                  +158
                                                                                                                                                                                                                                                  +159
                                                                                                                                                                                                                                                  +160
                                                                                                                                                                                                                                                  +161
                                                                                                                                                                                                                                                  +162
                                                                                                                                                                                                                                                  +163
                                                                                                                                                                                                                                                  +164
                                                                                                                                                                                                                                                  +165
                                                                                                                                                                                                                                                  +166
                                                                                                                                                                                                                                                  +167
                                                                                                                                                                                                                                                  +168
                                                                                                                                                                                                                                                  +169
                                                                                                                                                                                                                                                  +170
                                                                                                                                                                                                                                                  +171
                                                                                                                                                                                                                                                  +172
                                                                                                                                                                                                                                                  +173
                                                                                                                                                                                                                                                  +174
                                                                                                                                                                                                                                                  +175
                                                                                                                                                                                                                                                  +176
                                                                                                                                                                                                                                                  +177
                                                                                                                                                                                                                                                  +178
                                                                                                                                                                                                                                                  +179
                                                                                                                                                                                                                                                  +180
                                                                                                                                                                                                                                                  +181
                                                                                                                                                                                                                                                  +182
                                                                                                                                                                                                                                                  +183
                                                                                                                                                                                                                                                  +184
                                                                                                                                                                                                                                                  +185
                                                                                                                                                                                                                                                  +186
                                                                                                                                                                                                                                                  +187
                                                                                                                                                                                                                                                  +188
                                                                                                                                                                                                                                                  +189
                                                                                                                                                                                                                                                  +190
                                                                                                                                                                                                                                                  +191
                                                                                                                                                                                                                                                  +192
                                                                                                                                                                                                                                                  +193
                                                                                                                                                                                                                                                  +194
                                                                                                                                                                                                                                                  +195
                                                                                                                                                                                                                                                  +196
                                                                                                                                                                                                                                                  +197
                                                                                                                                                                                                                                                  +198
                                                                                                                                                                                                                                                  +199
                                                                                                                                                                                                                                                  +200
                                                                                                                                                                                                                                                  +201
                                                                                                                                                                                                                                                  +202
                                                                                                                                                                                                                                                  +203
                                                                                                                                                                                                                                                  +204
                                                                                                                                                                                                                                                  +205
                                                                                                                                                                                                                                                  +206
                                                                                                                                                                                                                                                  +207
                                                                                                                                                                                                                                                  +208
                                                                                                                                                                                                                                                  +209
                                                                                                                                                                                                                                                  +210
                                                                                                                                                                                                                                                  +211
                                                                                                                                                                                                                                                  +212
                                                                                                                                                                                                                                                  +213
                                                                                                                                                                                                                                                  +214
                                                                                                                                                                                                                                                  +215
                                                                                                                                                                                                                                                  +216
                                                                                                                                                                                                                                                  +217
                                                                                                                                                                                                                                                  +218
                                                                                                                                                                                                                                                  +219
                                                                                                                                                                                                                                                  +220
                                                                                                                                                                                                                                                  +221
                                                                                                                                                                                                                                                  +222
                                                                                                                                                                                                                                                  +223
                                                                                                                                                                                                                                                  +224
                                                                                                                                                                                                                                                  +225
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  //! Assert expression.is_ok() is true.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * If true, return `()`.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * Otherwise, call [`panic!`] with a message and the values of the
                                                                                                                                                                                                                                                  +//!   expressions with their debug representations.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # Examples
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! ```rust
                                                                                                                                                                                                                                                  +//! # #[macro_use] extern crate assertables;
                                                                                                                                                                                                                                                  +//! # use std::panic;
                                                                                                                                                                                                                                                  +//! # fn main() {
                                                                                                                                                                                                                                                  +//! let a: Result<(), i8> = Result::Ok(());
                                                                                                                                                                                                                                                  +//! assert_result_ok!(a);
                                                                                                                                                                                                                                                  +//! //-> ()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! let a: Result<(), i8> = Result::Err(1);
                                                                                                                                                                                                                                                  +//! // Panic with error message
                                                                                                                                                                                                                                                  +//! let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  +//! assert_result_ok!(a);
                                                                                                                                                                                                                                                  +//! //-> panic!
                                                                                                                                                                                                                                                  +//! });
                                                                                                                                                                                                                                                  +//! assert!(result.is_err());
                                                                                                                                                                                                                                                  +//! let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                  +//! let expect = concat!(
                                                                                                                                                                                                                                                  +//!     "assertion failed: `assert_result_ok!(expr)`\n",
                                                                                                                                                                                                                                                  +//!     "   expr label: `a`,\n",
                                                                                                                                                                                                                                                  +//!     "   expr debug: `Err(1)`,\n",
                                                                                                                                                                                                                                                  +//!     " expr.is_ok(): `false`",
                                                                                                                                                                                                                                                  +//! );
                                                                                                                                                                                                                                                  +//! assert_eq!(actual, expect);
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! // Panic with error message
                                                                                                                                                                                                                                                  +//! let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  +//! assert_result_ok!(a, "message");
                                                                                                                                                                                                                                                  +//! //-> panic!
                                                                                                                                                                                                                                                  +//! });
                                                                                                                                                                                                                                                  +//! assert!(result.is_err());
                                                                                                                                                                                                                                                  +//! let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                  +//! let expect = "message";
                                                                                                                                                                                                                                                  +//! assert_eq!(actual, expect);
                                                                                                                                                                                                                                                  +//! # }
                                                                                                                                                                                                                                                  +//! ```
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # Module macros
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_result_ok`](macro@crate::assert_result_ok)
                                                                                                                                                                                                                                                  +//! * [`assert_result_ok_as_result`](macro@crate::assert_result_ok_as_result)
                                                                                                                                                                                                                                                  +//! * [`debug_assert_result_ok`](macro@crate::debug_assert_result_ok)
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +/// Assert an expression.is_ok() is true.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * If true, return Result `Ok(())`.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * Otherwise, return Result `Err` with a diagnostic message.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro provides the same statements as [`assert_result_ok`](macro.assert_result_ok.html),
                                                                                                                                                                                                                                                  +/// except this macro returns a Result, rather than doing a panic.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro is useful for runtime checks, such as checking parameters,
                                                                                                                                                                                                                                                  +/// or sanitizing inputs, or handling different results in different ways.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// # Module macros
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * [`assert_result_ok`](macro@crate::assert_result_ok)
                                                                                                                                                                                                                                                  +/// * [`assert_result_ok_as_result`](macro@crate::assert_result_ok_as_result)
                                                                                                                                                                                                                                                  +/// * [`debug_assert_result_ok`](macro@crate::debug_assert_result_ok)
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +#[macro_export]
                                                                                                                                                                                                                                                  +macro_rules! assert_result_ok_as_result {
                                                                                                                                                                                                                                                  +    ($a:expr $(,)?) => {{
                                                                                                                                                                                                                                                  +        match (&$a) {
                                                                                                                                                                                                                                                  +            a_val => {
                                                                                                                                                                                                                                                  +                let is_ok = a_val.is_ok();
                                                                                                                                                                                                                                                  +                if is_ok {
                                                                                                                                                                                                                                                  +                    Ok(())
                                                                                                                                                                                                                                                  +                } else {
                                                                                                                                                                                                                                                  +                    Err(format!(
                                                                                                                                                                                                                                                  +                        concat!(
                                                                                                                                                                                                                                                  +                            "assertion failed: `assert_result_ok!(expr)`\n",
                                                                                                                                                                                                                                                  +                            "   expr label: `{}`,\n",
                                                                                                                                                                                                                                                  +                            "   expr debug: `{:?}`,\n",
                                                                                                                                                                                                                                                  +                            " expr.is_ok(): `{:?}`",
                                                                                                                                                                                                                                                  +                        ),
                                                                                                                                                                                                                                                  +                        stringify!($a),
                                                                                                                                                                                                                                                  +                        $a,
                                                                                                                                                                                                                                                  +                        is_ok,
                                                                                                                                                                                                                                                  +                    ))
                                                                                                                                                                                                                                                  +                }
                                                                                                                                                                                                                                                  +            }
                                                                                                                                                                                                                                                  +        }
                                                                                                                                                                                                                                                  +    }};
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +#[cfg(test)]
                                                                                                                                                                                                                                                  +mod tests {
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +    #[test]
                                                                                                                                                                                                                                                  +    fn test_assert_result_ok_as_result_x_success() {
                                                                                                                                                                                                                                                  +        let a: Result<(), i8> = Result::Ok(());
                                                                                                                                                                                                                                                  +        let x = assert_result_ok_as_result!(a);
                                                                                                                                                                                                                                                  +        assert_eq!(x, Ok(()));
                                                                                                                                                                                                                                                  +    }
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +    #[test]
                                                                                                                                                                                                                                                  +    fn test_assert_result_ok_as_result_x_failure() {
                                                                                                                                                                                                                                                  +        let a: Result<(), i8> = Result::Err(1);
                                                                                                                                                                                                                                                  +        let x = assert_result_ok_as_result!(a);
                                                                                                                                                                                                                                                  +        assert!(x.is_err());
                                                                                                                                                                                                                                                  +        assert_eq!(
                                                                                                                                                                                                                                                  +            x.unwrap_err(),
                                                                                                                                                                                                                                                  +            concat!(
                                                                                                                                                                                                                                                  +                "assertion failed: `assert_result_ok!(expr)`\n",
                                                                                                                                                                                                                                                  +                "   expr label: `a`,\n",
                                                                                                                                                                                                                                                  +                "   expr debug: `Err(1)`,\n",
                                                                                                                                                                                                                                                  +                " expr.is_ok(): `false`"
                                                                                                                                                                                                                                                  +            )
                                                                                                                                                                                                                                                  +        );
                                                                                                                                                                                                                                                  +    }
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +/// Assert expression.is_ok() is true.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * If true, return `()`.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * Otherwise, call [`panic!`] with a message and the values of the
                                                                                                                                                                                                                                                  +///   expressions with their debug representations.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// # Examples
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// ```rust
                                                                                                                                                                                                                                                  +/// # #[macro_use] extern crate assertables;
                                                                                                                                                                                                                                                  +/// # use std::panic;
                                                                                                                                                                                                                                                  +/// # fn main() {
                                                                                                                                                                                                                                                  +/// let a: Result<(), i8> = Result::Ok(());
                                                                                                                                                                                                                                                  +/// assert_result_ok!(a);
                                                                                                                                                                                                                                                  +/// //-> ()
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// let a: Result<(), i8> = Result::Err(1);
                                                                                                                                                                                                                                                  +/// // Panic with error message
                                                                                                                                                                                                                                                  +/// let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  +/// assert_result_ok!(a);
                                                                                                                                                                                                                                                  +/// //-> panic!
                                                                                                                                                                                                                                                  +/// });
                                                                                                                                                                                                                                                  +/// assert!(result.is_err());
                                                                                                                                                                                                                                                  +/// let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                  +/// let expect = concat!(
                                                                                                                                                                                                                                                  +///     "assertion failed: `assert_result_ok!(expr)`\n",
                                                                                                                                                                                                                                                  +///     "   expr label: `a`,\n",
                                                                                                                                                                                                                                                  +///     "   expr debug: `Err(1)`,\n",
                                                                                                                                                                                                                                                  +///     " expr.is_ok(): `false`",
                                                                                                                                                                                                                                                  +/// );
                                                                                                                                                                                                                                                  +/// assert_eq!(actual, expect);
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// // Panic with error message
                                                                                                                                                                                                                                                  +/// let result = panic::catch_unwind(|| {
                                                                                                                                                                                                                                                  +/// assert_result_ok!(a, "message");
                                                                                                                                                                                                                                                  +/// //-> panic!
                                                                                                                                                                                                                                                  +/// });
                                                                                                                                                                                                                                                  +/// assert!(result.is_err());
                                                                                                                                                                                                                                                  +/// let actual = result.unwrap_err().downcast::<String>().unwrap().to_string();
                                                                                                                                                                                                                                                  +/// let expect = "message";
                                                                                                                                                                                                                                                  +/// assert_eq!(actual, expect);
                                                                                                                                                                                                                                                  +/// # }
                                                                                                                                                                                                                                                  +/// ```
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// # Module macros
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * [`assert_result_ok`](macro@crate::assert_result_ok)
                                                                                                                                                                                                                                                  +/// * [`assert_result_ok_as_result`](macro@crate::assert_result_ok_as_result)
                                                                                                                                                                                                                                                  +/// * [`debug_assert_result_ok`](macro@crate::debug_assert_result_ok)
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +#[macro_export]
                                                                                                                                                                                                                                                  +macro_rules! assert_result_ok {
                                                                                                                                                                                                                                                  +    ($a:expr $(,)?) => ({
                                                                                                                                                                                                                                                  +        match assert_result_ok_as_result!($a) {
                                                                                                                                                                                                                                                  +            Ok(()) => (),
                                                                                                                                                                                                                                                  +            Err(err) => panic!("{}", err),
                                                                                                                                                                                                                                                  +        }
                                                                                                                                                                                                                                                  +    });
                                                                                                                                                                                                                                                  +    ($a:expr, $($message:tt)+) => ({
                                                                                                                                                                                                                                                  +        match assert_result_ok_as_result!($a) {
                                                                                                                                                                                                                                                  +            Ok(()) => (),
                                                                                                                                                                                                                                                  +            Err(_err) => panic!("{}", $($message)+),
                                                                                                                                                                                                                                                  +        }
                                                                                                                                                                                                                                                  +    });
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +/// Assert expression.is_ok() is true.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro provides the same statements as [`assert_result_ok`](macro.assert_result_ok.html),
                                                                                                                                                                                                                                                  +/// except this macro's statements are only enabled in non-optimized
                                                                                                                                                                                                                                                  +/// builds by default. An optimized build will not execute this macro's
                                                                                                                                                                                                                                                  +/// statements unless `-C debug-assertions` is passed to the compiler.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro is useful for checks that are too expensive to be present
                                                                                                                                                                                                                                                  +/// in a release build but may be helpful during development.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// The result of expanding this macro is always type checked.
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// An unchecked assertion allows a program in an inconsistent state to
                                                                                                                                                                                                                                                  +/// keep running, which might have unexpected consequences but does not
                                                                                                                                                                                                                                                  +/// introduce unsafety as long as this only happens in safe code. The
                                                                                                                                                                                                                                                  +/// performance cost of assertions, however, is not measurable in general.
                                                                                                                                                                                                                                                  +/// Replacing `assert*!` with `debug_assert*!` is thus only encouraged
                                                                                                                                                                                                                                                  +/// after thorough profiling, and more importantly, only in safe code!
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// This macro is intended to work in a similar way to
                                                                                                                                                                                                                                                  +/// [`std::debug_assert`](https://doc.rust-lang.org/std/macro.debug_assert.html).
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// # Module macros
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +/// * [`assert_result_ok`](macro@crate::assert_result_ok)
                                                                                                                                                                                                                                                  +/// * [`assert_result_ok`](macro@crate::assert_result_ok)
                                                                                                                                                                                                                                                  +/// * [`debug_assert_result_ok`](macro@crate::debug_assert_result_ok)
                                                                                                                                                                                                                                                  +///
                                                                                                                                                                                                                                                  +#[macro_export]
                                                                                                                                                                                                                                                  +macro_rules! debug_assert_result_ok {
                                                                                                                                                                                                                                                  +    ($($arg:tt)*) => {
                                                                                                                                                                                                                                                  +        if $crate::cfg!(debug_assertions) {
                                                                                                                                                                                                                                                  +            $crate::assert_result_ok!($($arg)*);
                                                                                                                                                                                                                                                  +        }
                                                                                                                                                                                                                                                  +    };
                                                                                                                                                                                                                                                  +}
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/src/lib/assert_result/mod.rs.html b/doc/src/lib/assert_result/mod.rs.html new file mode 100644 index 000000000..11e418cc7 --- /dev/null +++ b/doc/src/lib/assert_result/mod.rs.html @@ -0,0 +1,73 @@ +mod.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +2
                                                                                                                                                                                                                                                  +3
                                                                                                                                                                                                                                                  +4
                                                                                                                                                                                                                                                  +5
                                                                                                                                                                                                                                                  +6
                                                                                                                                                                                                                                                  +7
                                                                                                                                                                                                                                                  +8
                                                                                                                                                                                                                                                  +9
                                                                                                                                                                                                                                                  +10
                                                                                                                                                                                                                                                  +11
                                                                                                                                                                                                                                                  +12
                                                                                                                                                                                                                                                  +13
                                                                                                                                                                                                                                                  +14
                                                                                                                                                                                                                                                  +15
                                                                                                                                                                                                                                                  +16
                                                                                                                                                                                                                                                  +17
                                                                                                                                                                                                                                                  +18
                                                                                                                                                                                                                                                  +19
                                                                                                                                                                                                                                                  +20
                                                                                                                                                                                                                                                  +21
                                                                                                                                                                                                                                                  +22
                                                                                                                                                                                                                                                  +23
                                                                                                                                                                                                                                                  +24
                                                                                                                                                                                                                                                  +25
                                                                                                                                                                                                                                                  +26
                                                                                                                                                                                                                                                  +27
                                                                                                                                                                                                                                                  +28
                                                                                                                                                                                                                                                  +29
                                                                                                                                                                                                                                                  +30
                                                                                                                                                                                                                                                  +31
                                                                                                                                                                                                                                                  +32
                                                                                                                                                                                                                                                  +33
                                                                                                                                                                                                                                                  +34
                                                                                                                                                                                                                                                  +35
                                                                                                                                                                                                                                                  +36
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  //! Assert macros for Result (Ok or Err)
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! These macros help compare a `Result` that is either `Ok`, `Err`.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! The macros use these capabilities:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * implements `.is_ok() -> boolean`
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * implements `.unwrap_ok() -> comparable`
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * implements `.is_err() -> boolean`
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * implements `.unwrap_err() -> comparable`
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # Macros
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_result_ok!(a)`](macro@crate::assert_result_ok) ≈ a.is_ok()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_result_err!(a)`](macro@crate::assert_result_err) ≈ a.is_err()
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # Example
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! ```rust
                                                                                                                                                                                                                                                  +//! # #[macro_use] extern crate assertables;
                                                                                                                                                                                                                                                  +//! # fn main() {
                                                                                                                                                                                                                                                  +//! let a: Result<(), i8> = Result::Ok(());
                                                                                                                                                                                                                                                  +//! assert_result_ok!(a);
                                                                                                                                                                                                                                                  +//! # }
                                                                                                                                                                                                                                                  +//! ```
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +// Assert for Result
                                                                                                                                                                                                                                                  +pub mod assert_result_ok;
                                                                                                                                                                                                                                                  +// pub mod assert_result_ok_eq; //TODO
                                                                                                                                                                                                                                                  +// pub mod assert_result_ok_eq_expr; //TODO
                                                                                                                                                                                                                                                  +pub mod assert_result_err;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/src/lib/assert_set_disjoint.rs.html b/doc/src/lib/assert_set/assert_set_disjoint.rs.html similarity index 89% rename from doc/src/lib/assert_set_disjoint.rs.html rename to doc/src/lib/assert_set/assert_set_disjoint.rs.html index 7879872a7..9a92b02d4 100644 --- a/doc/src/lib/assert_set_disjoint.rs.html +++ b/doc/src/lib/assert_set/assert_set_disjoint.rs.html @@ -1,4 +1,4 @@ -assert_set_disjoint.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_set_disjoint.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_set_eq.rs.html b/doc/src/lib/assert_set/assert_set_eq.rs.html
                                                                                                                                                                                                                                                  similarity index 89%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_set_eq.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_set/assert_set_eq.rs.html
                                                                                                                                                                                                                                                  index ad31d85e2..549129fbd 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_set_eq.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_set/assert_set_eq.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_set_eq.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_set_eq.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_set_joint.rs.html b/doc/src/lib/assert_set/assert_set_joint.rs.html
                                                                                                                                                                                                                                                  similarity index 89%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_set_joint.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_set/assert_set_joint.rs.html
                                                                                                                                                                                                                                                  index 0d0fbb29e..de66ffea3 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_set_joint.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_set/assert_set_joint.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_set_joint.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_set_joint.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_set_ne.rs.html b/doc/src/lib/assert_set/assert_set_ne.rs.html
                                                                                                                                                                                                                                                  similarity index 89%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_set_ne.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_set/assert_set_ne.rs.html
                                                                                                                                                                                                                                                  index a493fdc17..d1c1b8de0 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_set_ne.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_set/assert_set_ne.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_set_ne.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_set_ne.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_set_subset.rs.html b/doc/src/lib/assert_set/assert_set_subset.rs.html
                                                                                                                                                                                                                                                  similarity index 89%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_set_subset.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_set/assert_set_subset.rs.html
                                                                                                                                                                                                                                                  index 149e67ace..35082f900 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_set_subset.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_set/assert_set_subset.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_set_subset.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_set_subset.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_set_superset.rs.html b/doc/src/lib/assert_set/assert_set_superset.rs.html
                                                                                                                                                                                                                                                  similarity index 90%
                                                                                                                                                                                                                                                  rename from doc/src/lib/assert_set_superset.rs.html
                                                                                                                                                                                                                                                  rename to doc/src/lib/assert_set/assert_set_superset.rs.html
                                                                                                                                                                                                                                                  index c7a6be97b..016db0f66 100644
                                                                                                                                                                                                                                                  --- a/doc/src/lib/assert_set_superset.rs.html
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_set/assert_set_superset.rs.html
                                                                                                                                                                                                                                                  @@ -1,4 +1,4 @@
                                                                                                                                                                                                                                                  -assert_set_superset.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +assert_set_superset.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                   2
                                                                                                                                                                                                                                                   3
                                                                                                                                                                                                                                                   4
                                                                                                                                                                                                                                                  diff --git a/doc/src/lib/assert_set/mod.rs.html b/doc/src/lib/assert_set/mod.rs.html
                                                                                                                                                                                                                                                  new file mode 100644
                                                                                                                                                                                                                                                  index 000000000..f9b3a6617
                                                                                                                                                                                                                                                  --- /dev/null
                                                                                                                                                                                                                                                  +++ b/doc/src/lib/assert_set/mod.rs.html
                                                                                                                                                                                                                                                  @@ -0,0 +1,95 @@
                                                                                                                                                                                                                                                  +mod.rs - source
                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                  +2
                                                                                                                                                                                                                                                  +3
                                                                                                                                                                                                                                                  +4
                                                                                                                                                                                                                                                  +5
                                                                                                                                                                                                                                                  +6
                                                                                                                                                                                                                                                  +7
                                                                                                                                                                                                                                                  +8
                                                                                                                                                                                                                                                  +9
                                                                                                                                                                                                                                                  +10
                                                                                                                                                                                                                                                  +11
                                                                                                                                                                                                                                                  +12
                                                                                                                                                                                                                                                  +13
                                                                                                                                                                                                                                                  +14
                                                                                                                                                                                                                                                  +15
                                                                                                                                                                                                                                                  +16
                                                                                                                                                                                                                                                  +17
                                                                                                                                                                                                                                                  +18
                                                                                                                                                                                                                                                  +19
                                                                                                                                                                                                                                                  +20
                                                                                                                                                                                                                                                  +21
                                                                                                                                                                                                                                                  +22
                                                                                                                                                                                                                                                  +23
                                                                                                                                                                                                                                                  +24
                                                                                                                                                                                                                                                  +25
                                                                                                                                                                                                                                                  +26
                                                                                                                                                                                                                                                  +27
                                                                                                                                                                                                                                                  +28
                                                                                                                                                                                                                                                  +29
                                                                                                                                                                                                                                                  +30
                                                                                                                                                                                                                                                  +31
                                                                                                                                                                                                                                                  +32
                                                                                                                                                                                                                                                  +33
                                                                                                                                                                                                                                                  +34
                                                                                                                                                                                                                                                  +35
                                                                                                                                                                                                                                                  +36
                                                                                                                                                                                                                                                  +37
                                                                                                                                                                                                                                                  +38
                                                                                                                                                                                                                                                  +39
                                                                                                                                                                                                                                                  +40
                                                                                                                                                                                                                                                  +41
                                                                                                                                                                                                                                                  +42
                                                                                                                                                                                                                                                  +43
                                                                                                                                                                                                                                                  +44
                                                                                                                                                                                                                                                  +45
                                                                                                                                                                                                                                                  +46
                                                                                                                                                                                                                                                  +47
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  //! Assert macros for comparing set collections.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! These macros help with comparison of set parameters, such as two arrays or
                                                                                                                                                                                                                                                  +//! two vectors. where the item order does not matter, and the item count does
                                                                                                                                                                                                                                                  +//! not matter. These macros convert their inputs into HashSet iterators.
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! For eq & ne:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_set_eq!(a, b)`](macro@crate::assert_set_eq) ≈ set a = set b
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_set_ne!(a, b)`](macro@crate::assert_set_ne) ≈ set a ≠ set b
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! For subset & superset:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_set_subset!(a, b)`](macro@crate::assert_set_subset) ≈ set a ⊆ set b
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_set_superset!(a, b)`](macro@crate::assert_set_superset) ≈ set a ⊇ set b
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! For joint & disjoint:
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_set_joint!(a, b)`](macro@crate::assert_set_joint) ≈ set a ∩ set b ≠ ∅
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! * [`assert_set_disjoint!(a, b)`](macro@crate::assert_set_disjoint) ≈ set a ∩ set b = ∅
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! # Example
                                                                                                                                                                                                                                                  +//!
                                                                                                                                                                                                                                                  +//! ```rust
                                                                                                                                                                                                                                                  +//! # #[macro_use] extern crate assertables;
                                                                                                                                                                                                                                                  +//! # fn main() {
                                                                                                                                                                                                                                                  +//! let a = [1, 2];
                                                                                                                                                                                                                                                  +//! let b = [2, 1];
                                                                                                                                                                                                                                                  +//! assert_set_eq!(&a, &b);
                                                                                                                                                                                                                                                  +//! # }
                                                                                                                                                                                                                                                  +//! ```
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +// Comparisons
                                                                                                                                                                                                                                                  +pub mod assert_set_eq;
                                                                                                                                                                                                                                                  +pub mod assert_set_ne;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +// Overlaps
                                                                                                                                                                                                                                                  +pub mod assert_set_joint;
                                                                                                                                                                                                                                                  +pub mod assert_set_disjoint;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +// Containers
                                                                                                                                                                                                                                                  +pub mod assert_set_subset;
                                                                                                                                                                                                                                                  +pub mod assert_set_superset;
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/src/lib/lib.rs.html b/doc/src/lib/lib.rs.html index 03f60827c..c0947cedd 100644 --- a/doc/src/lib/lib.rs.html +++ b/doc/src/lib/lib.rs.html @@ -385,770 +385,343 @@ 385 386 387 -388 -389 -390 -391 -392 -393 -394 -395 -396 -397 -398 -399 -400 -401 -402 -403 -404 -405 -406 -407 -408 -409 -410 -411 -412 -413 -414 -415 -416 -417 -418 -419 -420 -421 -422 -423 -424 -425 -426 -427 -428 -429 -430 -431 -432 -433 -434 -435 -436 -437 -438 -439 -440 -441 -442 -443 -444 -445 -446 -447 -448 -449 -450 -451 -452 -453 -454 -455 -456 -457 -458 -459 -460 -461 -462 -463 -464 -465 -466 -467 -468 -469 -470 -471 -472 -473 -474 -475 -476 -477 -478 -479 -480 -481 -482 -483 -484 -485 -486 -487 -488 -489 -490 -491 -492 -493 -494 -495 -496 -497 -498 -499 -500 -501 -502 -503 -504 -505 -506 -507 -508 -509 -510 -511 -512 -513 -514 -515 -516 -517 -518 -519 -520 -521 -522 -523 -524 -525 -526 -527 -528 -529 -530 -531 -532 -533 -534 -535 -536 -537 -538 -539 -540 -541 -542 -543 -544 -545 -546 -547 -548 -549 -550 -551 -552 -553 -554 -555 -556 -557 -558 -559 -560 -561 -562 -563 -564 -565 -566 -567 -568 -569 -570 -571 -572 -573 -574 -575 -576 -577 -578 -579 -580 -581 -582 -583 -584 -585 -586 -587 -588 -589 -590 -591 -592 -593 -594 -595 -596 -597 -598 -599 -600 -601 -602 -603 -604 -605 -606 -607 -608 -609 -610 -611 -612 -613 -614 -615 -616 -617 -618 -619 -620 -621 -622 -623 -624 -625 -626 -627 -628 -629 -630 -631 -632 -633 -634 -635 -636 -637 -638 -639 -640 -641 -642 -643 -644 -645 -646 -647 -648 -649 -650 -651 -652 -653 -654 -655 -656 -657 -658 -659
                                                                                                                                                                                                                                                  //! # Assertables: Rust crate of assert macros for testing
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! The `assertables` Rust crate provides many assert macros to improve your
                                                                                                                                                                                                                                                   //! compile-time tests and run-time reliability.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! Crate:
                                                                                                                                                                                                                                                  -//! [https://crates.io/crates/assertables](https://crates.io/crates/assertables)
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! Docs: [https://docs.rs/assertables/](https://docs.rs/assertables/)
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! Repo:
                                                                                                                                                                                                                                                  -//! [https://github.com/sixarm/assertables-rust-crate/](https://github.com/sixarm/assertables-rust-crate/)
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! ## Why use this?
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! When you write Rust tests, then you can use Rust assert macros, such as:
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * Crate: [https://crates.io/crates/assertables](https://crates.io/crates/assertables)
                                                                                                                                                                                                                                                  +//! * Docs: [https://docs.rs/assertables/](https://docs.rs/assertables/)
                                                                                                                                                                                                                                                  +//! * Repo: [https://github.com/sixarm/assertables-rust-crate/](https://github.com/sixarm/assertables-rust-crate/)
                                                                                                                                                                                                                                                  +//! * Contact: [joel@joelparkerhenderson.com](mailto:joel@joelparkerhenderson.com)
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! ## Introduction
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! The Rust programming language provides a few built-in assert macros to test code:
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! ```ignore
                                                                                                                                                                                                                                                  -//! assert_eq!(value1, value2)
                                                                                                                                                                                                                                                  +//! assert!()
                                                                                                                                                                                                                                                  +//! assert_eq!(a, b)
                                                                                                                                                                                                                                                  +//! assert_ne!(a, b)
                                                                                                                                                                                                                                                   //! ```
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! The assertables Rust crate provides many more assert macros for values,
                                                                                                                                                                                                                                                  -//! strings, vectors, paths, readers, commands, and more, such as:
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! The assertables crate provides many more, so you can write smarter tests.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! For values:
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! ```ignore
                                                                                                                                                                                                                                                  -//! // value1 greater than value2
                                                                                                                                                                                                                                                  -//! assert_gt!(value1, value2);
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! // string1 starts with string2
                                                                                                                                                                                                                                                  -//! assert_starts_with!(string1, string2);
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! // regex is match of string
                                                                                                                                                                                                                                                  -//! assert_is_match!(regex, string);
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! // vector1 as set ⊆ vector2 as set
                                                                                                                                                                                                                                                  -//! assert_set_subset!(vector1, vector2);
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! // function1 ok = function2 ok
                                                                                                                                                                                                                                                  -//! assert_fn_ok_eq!(function1, function2);
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! // path1 as string = path2 as string
                                                                                                                                                                                                                                                  -//! assert_fs_read_to_string_eq!(path1, path2);
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! // reader1 as string = reader2 as string
                                                                                                                                                                                                                                                  -//! assert_io_read_to_string_eq!(reader1, reader2);
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! // command1 standard output = command2 standard output
                                                                                                                                                                                                                                                  -//! assert_command_stdout_eq!(command1, command2);
                                                                                                                                                                                                                                                  +//! assert_gt!(a, b)
                                                                                                                                                                                                                                                  +//! assert_lt!(a, b)
                                                                                                                                                                                                                                                   //! ```
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! See below for the complete list of all the assert macros.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! For numbers:
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! ```ignore
                                                                                                                                                                                                                                                  +//! assert_in_delta!(a, b, delta)
                                                                                                                                                                                                                                                  +//! assert_in_epsilon!(a, b, epsilon)
                                                                                                                                                                                                                                                  +//! ```
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! For strings:
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! ```ignore
                                                                                                                                                                                                                                                  +//! assert_starts_with!(a, b)
                                                                                                                                                                                                                                                  +//! assert_ends_with!(a, b)
                                                                                                                                                                                                                                                  +//! ```
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! For matching:
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! ```ignore
                                                                                                                                                                                                                                                  +//! assert_contains!(a, b)
                                                                                                                                                                                                                                                  +//! assert_is_match!(a, b)
                                                                                                                                                                                                                                                  +//! ```
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! For collections such as arrays, vectors, maps, sets:
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! ```ignore
                                                                                                                                                                                                                                                  +//! assert_set_subset!(a, b)
                                                                                                                                                                                                                                                  +//! assert_set_disjoint!(a, b)
                                                                                                                                                                                                                                                  +//! ```
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! For file system paths and input/output readers:
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! ```ignore
                                                                                                                                                                                                                                                  +//! assert_fs_read_to_string_eq!(path1, path2)
                                                                                                                                                                                                                                                  +//! assert_io_read_to_string_eq!(reader1, reader2)
                                                                                                                                                                                                                                                  +//! ```
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! For command capture of standard output and standard error:
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! ```ignore
                                                                                                                                                                                                                                                  +//! assert_command_stdout_eq!(command1 stdout = command2 stdout);
                                                                                                                                                                                                                                                  +//! assert_command_stderr_eq!(command1, command2);
                                                                                                                                                                                                                                                  +//! ```
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! ### Benefits
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * Your tests are more purposeful and powerful, which helps your code be more
                                                                                                                                                                                                                                                  -//!   reliable.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * Your assert failures provide more information, which helps you
                                                                                                                                                                                                                                                  -//!   troubleshoot faster.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * You gain runtime asserts, which helps you with validations and
                                                                                                                                                                                                                                                  -//!   verifications.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * Your tests are more purposeful and powerful. This helps your code be more
                                                                                                                                                                                                                                                  +//! reliable.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * Your assert failures provide more information. This helps you
                                                                                                                                                                                                                                                  +//! troubleshoot faster.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * You gain runtime asserts. This helps you with validations and
                                                                                                                                                                                                                                                  +//! verifications.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! ### Features
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! * Easy to use: each macro is well-documented with runnable examples and
                                                                                                                                                                                                                                                  -//!   tests.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! tests.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! * Zero overhead: if you don't use a macro, then it's never compiled into
                                                                                                                                                                                                                                                  -//!   your code.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * Three forms: `assert_*` for development, `debug_assert_*` for debugging,
                                                                                                                                                                                                                                                  -//!   and `assert_*_as_result` for production.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! your code.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * Zero dependencies: the crate has no release dependencies, and just a short list of development dependencies.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! ### Forms
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! Assertables macros come in three forms:
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * Panic macro: `assert_*` is for typical test uses with `cargo test`.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * Debug macro: `debug_assert_*` is for runtime diagnostic configuration.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * Result macro:  `assert_*_as_result` is for runtime production configuration, such as for site reliability engineering, chaos engineering, validations, verifications, sanitizations, and more.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! ### Naming conventions
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! Abbreviations:
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * `eq` ≈ equal
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * `ne` ≈ not equal.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * `lt` ≈ less than
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * `le` ≈ less than or equal.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * `gt` ≈ greater than
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * `ge` ≈ greater than or equal.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! Shorthands:
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * `path` ≈ implements `AsRef<Path>` such as `std::path::PathBuf`.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * `reader` ≈ implements method `.read_to_string()` such as `std::io::Read`.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * `matcher` ≈ implements `.is_match(…)` such as `regex::Regex`.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * `containee` ≈ usable inside `.contains(…)` such as a
                                                                                                                                                                                                                                                  +//!   `std::string::String` substring.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * `set` ≈ a collection such as `::std::collections::BTreeSet`.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * `bag` ≈ a collection such as `::std::collections::BTreeMap` which has
                                                                                                                                                                                                                                                  +//!   key counts.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! ## Complete list of assert macros
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! ### assert_* for values
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! Compare values:
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! * `assert_eq!(a, b)` ≈ a = b
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! * `assert_ne!(a, b)` ≈ a ≠ b
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! * `assert_ge!(a, b)` ≈ a ≥ b
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! * `assert_gt!(a, b)` ≈ a > b
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! * `assert_le!(a, b)` ≈ a ≤ b
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! * `assert_lt!(a, b)` ≈ a < b
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! Compare values by using nearness:
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! ## For infix operators
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! Compare values by using an infix value operator:
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * `assert_infix!(a == b)` ≈ a == b
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * `assert_infix!(a != b)` ≈ a ≠ b
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * `assert_infix!(a < b)` ≈ a < b
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * `assert_infix!(a <= b)` ≈ a ≤ b
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * `assert_infix!(a > b)` ≈ a > b
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * `assert_infix!(a >= b)` ≈ a ≥ b
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! Relate values by using an infix logical operator:
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * `assert_infix!(a & b)` ≈ a ∧ b ≈ a AND b
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * `assert_infix!(a | b)` ≈ a ∨ b ≈ a OR b
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * `assert_infix!(a ^ b)` ≈ a ⊻ b ≈ a XOR b
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * `assert_infix!(a && b)` ≈ a …∧ b ≈ a lazy AND b
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * `assert_infix!(a || b)` ≈ a …∨ b ≈ a lazy OR b
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! ### For nearness
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! Compare values by using nearness math conventions:
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! * `assert_in_delta!(a, b, delta)` ≈ | a - b | ≤ delta
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! * `assert_in_epsilon(a, b, epsilon)` ≈ | a - b | ≤ epsilon * min(a, b)
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! ### assert_* for strings and matchers
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! ### For strings
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! These macros help with strings and also other structures that provide
                                                                                                                                                                                                                                                   //! matchers such as `starts_with`, `ends_width`, `contains`, and `is_match`.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! Each macro also has a corresponding `not` version.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! * `assert_starts_with(a, b)` ≈ a.starts_with(b)
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_not_starts_with(a, b)` ≈ !a.starts_with(b)
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! * `assert_ends_with(a, b)` ≈ a.ends_with(b)
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_not_ends_with(a, b)` ≈ !a.ends_with(b)
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! * `assert_contains(container, containee)` ≈ container.contains(containee)
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_not_contains(container, containee)` ≈
                                                                                                                                                                                                                                                  -//!   !container.contains(containee)
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! * `assert_is_match(matcher, matchee)` ≈ matcher.is_match(matchee)
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_not_match(matcher, matchee)` ≈ !matcher.is_match(matchee)
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! ### assert_set_* for set collection comparisons
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! These macros help with comparison of set parameters, such as two arrays or
                                                                                                                                                                                                                                                  -//! two vectors. where the item order does not matter, and the item count does
                                                                                                                                                                                                                                                  -//! not matter. These macros convert their inputs into HashSet iterators.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_set_eq!(a, b)` ≈ set a = set b
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_set_ne!(a, b)` ≈ set a ≠ set b
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_set_subset!(a, b)` ≈ set a ⊆ set b
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_set_superset!(a, b)` ≈ set a ⊇ set b
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_set_joint!(a, b)` ≈ set a ∩ set b ≠ ∅
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_set_disjoint!(a, b)` ≈ set a ∩ set b = ∅
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! ### assert_bag_* for bag collection comparisons
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! These macros help with comparison of bag parameters, such as comparison of
                                                                                                                                                                                                                                                  -//! two arrays or two vectors, where the item order does not matter, and the
                                                                                                                                                                                                                                                  -//! item count does matter. These macros convert their inputs into HashMap
                                                                                                                                                                                                                                                  -//! iterators.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_bag_eq(a, b)` ≈ bag a = bag b
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_bag_ne(a, b)` ≈ bag a ≠ bag b
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_bag_subbag(a, b)` ≈ bag a ⊆ bag b
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_bag_superbag(a, b)` ≈ bag a ⊇ bag b
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! ### assert_fn_* for function return-value comparisons
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! Compare a function with another function:
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_eq!(function1, function2)` ≈ function1() = function2()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_ne!(function1, function2)` ≈ function1() ≠ function2()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_ge!(function1, function2)` ≈ function1() ≥ function2()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_gt!(function1, function2)` ≈ function1() > function2()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_le!(function1, function2)` ≈ function1() ≤ function2()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_lt!(function1, function2)` ≈ function1() < function2()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! Compare a function with an expression:
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_eq_expr!(function, expr)` ≈ function() = expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_ne_expr!(function, expr)` ≈ function() ≠ expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_ge_expr!(function, expr)` ≈ function() ≥ expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_gt_expr!(function, expr)` ≈ function() > expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_le_expr!(function, expr)` ≈ function() ≤ expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_lt_expr!(function, expr)` ≈ function() < expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! ### assert_fn_ok_* for Result Ok() comparisons
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! Compare a function Ok() with another function Ok():
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_ok_eq!(function1, function2)` ≈ function1().ok().unwrap() = function2().ok().unwrap()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_ok_ne!(function1, function2)` ≈ function1().ok().unwrap() ≠ function2().ok().unwrap()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_ok_ge!(function1, function2)` ≈ function1().ok().unwrap() ≥ function2().ok().unwrap()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_ok_gt!(function1, function2)` ≈ function1().ok().unwrap() > function2().ok().unwrap()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_ok_le!(function1, function2)` ≈ function1().ok().unwrap() ≤ function2().ok().unwrap()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_ok_lt!(function1, function2)` ≈ function1().ok().unwrap() < function2().ok().unwrap()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! Compare a function Ok() with an expression:
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_ok_eq_expr!(function, expr)` ≈ function().ok().unwrap() = expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_ok_ne_expr!(function, expr)` ≈ function().ok().unwrap() ≠ expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_ok_ge_expr!(function, expr)` ≈ function().ok().unwrap() ≥ expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_ok_gt_expr!(function, expr)` ≈ function().ok().unwrap() > expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_ok_le_expr!(function, expr)` ≈ function().ok().unwrap() ≤ expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_ok_lt_expr!(function, expr)` ≈ function().ok().unwrap() < expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! ### assert_fn_err_* for function Err() comparisons
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! Compare a function Err() with another function Err():
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_err_eq!(function1, function2)` ≈ function1().unwrap_err() = function2().unwrap_err()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_err_ne!(function1, function2)` ≈ function1().unwrap_err() ≠ function2().unwrap_err()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_err_ge!(function1, function2)` ≈ function1().unwrap_err() ≥ function2().unwrap_err()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_err_gt!(function1, function2)` ≈ function1().unwrap_err() > function2().unwrap_err()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_err_le!(function1, function2)` ≈ function1().unwrap_err() ≤ function2().unwrap_err()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_err_lt!(function1, function2)` ≈ function1().unwrap_err() < function2().unwrap_err()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! Compare a function Err() with an expression:
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_err_eq!(function, expr)` ≈ function().unwrap_err() = expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_err_ne!(function, expr)` ≈ function().unwrap_err() ≠ expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_err_ge!(function, expr)` ≈ function().unwrap_err() ≥ expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_err_gt!(function, expr)` ≈ function().unwrap_err() > expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_err_le!(function, expr)` ≈ function().unwrap_err() ≤ expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fn_err_lt!(function, expr)` ≈ function().unwrap_err() < expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! ### assert_fs_read_to_string_* for std::fs path comparisons
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! These macros help with file system paths, such as disk files, `Path`, `PathBuf`,
                                                                                                                                                                                                                                                  -//! the trait `AsRef<Path>`, and anything that is readable via
                                                                                                                                                                                                                                                  -//! `std::fs::read_to_string(…)`.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! Compare a path with another path:
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fs_read_to_string_eq!(path1, path2)` ≈ std::fs::read_to_string(path1) = std::fs::read_to_string(path2)
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fs_read_to_string_ne!(path1, path2)` ≈ std::fs::read_to_string(path1) ≠ std::fs::read_to_string(path2)
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fs_read_to_string_ge!(path1, path2)` ≈ std::fs::read_to_string(path1) ≥ std::fs::read_to_string(path2)
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fs_read_to_string_gt!(path1, path2)` ≈ std::fs::read_to_string(path1) > std::fs::read_to_string(path2)
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fs_read_to_string_le!(path1, path2)` ≈ std::fs::read_to_string(path1) ≤ std::fs::read_to_string(path2)
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fs_read_to_string_lt!(path1, path2)` ≈ std::fs::read_to_string(path1) < std::fs::read_to_string(path2)
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! Compare a path with an expression:
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fs_read_to_string_eq_expr(path, expr)` ≈ std::fs::read_to_string(path) = expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fs_read_to_string_ne_expr(path, expr)` ≈ std::fs::read_to_string(path) ≠ expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fs_read_to_string_ge_expr(path, expr)` ≈ std::fs::read_to_string(path) ≥ expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fs_read_to_string_gt_expr(path, expr)` ≈ std::fs::read_to_string(path) > expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fs_read_to_string_le_expr(path, expr)` ≈ std::fs::read_to_string(path) ≤ expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fs_read_to_string_lt_expr(path, expr)` ≈ std::fs::read_to_string(path) < expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! Compare a path with its contents:
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fs_read_to_string_contains(path, containee)` ≈ std::fs::read_to_string(path).contains(containee)
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_fs_read_to_string_matches(path, matcher)` ≈ matcher.is_match(std::fs::read_to_string(path))
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! ### assert_io_read_to_string_* for std::io::Read comparisons
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! These macros help with readers, such as file handles, byte arrays, input
                                                                                                                                                                                                                                                  -//! streams, and the trait std::io::Read.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! Compare a reader with another reader:
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_io_read_to_string_eq!(reader1, reader2)` ≈ reader1.read_to_string() = reader2.read_to_string()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_io_read_to_string_ne!(reader1, reader2)` ≈ reader1.read_to_string() ≠ reader2.read_to_string()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_io_read_to_string_ge!(reader1, reader2)` ≈ reader1.read_to_string() ≥ reader2.read_to_string()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_io_read_to_string_gt!(reader1, reader2)` ≈ reader1.read_to_string() > reader2.read_to_string()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_io_read_to_string_le!(reader1, reader2)` ≈ reader1.read_to_string() ≤ reader2.read_to_string()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_io_read_to_string_lt!(reader1, reader2)` ≈ reader1.read_to_string() < reader2.read_to_string()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! Compare a reader with an expression:
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_io_read_to_string_eq_expr(reader, expr)` ≈ reader.read_to_string() = expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_io_read_to_string_ne_expr(reader, expr)` ≈ reader.read_to_string() ≠ expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_io_read_to_string_ge_expr(reader, expr)` ≈ reader.read_to_string() ≥ expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_io_read_to_string_gt_expr(reader, expr)` ≈ reader.read_to_string() > expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_io_read_to_string_le_expr(reader, expr)` ≈ reader.read_to_string() ≤ expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_io_read_to_string_lt_expr(reader, expr)` ≈ reader.read_to_string() < expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! Compare a reader with its contents:
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_io_read_to_string_contains(reader, containee)` ≈ reader.read_to_string().contains(containee)
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_io_read_to_string_matches(reader, matcher)` ≈ matcher.is_match(reader.read_to_string())
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! ### assert_command_* for process command comparisons
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! Compare command standard output string:
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_command_stdout_eq!(command1, command2)` ≈ command1 stdout = command2 stdout
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_command_stdout_eq_expr!(command, expr)` ≈ command stdout = expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_command_stdout_contains!(command, containee)` ≈ command stdout contains containee
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_command_stdout_is_match!(command, matcher)` ≈ command stdout is a matcher match
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! Compare command standard error string:
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_command_stderr_eq!(command1, command2)` ≈ command1 stderr = command2 stderr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_command_stderr_eq_expr!(command, expr)` ≈ command stderr = expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_command_stderr_contains!(command, containee)` ≈ command stderr contains containee
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_command_stderr_is_match!(command, matcher)` ≈ command stderr is a matcher match
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! ### assert_program_args_* for process command comparisons created via program name and args interator
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! Compare command using program and arguments to standard output:
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_program_args_stdout_eq!(program1, args1, program2, args2)` ≈ command using program1 and args1 to stdout = command2 with program2 and args2 to stdout
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_program_args_stdout_eq_expr!(program, args, expr)` ≈ command using program and args to stdout = expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_program_args_stdout_contains!(program, args, containee)` ≈ command using program and args to stdout contains containee
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_program_args_stdout_is_match!(program, args, matcher)` ≈ matcher is match with command using program and args
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! Compare command using program and arguments to standard output:
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_program_args_stderr_eq!(program1, args1, program2, args2)` ≈ command using program1 and args1 to stderr = command2 with program2 and args2 to stderr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_program_args_stderr_eq_expr!(program, args, expr)` ≈ command using program and args to stderr = expr
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_program_args_stderr_contains!(program, args, containee)` ≈ command using program and args to stderr contains containee
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `assert_program_args_stderr_is_match!(program, args, matcher)` ≈ matcher is match with command using program and args
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! ## Naming conventions
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! Abbreviations:
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `eq` ≈ equal
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `ne` ≈ not equal.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `ge` ≈ greater than or equal.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `gt` ≈ greater than
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `le` ≈ less than or equal.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `lt` ≈ less than
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! Shorthands:
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `path` ≈ implements `AsRef<Path>` such as `std::path::PathBuf`.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `reader` ≈ implements method `.read_to_string()` such as `std::io::Read`.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `matcher` ≈ implements `.is_match(…)` such as `regex::Regex`.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `containee` ≈ usable inside `.contains(…)` such as a `std::string::String`
                                                                                                                                                                                                                                                  -//!   substring.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `set` ≈ a collection such as `::std::collections::BTreeSet`.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * `bag` ≈ a collection such as `::std::collections::BTreeMap` which has key
                                                                                                                                                                                                                                                  -//!   counts.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! ### For much more
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! There are many more macros that are conveniently grouped into modules.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! For enums:
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * [`assert_option`] for `Option` (`Some`, `None`)
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * [`assert_result`] for `Result` (`Ok`, `Err`)
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! For collections, such as arrays, vectors, lists, maps:
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * [`assert_set`] for set collections
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * [`assert_bag`] for bag collections
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! For functions:
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * [`assert_fn`] for functions in general.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * [`assert_fn_ok`] for functions that return Result::Ok.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * [`assert_fn_err`] for functions that return Result::Err.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! For readers:
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * [`assert_fs_read_to_string`] for file system path contents.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * [`assert_io_read_to_string`] for input/output reader streams.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! For external calls:
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * [`assert_command`] for commands and their stdout & stderr.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * [`assert_program_args`] for programs with args and their stdout & stderr.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! ## Forms
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! ### Forms for panic! versus Err()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! The assert macros have three forms that you can use depending on your goals:
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! ```ignore
                                                                                                                                                                                                                                                   //! assert_gt!(a, b); // return () or panic!(…), for typical compile-time testing
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! debug_assert_gt!(a, b); // return () or panic!(…), for a non-optimized runtime
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! assert_gt_as_result!(a, b); // return Result Ok(()) or Err(…), for any runtime
                                                                                                                                                                                                                                                   //! ```
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! ### Forms for messages
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! The assert macros have forms for default messages versus custom messages.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! ```ignore
                                                                                                                                                                                                                                                   //! assert_gt!(1, 2); // panic!("assertion failed: assert_gt(1, 2)…")
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! assert_gt!(1, 2, "message"); // panic!("message")
                                                                                                                                                                                                                                                   //! ```
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! ### Forms for comparing an other versus an expression
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! Some assert macros have forms for comparing an other versus an expression:
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! ```ignore
                                                                                                                                                                                                                                                   //! assert_io_read_to_string_eq!(reader1, reader2); // reader1.read_to_string() = reader2.read_to_string()
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! assert_io_read_to_string_eq_expr!(reader, expr); // reader1.read_to_string() = expr
                                                                                                                                                                                                                                                   //! ```
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! ## Changes summary
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! ### Version 8.x top changes
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! ## Change highlights
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! ### Version 8
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! 8.2:
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * Add `assert_infix`
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * Refactor into submodules for better discoverability and testability.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! 8.1:
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * Add Result macros `assert_result_ok` and `assert_result_err`
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * Add Option macros `assert_option_some` and `assert_option_none`
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! 8.0:
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! * Add `assert_fs_read_to_string_*` macros for comparing files.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * Rename `assert_read_to_string_*` macros to `assert_io_read_to_string_*`.
                                                                                                                                                                                                                                                  -//!   If you use these macros, then please update your code to use the new
                                                                                                                                                                                                                                                  -//!   naming convention.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * Add `rustdoc` documentation for all modules.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! ### Version 7.x top changes
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * Breaking change: rename `assert_read_to_string_*` macros to `assert_io_read_to_string_*`. If you use these macros, then please update your code to use the new naming convention.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! ### Version 7
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! * Add `assert_in_delta`, `assert_in_epsilon`.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! * Add `assert_fn_*` macros with multiple arities.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! * Add `cargo release` for optimized tagged releases.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! ### Version 6.x top changes
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//! * Add `assert_starts_with`, `assert_ends_with`, `assert_contains`,
                                                                                                                                                                                                                                                  -//!   `assert_is_match`.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! ### Version 6
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! * Add `assert_starts_with`, `assert_ends_with`, `assert_contains`, `assert_is_match`.
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! * Add `debug_assert_*` macros everywhere.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! * Add `GPL-3.0` license.
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! ## Tracking
                                                                                                                                                                                                                                                  -//!
                                                                                                                                                                                                                                                  +//! 
                                                                                                                                                                                                                                                   //! * Package: assertables-rust-crate
                                                                                                                                                                                                                                                  -//! * Version: 8.0.2
                                                                                                                                                                                                                                                  +//! * Version: 8.2.0
                                                                                                                                                                                                                                                   //! * Created: 2021-03-30T15:47:49Z
                                                                                                                                                                                                                                                  -//! * Updated: 2024-09-03T13:39:09Z
                                                                                                                                                                                                                                                  +//! * Updated: 2024-09-04T20:21:53Z
                                                                                                                                                                                                                                                   //! * License: MIT or Apache-2.0 or GPL-2.0 or GPL-3.0 or contact us for more
                                                                                                                                                                                                                                                   //! * Contact: Joel Parker Henderson (joel@sixarm.com)
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  @@ -1166,7 +739,6 @@
                                                                                                                                                                                                                                                   // Assert value nearness
                                                                                                                                                                                                                                                   pub mod assert_in_delta;
                                                                                                                                                                                                                                                   pub mod assert_in_epsilon;
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                   // Assert value matching
                                                                                                                                                                                                                                                   pub mod assert_contains;
                                                                                                                                                                                                                                                   pub mod assert_ends_with;
                                                                                                                                                                                                                                                  @@ -1177,143 +749,26 @@
                                                                                                                                                                                                                                                   pub mod assert_not_starts_with;
                                                                                                                                                                                                                                                   pub mod assert_starts_with;
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -// Assertable iterator-related set-based comparison
                                                                                                                                                                                                                                                  -pub mod assert_set_disjoint;
                                                                                                                                                                                                                                                  -pub mod assert_set_eq;
                                                                                                                                                                                                                                                  -pub mod assert_set_joint;
                                                                                                                                                                                                                                                  -pub mod assert_set_ne;
                                                                                                                                                                                                                                                  -pub mod assert_set_subset;
                                                                                                                                                                                                                                                  -pub mod assert_set_superset;
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -// Assertable iterator-related bag-based comparison
                                                                                                                                                                                                                                                  -pub mod assert_bag_eq;
                                                                                                                                                                                                                                                  -pub mod assert_bag_ne;
                                                                                                                                                                                                                                                  -pub mod assert_bag_subbag;
                                                                                                                                                                                                                                                  -pub mod assert_bag_superbag;
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -// Assert function return
                                                                                                                                                                                                                                                  -pub mod assert_fn_eq;
                                                                                                                                                                                                                                                  -pub mod assert_fn_eq_expr;
                                                                                                                                                                                                                                                  -pub mod assert_fn_ge;
                                                                                                                                                                                                                                                  -pub mod assert_fn_ge_expr;
                                                                                                                                                                                                                                                  -pub mod assert_fn_gt;
                                                                                                                                                                                                                                                  -pub mod assert_fn_gt_expr;
                                                                                                                                                                                                                                                  -pub mod assert_fn_le;
                                                                                                                                                                                                                                                  -pub mod assert_fn_le_expr;
                                                                                                                                                                                                                                                  -pub mod assert_fn_lt;
                                                                                                                                                                                                                                                  -pub mod assert_fn_lt_expr;
                                                                                                                                                                                                                                                  -pub mod assert_fn_ne;
                                                                                                                                                                                                                                                  -pub mod assert_fn_ne_expr;
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -// Assert function Ok()
                                                                                                                                                                                                                                                  -pub mod assert_fn_ok_eq;
                                                                                                                                                                                                                                                  -pub mod assert_fn_ok_eq_expr;
                                                                                                                                                                                                                                                  -pub mod assert_fn_ok_ge;
                                                                                                                                                                                                                                                  -pub mod assert_fn_ok_ge_expr;
                                                                                                                                                                                                                                                  -pub mod assert_fn_ok_gt;
                                                                                                                                                                                                                                                  -pub mod assert_fn_ok_gt_expr;
                                                                                                                                                                                                                                                  -pub mod assert_fn_ok_le;
                                                                                                                                                                                                                                                  -pub mod assert_fn_ok_le_expr;
                                                                                                                                                                                                                                                  -pub mod assert_fn_ok_lt;
                                                                                                                                                                                                                                                  -pub mod assert_fn_ok_lt_expr;
                                                                                                                                                                                                                                                  -pub mod assert_fn_ok_ne;
                                                                                                                                                                                                                                                  -pub mod assert_fn_ok_ne_expr;
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -// Assert function Err()
                                                                                                                                                                                                                                                  -pub mod assert_fn_err_eq;
                                                                                                                                                                                                                                                  -pub mod assert_fn_err_eq_expr;
                                                                                                                                                                                                                                                  -pub mod assert_fn_err_ge;
                                                                                                                                                                                                                                                  -pub mod assert_fn_err_ge_expr;
                                                                                                                                                                                                                                                  -pub mod assert_fn_err_gt;
                                                                                                                                                                                                                                                  -pub mod assert_fn_err_gt_expr;
                                                                                                                                                                                                                                                  -pub mod assert_fn_err_le;
                                                                                                                                                                                                                                                  -pub mod assert_fn_err_le_expr;
                                                                                                                                                                                                                                                  -pub mod assert_fn_err_lt;
                                                                                                                                                                                                                                                  -pub mod assert_fn_err_lt_expr;
                                                                                                                                                                                                                                                  -pub mod assert_fn_err_ne;
                                                                                                                                                                                                                                                  -pub mod assert_fn_err_ne_expr;
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -// Assert std::io read_to_string comparisons
                                                                                                                                                                                                                                                  -pub mod assert_io_read_to_string_contains;
                                                                                                                                                                                                                                                  -pub mod assert_io_read_to_string_eq;
                                                                                                                                                                                                                                                  -pub mod assert_io_read_to_string_eq_expr;
                                                                                                                                                                                                                                                  -pub mod assert_io_read_to_string_ge;
                                                                                                                                                                                                                                                  -pub mod assert_io_read_to_string_ge_expr;
                                                                                                                                                                                                                                                  -pub mod assert_io_read_to_string_gt;
                                                                                                                                                                                                                                                  -pub mod assert_io_read_to_string_gt_expr;
                                                                                                                                                                                                                                                  -pub mod assert_io_read_to_string_le;
                                                                                                                                                                                                                                                  -pub mod assert_io_read_to_string_le_expr;
                                                                                                                                                                                                                                                  -pub mod assert_io_read_to_string_lt;
                                                                                                                                                                                                                                                  -pub mod assert_io_read_to_string_lt_expr;
                                                                                                                                                                                                                                                  -pub mod assert_io_read_to_string_matches;
                                                                                                                                                                                                                                                  -pub mod assert_io_read_to_string_ne;
                                                                                                                                                                                                                                                  -pub mod assert_io_read_to_string_ne_expr;
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -// Assert std::fs read_to_string comparisons
                                                                                                                                                                                                                                                  -pub mod assert_fs_read_to_string_contains;
                                                                                                                                                                                                                                                  -pub mod assert_fs_read_to_string_eq;
                                                                                                                                                                                                                                                  -pub mod assert_fs_read_to_string_eq_expr;
                                                                                                                                                                                                                                                  -pub mod assert_fs_read_to_string_ge;
                                                                                                                                                                                                                                                  -pub mod assert_fs_read_to_string_ge_expr;
                                                                                                                                                                                                                                                  -pub mod assert_fs_read_to_string_gt;
                                                                                                                                                                                                                                                  -pub mod assert_fs_read_to_string_gt_expr;
                                                                                                                                                                                                                                                  -pub mod assert_fs_read_to_string_le;
                                                                                                                                                                                                                                                  -pub mod assert_fs_read_to_string_le_expr;
                                                                                                                                                                                                                                                  -pub mod assert_fs_read_to_string_lt;
                                                                                                                                                                                                                                                  -pub mod assert_fs_read_to_string_lt_expr;
                                                                                                                                                                                                                                                  -pub mod assert_fs_read_to_string_matches;
                                                                                                                                                                                                                                                  -pub mod assert_fs_read_to_string_ne;
                                                                                                                                                                                                                                                  -pub mod assert_fs_read_to_string_ne_expr;
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -// Assert command stdout
                                                                                                                                                                                                                                                  -pub mod assert_command_stdout_eq;
                                                                                                                                                                                                                                                  -pub mod assert_command_stdout_eq_expr;
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -// Assert command stdout specializations
                                                                                                                                                                                                                                                  -pub mod assert_command_stdout_contains;
                                                                                                                                                                                                                                                  -pub mod assert_command_stdout_is_match;
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -// Assert command stderr
                                                                                                                                                                                                                                                  -pub mod assert_command_stderr_eq;
                                                                                                                                                                                                                                                  -pub mod assert_command_stderr_eq_expr;
                                                                                                                                                                                                                                                  +// For maybes
                                                                                                                                                                                                                                                  +pub mod assert_result;
                                                                                                                                                                                                                                                  +pub mod assert_option;
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -// Assert command stderr specializations
                                                                                                                                                                                                                                                  -pub mod assert_command_stderr_contains;
                                                                                                                                                                                                                                                  -pub mod assert_command_stderr_is_match;
                                                                                                                                                                                                                                                  +// For collections
                                                                                                                                                                                                                                                  +pub mod assert_set;
                                                                                                                                                                                                                                                  +pub mod assert_bag;
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -// Assert program args stdout
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stdout_eq;
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stdout_eq_expr;
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stdout_ge;
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stdout_ge_expr;
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stdout_gt;
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stdout_gt_expr;
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stdout_le;
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stdout_le_expr;
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stdout_lt;
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stdout_lt_expr;
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stdout_ne;
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stdout_ne_expr;
                                                                                                                                                                                                                                                  +// For functions
                                                                                                                                                                                                                                                  +pub mod assert_fn;
                                                                                                                                                                                                                                                  +pub mod assert_fn_ok;
                                                                                                                                                                                                                                                  +pub mod assert_fn_err;
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -// Assert program args stdout specializations
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stdout_contains;
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stdout_is_match;
                                                                                                                                                                                                                                                  +// For reading
                                                                                                                                                                                                                                                  +pub mod assert_fs_read_to_string;
                                                                                                                                                                                                                                                  +pub mod assert_io_read_to_string;
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -// Assert program args stderr
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stderr_eq;
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stderr_eq_expr;
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stderr_ge;
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stderr_ge_expr;
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stderr_gt;
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stderr_gt_expr;
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stderr_le;
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stderr_le_expr;
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stderr_lt;
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stderr_lt_expr;
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stderr_ne;
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stderr_ne_expr;
                                                                                                                                                                                                                                                  +// For externals
                                                                                                                                                                                                                                                  +pub mod assert_command;
                                                                                                                                                                                                                                                  +pub mod assert_program_args;
                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                  -// Assert program args stderr specializations
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stderr_contains;
                                                                                                                                                                                                                                                  -pub mod assert_program_args_stderr_is_match;
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  \ No newline at end of file +// Experimental - work in progress - unsupported +pub mod assert_infix;
                                                                                                                                                                                                                                                  \ No newline at end of file diff --git a/help/comparisons/claims/index.md b/help/comparisons/claims/index.md index 9c1d79dc9..e08da3153 100644 --- a/help/comparisons/claims/index.md +++ b/help/comparisons/claims/index.md @@ -10,7 +10,7 @@ There are various Rust crates that provide assert macros: Each of these crates are doing the same surface-level thing as Assertables, by adding new assert macros. -Assertables has two major differences: +Assertables has two major differences: * More assertions @@ -27,8 +27,8 @@ If there's an assertion from any of those crates that you would like us to add t | Match | assert_matches | assert_is_match
                                                                                                                                                                                                                                                  assert_not_match | | Contains | - | assert_contains
                                                                                                                                                                                                                                                  assert_not_contains | | Starts/Ends | - | assert_starts_with
                                                                                                                                                                                                                                                  assert_not_starts_with
                                                                                                                                                                                                                                                  assert_ends_with
                                                                                                                                                                                                                                                  assert_not_ends_with | -| Result | assert_ok
                                                                                                                                                                                                                                                  assert_err
                                                                                                                                                                                                                                                  assert_ok_eq | assert_ok
                                                                                                                                                                                                                                                  assert_err
                                                                                                                                                                                                                                                  TODO | -| Option | assert_some
                                                                                                                                                                                                                                                  assert_none
                                                                                                                                                                                                                                                  assert_some_eq | assert_some
                                                                                                                                                                                                                                                  assert_none
                                                                                                                                                                                                                                                  TODO | +| Result | assert_result_ok
                                                                                                                                                                                                                                                  assert_result_err
                                                                                                                                                                                                                                                  assert_result_ok_eq | assert_result_ok
                                                                                                                                                                                                                                                  assert_result_err
                                                                                                                                                                                                                                                  TODO | +| Option | assert_option_some
                                                                                                                                                                                                                                                  assert_option_none
                                                                                                                                                                                                                                                  assert_option_some_eq | assert_option_some
                                                                                                                                                                                                                                                  assert_option_none
                                                                                                                                                                                                                                                  TODO | | Poll | assert_pending
                                                                                                                                                                                                                                                  assert_ready
                                                                                                                                                                                                                                                  assert_ready_ok
                                                                                                                                                                                                                                                  assert_ready_err
                                                                                                                                                                                                                                                  assert_ready_eq | TODO | | FS Path | - | assert_fs_read_to_string_* | | IO Reader | - | assert_io_read_to_string_* | @@ -40,18 +40,18 @@ If there's an assertion from any of those crates that you would like us to add t ## Assertables has more logic leverage -Assertables makes deliberate design decisions to implement each concept as three macros: +Assertables makes deliberate design decisions to implement each concept as three macros: * The logic macro. This returns a Result and is the most important of the three macros. - + * The panic macro. This is what a typical cargo test uses. - + * The debug macro. This is what a typical runtime debug config uses. Assertables puts all the logic in the logic macro, and developers can use the same logic anywhere they want, even for totally different purposes: * Runtime production analysis using a Result. This works without triggering a panic, and without needing any debug config. - + * Chaos engineering where logic macros can detect dirty input, or missing files, or bad data. This well for UI interactions with users, with fallback files, and with data sanitization. * Custom macro wrapping where developers prefer to write their own syntax for their tests. This works well because the new syntax is just a surface-level addition, and can delegate to the logic macro. diff --git a/src/assert_bag_eq.rs b/src/assert_bag/assert_bag_eq.rs similarity index 99% rename from src/assert_bag_eq.rs rename to src/assert_bag/assert_bag_eq.rs index 3fd4003f1..865823be7 100644 --- a/src/assert_bag_eq.rs +++ b/src/assert_bag/assert_bag_eq.rs @@ -1,5 +1,5 @@ //! Assert a bag is equal to another. -//! +//! //! * If true, return `()`. //! //! * Otherwise, call [`panic!`] in order to print the values of the @@ -50,7 +50,7 @@ //! assert_eq!(actual, expect); //! # } //! ``` -//! +//! //! # Module macros //! //! * [`assert_bag_eq`](macro@crate::assert_bag_eq) diff --git a/src/assert_bag_ne.rs b/src/assert_bag/assert_bag_ne.rs similarity index 100% rename from src/assert_bag_ne.rs rename to src/assert_bag/assert_bag_ne.rs diff --git a/src/assert_bag_subbag.rs b/src/assert_bag/assert_bag_subbag.rs similarity index 100% rename from src/assert_bag_subbag.rs rename to src/assert_bag/assert_bag_subbag.rs diff --git a/src/assert_bag_superbag.rs b/src/assert_bag/assert_bag_superbag.rs similarity index 100% rename from src/assert_bag_superbag.rs rename to src/assert_bag/assert_bag_superbag.rs diff --git a/src/assert_bag/mod.rs b/src/assert_bag/mod.rs new file mode 100644 index 000000000..a0761428c --- /dev/null +++ b/src/assert_bag/mod.rs @@ -0,0 +1,35 @@ +//! Assert macros for comparing bags. +//! +//! These macros help with comparison of bag parameters, such as comparison of +//! two arrays or two vectors, where the item order does not matter, and the +//! item count does matter. These macros convert their inputs into HashMap +//! iterators. +//! +//! For eq & ne: +//! +//! * [`assert_bag_eq!(a, b)`](macro@crate::assert_bag_eq) ≈ bag a = bag b +//! +//! * [`assert_bag_ne!(a, b)`](macro@crate::assert_bag_ne) ≈ bag a ≠ bag b +//! +//! For subbag & superbag: +//! +//! * [`assert_bag_subbag(a, b)`](macro@crate::assert_bag_subbag) ≈ bag a ⊆ bag b +//! +//! * [`assert_bag_superbag!(a, b)`](macro@crate::assert_bag_superbag) ≈ bag a ⊇ bag b +//! +//! +//! # Example +//! +//! ```rust +//! # #[macro_use] extern crate assertables; +//! # fn main() { +//! let a = [1, 1]; +//! let b = [1, 1]; +//! assert_bag_eq!(&a, &b); +//! # } +//! ``` + +pub mod assert_bag_eq; +pub mod assert_bag_ne; +pub mod assert_bag_subbag; +pub mod assert_bag_superbag; diff --git a/src/assert_cmp.rs b/src/assert_cmp.rs deleted file mode 100644 index e54c4edbf..000000000 --- a/src/assert_cmp.rs +++ /dev/null @@ -1,179 +0,0 @@ -//! Assert a comparison operator, such as assert_cmp!(a == b). -/// -/// * If true, return Result `Ok(())`. -/// -/// * Otherwise, return Result `Err` with a diagnostic message. -/// -/// This macro provides the same statements as [`assert_cmp`](macro.assert_cmp.html), -/// except this macro returns a Result, rather than doing a panic. -/// -/// This macro is useful for runtime checks, such as checking parameters, -/// or sanitizing inputs, or handling different results in different ways. -/// -/// # Module macros -/// -/// * [`assert_cmp`](macro@crate::assert_cmp) -/// * [`assert_cmp_as_result`](macro@crate::assert_cmp_as_result) -/// * [`debug_assert_cmp`](macro@crate::debug_assert_cmp) -/// -#[macro_export] -macro_rules! assert_cmp_as_result { - ($x:tt $cmp:tt $y:tt) => {{ - if $x $cmp $y { - Ok(()) - } else { - Err(format!( - concat!( - "assertion failed: `assert_cmp!(x {} y)`\n", - " x label: `{}`,\n", - " x debug: `{:?}`,\n", - " y label: `{}`,\n", - " y debug: `{:?}`\n", - ), - stringify!($cmp), - stringify!($x), - $x, - stringify!($y), - $y, - )) - } - }}; -} - -#[cfg(test)] -mod tests { - - #[test] - fn test_assert_cmp_as_result_x_success() { - let a: i32 = 1; - let b: i32 = 1; - let result = assert_cmp_as_result!(a == b); - assert_eq!(result, Ok(())); - } - - #[test] - fn test_assert_cmp_as_result_x_failure() { - let a: i32 = 1; - let b: i32 = 2; - let x = assert_cmp_as_result!(a == b); - assert!(x.is_err()); - assert_eq!( - x.unwrap_err(), - concat!( - "assertion failed: `assert_cmp!(x == y)`\n", - " x label: `a`,\n", - " x debug: `1`,\n", - " y label: `b`,\n", - " y debug: `2`\n", - ) - ); - } -} - -/// Assert a comparison operator, such as assert_cmp!(a == b). -/// -/// * If true, return `()`. -/// -/// * Otherwise, call [`panic!`] with a message and the values of the -/// expressions with their debug representations. -/// -/// # Examples -/// -/// ```rust -/// # #[macro_use] extern crate assertables; -/// # use std::panic; -/// # fn main() { -/// // Return Ok -/// let a = 1; -/// let b = 1; -/// assert_cmp!(a == b); -/// //-> () -/// -/// let a = 1; -/// let b = 2; -/// // Panic with error message -/// let result = panic::catch_unwind(|| { -/// assert_cmp!(a == b); -/// //-> panic! -/// }); -/// assert!(result.is_err()); -/// let actual = result.unwrap_err().downcast::().unwrap().to_string(); -/// let expect = concat!( -/// "assertion failed: `assert_cmp!(x == y)`\n", -/// " x label: `a`,\n", -/// " x debug: `1`,\n", -/// " y label: `b`,\n", -/// " y debug: `2`\n", -/// ); -/// assert_eq!(actual, expect); -/// -/// // Panic with error message -/// let result = panic::catch_unwind(|| { -/// assert_cmp!(a == b, "message"); -/// //-> panic! -/// }); -/// assert!(result.is_err()); -/// let actual = result.unwrap_err().downcast::().unwrap().to_string(); -/// let expect = "message"; -/// assert_eq!(actual, expect); -/// # } -/// ``` -/// -/// # Module macros -/// -/// * [`assert_cmp`](macro@crate::assert_cmp) -/// * [`assert_cmp_as_result`](macro@crate::assert_cmp_as_result) -/// * [`debug_assert_cmp`](macro@crate::debug_assert_cmp) -/// -#[macro_export] -macro_rules! assert_cmp { - ($x:tt $cmp:tt $y:tt) => { - match assert_cmp_as_result!($x $cmp $y) { - Ok(()) => (), - Err(err) => panic!("{}", err), - } - }; - ($x:tt $cmp:tt $y:tt, $($message:tt)+) => { - match assert_cmp_as_result!($x $cmp $y) { - Ok(()) => (), - Err(_err) => panic!("{}", $($message)+), - } - }; -} - -/// Assert a value is greater than an expression. -/// -/// This macro provides the same statements as [`assert_cmp`](macro.assert_cmp.html), -/// except this macro's statements are only enabled in non-optimized -/// builds by default. An optimized build will not execute this macro's -/// statements unless `-C debug-assertions` is passed to the compiler. -/// -/// This macro is useful for checks that are too expensive to be present -/// in a release build but may be helpful during development. -/// -/// The result of expanding this macro is always type checked. -/// -/// An unchecked assertion allows a program in an inconsistent state to -/// keep running, which might have unexpected consequences but does not -/// introduce unsafety as long as this only happens in safe code. The -/// performance cost of assertions, however, is not measurable in general. -/// Replacing `assert*!` with `debug_assert*!` is thus only encouraged -/// after thorough profiling, and more importantly, only in safe code! -/// -/// This macro is intended to work in a similar way to -/// [`std::debug_assert`](https://doc.rust-lang.org/std/macro.debug_assert.html). -/// -/// # Module macros -/// -/// * [`assert_cmp`](macro@crate::assert_cmp) -/// * [`assert_cmp`](macro@crate::assert_cmp) -/// * [`debug_assert_cmp`](macro@crate::debug_assert_cmp) -/// -#[macro_export] -macro_rules! debug_assert_cmp { - ($($arg:tt)*) => { - if $crate::cfg!(debug_assertions) { - $crate::assert_cmp!($($arg)*); - } - }; -} diff --git a/src/assert_command_stderr_contains.rs b/src/assert_command/assert_command_stderr_contains.rs similarity index 100% rename from src/assert_command_stderr_contains.rs rename to src/assert_command/assert_command_stderr_contains.rs diff --git a/src/assert_command_stderr_eq.rs b/src/assert_command/assert_command_stderr_eq.rs similarity index 100% rename from src/assert_command_stderr_eq.rs rename to src/assert_command/assert_command_stderr_eq.rs diff --git a/src/assert_command_stderr_eq_expr.rs b/src/assert_command/assert_command_stderr_eq_expr.rs similarity index 100% rename from src/assert_command_stderr_eq_expr.rs rename to src/assert_command/assert_command_stderr_eq_expr.rs diff --git a/src/assert_command_stderr_is_match.rs b/src/assert_command/assert_command_stderr_is_match.rs similarity index 100% rename from src/assert_command_stderr_is_match.rs rename to src/assert_command/assert_command_stderr_is_match.rs diff --git a/src/assert_command_stdout_contains.rs b/src/assert_command/assert_command_stdout_contains.rs similarity index 100% rename from src/assert_command_stdout_contains.rs rename to src/assert_command/assert_command_stdout_contains.rs diff --git a/src/assert_command_stdout_eq.rs b/src/assert_command/assert_command_stdout_eq.rs similarity index 100% rename from src/assert_command_stdout_eq.rs rename to src/assert_command/assert_command_stdout_eq.rs diff --git a/src/assert_command_stdout_eq_expr.rs b/src/assert_command/assert_command_stdout_eq_expr.rs similarity index 100% rename from src/assert_command_stdout_eq_expr.rs rename to src/assert_command/assert_command_stdout_eq_expr.rs diff --git a/src/assert_command_stdout_is_match.rs b/src/assert_command/assert_command_stdout_is_match.rs similarity index 100% rename from src/assert_command_stdout_is_match.rs rename to src/assert_command/assert_command_stdout_is_match.rs diff --git a/src/assert_command/mod.rs b/src/assert_command/mod.rs new file mode 100644 index 000000000..f505a3f00 --- /dev/null +++ b/src/assert_command/mod.rs @@ -0,0 +1,58 @@ +//! Assert macros for comparing commands and their stdout & stderr. +//! +//! These macros help with calling external commands, then capturing the +//! standard output stream and standard error stream. +//! +//! These macros have corresponding the macros in the module [`assert_program_args`](module@crate::assert_program_args). +//! +//! Compare command standard output string: +//! +//! * [`assert_command_stdout_eq!(command1, command2)`](macro@crate::assert_command_stdout_eq) ≈ command1 stdout = command2 stdout +//! +//! * [`assert_command_stdout_eq_expr!(command, expr)`](macro@crate::assert_command_stdout_eq_expr) ≈ command stdout = expr +//! +//! * [`assert_command_stdout_contains!(command, containee)`](macro@crate::assert_command_stdout_contains) ≈ command stdout contains containee +//! +//! * [`assert_command_stdout_is_match!(command, matcher)`](macro@crate::assert_command_stdout_is_match) ≈ command stdout is a matcher match +//! +//! Compare command standard error string: +//! +//! * [`assert_command_stderr_eq!(command1, command2)`](macro@crate::assert_command_stderr_eq) ≈ command1 stderr = command2 stderr +//! +//! * [`assert_command_stderr_eq_expr!(command, expr)`](macro@crate::assert_command_stderr_eq_expr) ≈ command stderr = expr +//! +//! * [`assert_command_stderr_contains!(command, containee)`](macro@crate::assert_command_stderr_contains) ≈ command stderr contains containee +//! +//! * [`assert_command_stderr_is_match!(command, matcher)`](macro@crate::assert_command_stderr_is_match) ≈ command stderr is a matcher match +//! +//! +//! # Example +//! +//! ```rust +//! # #[macro_use] extern crate assertables; +//! use std::process::Command; +//! +//! # fn main() { +//! let mut a = Command::new("bin/printf-stdout"); +//! a.args(["%s", "hello"]); +//! let mut b = Command::new("bin/printf-stdout"); +//! b.args(["%s%s%s%s%s", "h", "e", "l", "l", "o"]); +//! assert_command_stdout_eq!(a, b); +//! # } +//! ``` + +// stdout +pub mod assert_command_stdout_eq; +pub mod assert_command_stdout_eq_expr; + +// stdout searches +pub mod assert_command_stdout_contains; +pub mod assert_command_stdout_is_match; + +// stderr +pub mod assert_command_stderr_eq; +pub mod assert_command_stderr_eq_expr; + +// stderr searchers +pub mod assert_command_stderr_contains; +pub mod assert_command_stderr_is_match; diff --git a/src/assert_eq.rs b/src/assert_eq.rs index 9c1965971..8098073a3 100644 --- a/src/assert_eq.rs +++ b/src/assert_eq.rs @@ -13,9 +13,9 @@ //! # Module macro //! //! * [`assert_eq_as_result`](macro@crate::assert_eq_as_result) -//! +//! //! # Rust standard macros -//! +//! //! * [`assert_eq`](https://doc.rust-lang.org/std/macro.assert_eq.html) //! * [`debug_assert_eq`](https://doc.rust-lang.org/std/macro.debug_assert_eq.html) diff --git a/src/assert_fn_eq.rs b/src/assert_fn/assert_fn_eq.rs similarity index 93% rename from src/assert_fn_eq.rs rename to src/assert_fn/assert_fn_eq.rs index 94cb5ece6..b4cd26d90 100644 --- a/src/assert_fn_eq.rs +++ b/src/assert_fn/assert_fn_eq.rs @@ -12,26 +12,26 @@ //! # use std::panic; //! # fn main() { //! // Return Ok -//! let a: i32 = -1; -//! let b: i32 = 1; -//! assert_fn_eq!(i32::abs, a, i32::abs, b); +//! let a: i8 = -1; +//! let b: i8 = 1; +//! assert_fn_eq!(i8::abs, a, i8::abs, b); //! //-> () //! //! // Panic with error message //! let result = panic::catch_unwind(|| { -//! let a: i32 = -1; -//! let b: i32 = 2; -//! assert_fn_eq!(i32::abs, a, i32::abs, b); +//! let a: i8 = -1; +//! let b: i8 = 2; +//! assert_fn_eq!(i8::abs, a, i8::abs, b); //! //-> panic! //! }); //! assert!(result.is_err()); //! let actual = result.unwrap_err().downcast::().unwrap().to_string(); //! let expect = concat!( //! "assertion failed: `assert_fn_eq!(left_function, left_param, right_function, right_param)`\n", -//! " left_function label: `i32::abs`,\n", +//! " left_function label: `i8::abs`,\n", //! " left_param label: `a`,\n", //! " left_param debug: `-1`,\n", -//! " right_function label: `i32::abs`,\n", +//! " right_function label: `i8::abs`,\n", //! " right_param label: `b`,\n", //! " right_param debug: `2`,\n", //! " left: `1`,\n", @@ -41,9 +41,9 @@ //! //! // Panic with error message //! let result = panic::catch_unwind(|| { -//! let a: i32 = -1; -//! let b: i32 = 2; -//! assert_fn_eq!(i32::abs, a, i32::abs, b, "message"); +//! let a: i8 = -1; +//! let b: i8 = 2; +//! assert_fn_eq!(i8::abs, a, i8::abs, b, "message"); //! //-> panic! //! }); //! assert!(result.is_err()); @@ -82,7 +82,7 @@ macro_rules! assert_fn_eq_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ let a_output = $a_function($a_param); let b_output = $b_function($b_param); if a_output == b_output { @@ -231,26 +231,26 @@ mod tests { /// # use std::panic; /// # fn main() { /// // Return Ok -/// let a: i32 = -1; -/// let b: i32 = 1; -/// assert_fn_eq!(i32::abs, a, i32::abs, b); +/// let a: i8 = -1; +/// let b: i8 = 1; +/// assert_fn_eq!(i8::abs, a, i8::abs, b); /// //-> () /// /// // Panic with error message /// let result = panic::catch_unwind(|| { -/// let a: i32 = -1; -/// let b: i32 = 2; -/// assert_fn_eq!(i32::abs, a, i32::abs, b); +/// let a: i8 = -1; +/// let b: i8 = 2; +/// assert_fn_eq!(i8::abs, a, i8::abs, b); /// //-> panic! /// }); /// assert!(result.is_err()); /// let actual = result.unwrap_err().downcast::().unwrap().to_string(); /// let expect = concat!( /// "assertion failed: `assert_fn_eq!(left_function, left_param, right_function, right_param)`\n", -/// " left_function label: `i32::abs`,\n", +/// " left_function label: `i8::abs`,\n", /// " left_param label: `a`,\n", /// " left_param debug: `-1`,\n", -/// " right_function label: `i32::abs`,\n", +/// " right_function label: `i8::abs`,\n", /// " right_param label: `b`,\n", /// " right_param debug: `2`,\n", /// " left: `1`,\n", @@ -260,9 +260,9 @@ mod tests { /// /// // Panic with error message /// let result = panic::catch_unwind(|| { -/// let a: i32 = -1; -/// let b: i32 = 2; -/// assert_fn_eq!(i32::abs, a, i32::abs, b, "message"); +/// let a: i8 = -1; +/// let b: i8 = 2; +/// assert_fn_eq!(i8::abs, a, i8::abs, b, "message"); /// //-> panic! /// }); /// assert!(result.is_err()); @@ -283,7 +283,7 @@ macro_rules! assert_fn_eq { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ match assert_fn_eq_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_eq_expr.rs b/src/assert_fn/assert_fn_eq_expr.rs similarity index 93% rename from src/assert_fn_eq_expr.rs rename to src/assert_fn/assert_fn_eq_expr.rs index ae8271131..eb67de2e8 100644 --- a/src/assert_fn_eq_expr.rs +++ b/src/assert_fn/assert_fn_eq_expr.rs @@ -12,23 +12,23 @@ //! # use std::panic; //! # fn main() { //! // Return Ok -//! let a: i32 = -1; -//! let b: i32 = 1; -//! assert_fn_eq_expr!(i32::abs, a, b); +//! let a: i8 = -1; +//! let b: i8 = 1; +//! assert_fn_eq_expr!(i8::abs, a, b); //! //-> () //! -//! let a: i32 = -1; -//! let b: i32 = 2; +//! let a: i8 = -1; +//! let b: i8 = 2; //! // Panic with error message //! let result = panic::catch_unwind(|| { -//! assert_fn_eq_expr!(i32::abs, a, b); +//! assert_fn_eq_expr!(i8::abs, a, b); //! //-> panic! //! }); //! assert!(result.is_err()); //! let actual = result.unwrap_err().downcast::().unwrap().to_string(); //! let expect = concat!( //! "assertion failed: `assert_fn_eq_expr!(left_function, left_param, right_expr)`\n", -//! " left_function label: `i32::abs`,\n", +//! " left_function label: `i8::abs`,\n", //! " left_param label: `a`,\n", //! " left_param debug: `-1`,\n", //! " right_expr label: `b`,\n", @@ -40,7 +40,7 @@ //! //! // Panic with error message //! let result = panic::catch_unwind(|| { -//! assert_fn_eq_expr!(i32::abs, a, b, "message"); +//! assert_fn_eq_expr!(i8::abs, a, b, "message"); //! //-> panic! //! }); //! assert!(result.is_err()); @@ -79,7 +79,7 @@ macro_rules! assert_fn_eq_expr_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ let a_output = $a_function($a_param); if a_output == $b_expr { Ok(()) @@ -106,7 +106,7 @@ macro_rules! assert_fn_eq_expr_as_result { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ let a_output = $a_function(); if a_output == $b_expr { Ok(()) @@ -219,23 +219,23 @@ mod tests { /// # use std::panic; /// # fn main() { /// // Return Ok -/// let a: i32 = -1; -/// let b: i32 = 1; -/// assert_fn_eq_expr!(i32::abs, a, b); +/// let a: i8 = -1; +/// let b: i8 = 1; +/// assert_fn_eq_expr!(i8::abs, a, b); /// //-> () /// -/// let a: i32 = -1; -/// let b: i32 = 2; +/// let a: i8 = -1; +/// let b: i8 = 2; /// // Panic with error message /// let result = panic::catch_unwind(|| { -/// assert_fn_eq_expr!(i32::abs, a, b); +/// assert_fn_eq_expr!(i8::abs, a, b); /// //-> panic! /// }); /// assert!(result.is_err()); /// let actual = result.unwrap_err().downcast::().unwrap().to_string(); /// let expect = concat!( /// "assertion failed: `assert_fn_eq_expr!(left_function, left_param, right_expr)`\n", -/// " left_function label: `i32::abs`,\n", +/// " left_function label: `i8::abs`,\n", /// " left_param label: `a`,\n", /// " left_param debug: `-1`,\n", /// " right_expr label: `b`,\n", @@ -247,7 +247,7 @@ mod tests { /// /// // Panic with error message /// let result = panic::catch_unwind(|| { -/// assert_fn_eq_expr!(i32::abs, a, b, "message"); +/// assert_fn_eq_expr!(i8::abs, a, b, "message"); /// //-> panic! /// }); /// assert!(result.is_err()); @@ -268,7 +268,7 @@ macro_rules! assert_fn_eq_expr { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ match assert_fn_eq_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), @@ -284,7 +284,7 @@ macro_rules! assert_fn_eq_expr { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ match assert_fn_eq_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_ge.rs b/src/assert_fn/assert_fn_ge.rs similarity index 93% rename from src/assert_fn_ge.rs rename to src/assert_fn/assert_fn_ge.rs index 3b0b04729..5e8d256b5 100644 --- a/src/assert_fn_ge.rs +++ b/src/assert_fn/assert_fn_ge.rs @@ -12,26 +12,26 @@ //! # use std::panic; //! # fn main() { //! // Return Ok -//! let a: i32 = -2; -//! let b: i32 = 1; -//! assert_fn_ge!(i32::abs, a, i32::abs, b); +//! let a: i8 = -2; +//! let b: i8 = 1; +//! assert_fn_ge!(i8::abs, a, i8::abs, b); //! //-> () //! //! // Panic with error message //! let result = panic::catch_unwind(|| { -//! let a: i32 = 1; -//! let b: i32 = -2; -//! assert_fn_ge!(i32::abs, a, i32::abs, b); +//! let a: i8 = 1; +//! let b: i8 = -2; +//! assert_fn_ge!(i8::abs, a, i8::abs, b); //! //-> panic! //! }); //! assert!(result.is_err()); //! let actual = result.unwrap_err().downcast::().unwrap().to_string(); //! let expect = concat!( //! "assertion failed: `assert_fn_ge!(left_function, left_param, right_function, right_param)`\n", -//! " left_function label: `i32::abs`,\n", +//! " left_function label: `i8::abs`,\n", //! " left_param label: `a`,\n", //! " left_param debug: `1`,\n", -//! " right_function label: `i32::abs`,\n", +//! " right_function label: `i8::abs`,\n", //! " right_param label: `b`,\n", //! " right_param debug: `-2`,\n", //! " left: `1`,\n", @@ -70,7 +70,7 @@ macro_rules! assert_fn_ge_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ let a_output = $a_function($a_param); let b_output = $b_function($b_param); if a_output >= b_output { @@ -100,7 +100,7 @@ macro_rules! assert_fn_ge_as_result { //// Arity 0 - ($a_function:path, $b_function:path) => ({ + ($a_function:path, $b_function:path $(,)?) => ({ let a_output = $a_function(); let b_output = $b_function(); if a_output >= b_output { @@ -233,26 +233,26 @@ mod tests { /// # use std::panic; /// # fn main() { /// // Return Ok -/// let a: i32 = -2; -/// let b: i32 = 1; -/// assert_fn_ge!(i32::abs, a, i32::abs, b); +/// let a: i8 = -2; +/// let b: i8 = 1; +/// assert_fn_ge!(i8::abs, a, i8::abs, b); /// //-> () /// /// // Panic with error message /// let result = panic::catch_unwind(|| { -/// let a: i32 = 1; -/// let b: i32 = -2; -/// assert_fn_ge!(i32::abs, a, i32::abs, b); +/// let a: i8 = 1; +/// let b: i8 = -2; +/// assert_fn_ge!(i8::abs, a, i8::abs, b); /// //-> panic! /// }); /// assert!(result.is_err()); /// let actual = result.unwrap_err().downcast::().unwrap().to_string(); /// let expect = concat!( /// "assertion failed: `assert_fn_ge!(left_function, left_param, right_function, right_param)`\n", -/// " left_function label: `i32::abs`,\n", +/// " left_function label: `i8::abs`,\n", /// " left_param label: `a`,\n", /// " left_param debug: `1`,\n", -/// " right_function label: `i32::abs`,\n", +/// " right_function label: `i8::abs`,\n", /// " right_param label: `b`,\n", /// " right_param debug: `-2`,\n", /// " left: `1`,\n", @@ -273,7 +273,7 @@ macro_rules! assert_fn_ge { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ match assert_fn_ge_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), @@ -289,7 +289,7 @@ macro_rules! assert_fn_ge { //// Arity 0 - ($a_function:path, $b_function:path, $(,)?) => ({ + ($a_function:path, $b_function:path $(,)?) => ({ match assert_fn_ge_as_result!($a_function, $b_function) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_ge_expr.rs b/src/assert_fn/assert_fn_ge_expr.rs similarity index 94% rename from src/assert_fn_ge_expr.rs rename to src/assert_fn/assert_fn_ge_expr.rs index 33c1e2881..ec9d83098 100644 --- a/src/assert_fn_ge_expr.rs +++ b/src/assert_fn/assert_fn_ge_expr.rs @@ -12,23 +12,23 @@ //! # use std::panic; //! # fn main() { //! // Return Ok -//! let a: i32 = -2; -//! let b: i32 = 1; -//! assert_fn_ge_expr!(i32::abs, a, b); +//! let a: i8 = -2; +//! let b: i8 = 1; +//! assert_fn_ge_expr!(i8::abs, a, b); //! //-> () //! //! // Panic with error message //! let result = panic::catch_unwind(|| { -//! let a: i32 = -1; -//! let b: i32 = 2; -//! assert_fn_ge_expr!(i32::abs, a, b); +//! let a: i8 = -1; +//! let b: i8 = 2; +//! assert_fn_ge_expr!(i8::abs, a, b); //! //-> panic! //! }); //! assert!(result.is_err()); //! let actual = result.unwrap_err().downcast::().unwrap().to_string(); //! let expect = concat!( //! "assertion failed: `assert_fn_ge_expr!(left_function, left_param, right_expr)`\n", -//! " left_function label: `i32::abs`,\n", +//! " left_function label: `i8::abs`,\n", //! " left_param label: `a`,\n", //! " left_param debug: `-1`,\n", //! " right_expr label: `b`,\n", @@ -69,7 +69,7 @@ macro_rules! assert_fn_ge_expr_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ let a_output = $a_function($a_param); if a_output >= $b_expr { Ok(()) @@ -96,7 +96,7 @@ macro_rules! assert_fn_ge_expr_as_result { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ let a_output = $a_function(); if a_output >= $b_expr { Ok(()) @@ -228,23 +228,23 @@ mod tests { /// # use std::panic; /// # fn main() { /// // Return Ok -/// let a: i32 = -2; -/// let b: i32 = 1; -/// assert_fn_ge_expr!(i32::abs, a, b); +/// let a: i8 = -2; +/// let b: i8 = 1; +/// assert_fn_ge_expr!(i8::abs, a, b); /// //-> () /// /// // Panic with error message /// let result = panic::catch_unwind(|| { -/// let a: i32 = -1; -/// let b: i32 = 2; -/// assert_fn_ge_expr!(i32::abs, a, b); +/// let a: i8 = -1; +/// let b: i8 = 2; +/// assert_fn_ge_expr!(i8::abs, a, b); /// //-> panic! /// }); /// assert!(result.is_err()); /// let actual = result.unwrap_err().downcast::().unwrap().to_string(); /// let expect = concat!( /// "assertion failed: `assert_fn_ge_expr!(left_function, left_param, right_expr)`\n", -/// " left_function label: `i32::abs`,\n", +/// " left_function label: `i8::abs`,\n", /// " left_param label: `a`,\n", /// " left_param debug: `-1`,\n", /// " right_expr label: `b`,\n", @@ -267,7 +267,7 @@ macro_rules! assert_fn_ge_expr { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ match assert_fn_ge_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), @@ -283,7 +283,7 @@ macro_rules! assert_fn_ge_expr { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ match assert_fn_ge_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_gt.rs b/src/assert_fn/assert_fn_gt.rs similarity index 99% rename from src/assert_fn_gt.rs rename to src/assert_fn/assert_fn_gt.rs index bfb09b625..7ed83aacb 100644 --- a/src/assert_fn_gt.rs +++ b/src/assert_fn/assert_fn_gt.rs @@ -70,7 +70,7 @@ macro_rules! assert_fn_gt_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ let a_output = $a_function($a_param); let b_output = $b_function($b_param); if a_output > b_output { @@ -297,7 +297,7 @@ macro_rules! assert_fn_gt { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ match assert_fn_gt_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_gt_expr.rs b/src/assert_fn/assert_fn_gt_expr.rs similarity index 94% rename from src/assert_fn_gt_expr.rs rename to src/assert_fn/assert_fn_gt_expr.rs index dc37b2414..d3056bdb0 100644 --- a/src/assert_fn_gt_expr.rs +++ b/src/assert_fn/assert_fn_gt_expr.rs @@ -12,23 +12,23 @@ //! # use std::panic; //! # fn main() { //! // Return Ok -//! let a: i32 = -2; -//! let b: i32 = 1; -//! assert_fn_gt_expr!(i32::abs, a, b); +//! let a: i8 = -2; +//! let b: i8 = 1; +//! assert_fn_gt_expr!(i8::abs, a, b); //! //-> () //! //! // Panic with error message //! let result = panic::catch_unwind(|| { -//! let a: i32 = -1; -//! let b: i32 = 2; -//! assert_fn_gt_expr!(i32::abs, a, b); +//! let a: i8 = -1; +//! let b: i8 = 2; +//! assert_fn_gt_expr!(i8::abs, a, b); //! //-> panic! //! }); //! assert!(result.is_err()); //! let actual = result.unwrap_err().downcast::().unwrap().to_string(); //! let expect = concat!( //! "assertion failed: `assert_fn_gt_expr!(left_function, left_param, right_expr)`\n", -//! " left_function label: `i32::abs`,\n", +//! " left_function label: `i8::abs`,\n", //! " left_param label: `a`,\n", //! " left_param debug: `-1`,\n", //! " right_expr label: `b`,\n", @@ -69,7 +69,7 @@ macro_rules! assert_fn_gt_expr_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ let a_output = $a_function($a_param); if a_output > $b_expr { Ok(()) @@ -96,7 +96,7 @@ macro_rules! assert_fn_gt_expr_as_result { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ let a_output = $a_function(); if a_output > $b_expr { Ok(()) @@ -248,23 +248,23 @@ mod tests { /// # use std::panic; /// # fn main() { /// // Return Ok -/// let a: i32 = -2; -/// let b: i32 = 1; -/// assert_fn_gt_expr!(i32::abs, a, b); +/// let a: i8 = -2; +/// let b: i8 = 1; +/// assert_fn_gt_expr!(i8::abs, a, b); /// //-> () /// /// // Panic with error message /// let result = panic::catch_unwind(|| { -/// let a: i32 = -1; -/// let b: i32 = 2; -/// assert_fn_gt_expr!(i32::abs, a, b); +/// let a: i8 = -1; +/// let b: i8 = 2; +/// assert_fn_gt_expr!(i8::abs, a, b); /// //-> panic! /// }); /// assert!(result.is_err()); /// let actual = result.unwrap_err().downcast::().unwrap().to_string(); /// let expect = concat!( /// "assertion failed: `assert_fn_gt_expr!(left_function, left_param, right_expr)`\n", -/// " left_function label: `i32::abs`,\n", +/// " left_function label: `i8::abs`,\n", /// " left_param label: `a`,\n", /// " left_param debug: `-1`,\n", /// " right_expr label: `b`,\n", @@ -287,7 +287,7 @@ macro_rules! assert_fn_gt_expr { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ match assert_fn_gt_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), @@ -303,7 +303,7 @@ macro_rules! assert_fn_gt_expr { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ match assert_fn_gt_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_le.rs b/src/assert_fn/assert_fn_le.rs similarity index 94% rename from src/assert_fn_le.rs rename to src/assert_fn/assert_fn_le.rs index 7cb3364bf..a2c1a0a43 100644 --- a/src/assert_fn_le.rs +++ b/src/assert_fn/assert_fn_le.rs @@ -12,26 +12,26 @@ //! # use std::panic; //! # fn main() { //! // Return Ok -//! let a: i32 = 1; -//! let b: i32 = -2; -//! assert_fn_le!(i32::abs, a, i32::abs, b); +//! let a: i8 = 1; +//! let b: i8 = -2; +//! assert_fn_le!(i8::abs, a, i8::abs, b); //! //-> () //! //! // Panic with error message //! let result = panic::catch_unwind(|| { -//! let a: i32 = -2; -//! let b: i32 = 1; -//! assert_fn_le!(i32::abs, a, i32::abs, b); +//! let a: i8 = -2; +//! let b: i8 = 1; +//! assert_fn_le!(i8::abs, a, i8::abs, b); //! //-> panic! //! }); //! assert!(result.is_err()); //! let actual = result.unwrap_err().downcast::().unwrap().to_string(); //! let expect = concat!( //! "assertion failed: `assert_fn_le!(left_function, left_param, right_function, right_param)`\n", -//! " left_function label: `i32::abs`,\n", +//! " left_function label: `i8::abs`,\n", //! " left_param label: `a`,\n", //! " left_param debug: `-2`,\n", -//! " right_function label: `i32::abs`,\n", +//! " right_function label: `i8::abs`,\n", //! " right_param label: `b`,\n", //! " right_param debug: `1`,\n", //! " left: `2`,\n", @@ -72,7 +72,7 @@ macro_rules! assert_fn_le_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ let a_output = $a_function($a_param); let b_output = $b_function($b_param); if a_output <= b_output { @@ -235,26 +235,26 @@ mod tests { /// # use std::panic; /// # fn main() { /// // Return Ok -/// let a: i32 = 1; -/// let b: i32 = -2; -/// assert_fn_le!(i32::abs, a, i32::abs, b); +/// let a: i8 = 1; +/// let b: i8 = -2; +/// assert_fn_le!(i8::abs, a, i8::abs, b); /// //-> () /// /// // Panic with error message /// let result = panic::catch_unwind(|| { -/// let a: i32 = -2; -/// let b: i32 = 1; -/// assert_fn_le!(i32::abs, a, i32::abs, b); +/// let a: i8 = -2; +/// let b: i8 = 1; +/// assert_fn_le!(i8::abs, a, i8::abs, b); /// //-> panic! /// }); /// assert!(result.is_err()); /// let actual = result.unwrap_err().downcast::().unwrap().to_string(); /// let expect = concat!( /// "assertion failed: `assert_fn_le!(left_function, left_param, right_function, right_param)`\n", -/// " left_function label: `i32::abs`,\n", +/// " left_function label: `i8::abs`,\n", /// " left_param label: `a`,\n", /// " left_param debug: `-2`,\n", -/// " right_function label: `i32::abs`,\n", +/// " right_function label: `i8::abs`,\n", /// " right_param label: `b`,\n", /// " right_param debug: `1`,\n", /// " left: `2`,\n", @@ -275,7 +275,7 @@ macro_rules! assert_fn_le { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ match assert_fn_le_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), @@ -291,7 +291,7 @@ macro_rules! assert_fn_le { //// Arity 0 - ($a_function:path, $b_function:path, $(,)?) => ({ + ($a_function:path, $b_function:path) => ({ match assert_fn_le_as_result!($a_function, $b_function) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_le_expr.rs b/src/assert_fn/assert_fn_le_expr.rs similarity index 94% rename from src/assert_fn_le_expr.rs rename to src/assert_fn/assert_fn_le_expr.rs index 8144c40b8..0831f4288 100644 --- a/src/assert_fn_le_expr.rs +++ b/src/assert_fn/assert_fn_le_expr.rs @@ -12,23 +12,23 @@ //! # use std::panic; //! # fn main() { //! // Return Ok -//! let a: i32 = -1; -//! let b: i32 = 2; -//! assert_fn_le_expr!(i32::abs, a, b); +//! let a: i8 = -1; +//! let b: i8 = 2; +//! assert_fn_le_expr!(i8::abs, a, b); //! //-> () //! //! // Panic with error message //! let result = panic::catch_unwind(|| { -//! let a: i32 = -2; -//! let b: i32 = 1; -//! assert_fn_le_expr!(i32::abs, a, b); +//! let a: i8 = -2; +//! let b: i8 = 1; +//! assert_fn_le_expr!(i8::abs, a, b); //! //-> panic! //! }); //! assert!(result.is_err()); //! let actual = result.unwrap_err().downcast::().unwrap().to_string(); //! let expect = concat!( //! "assertion failed: `assert_fn_le_expr!(left_function, left_param, right_expr)`\n", -//! " left_function label: `i32::abs`,\n", +//! " left_function label: `i8::abs`,\n", //! " left_param label: `a`,\n", //! " left_param debug: `-2`,\n", //! " right_expr label: `b`,\n", @@ -72,7 +72,7 @@ macro_rules! assert_fn_le_expr_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ let a_output = $a_function($a_param); if a_output <= $b_expr { Ok(()) @@ -99,7 +99,7 @@ macro_rules! assert_fn_le_expr_as_result { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ let a_output = $a_function(); if a_output <= $b_expr { Ok(()) @@ -227,23 +227,23 @@ mod tests { /// # use std::panic; /// # fn main() { /// // Return Ok -/// let a: i32 = -1; -/// let b: i32 = 2; -/// assert_fn_le_expr!(i32::abs, a, b); +/// let a: i8 = -1; +/// let b: i8 = 2; +/// assert_fn_le_expr!(i8::abs, a, b); /// //-> () /// /// // Panic with error message /// let result = panic::catch_unwind(|| { -/// let a: i32 = -2; -/// let b: i32 = 1; -/// assert_fn_le_expr!(i32::abs, a, b); +/// let a: i8 = -2; +/// let b: i8 = 1; +/// assert_fn_le_expr!(i8::abs, a, b); /// //-> panic! /// }); /// assert!(result.is_err()); /// let actual = result.unwrap_err().downcast::().unwrap().to_string(); /// let expect = concat!( /// "assertion failed: `assert_fn_le_expr!(left_function, left_param, right_expr)`\n", -/// " left_function label: `i32::abs`,\n", +/// " left_function label: `i8::abs`,\n", /// " left_param label: `a`,\n", /// " left_param debug: `-2`,\n", /// " right_expr label: `b`,\n", @@ -266,7 +266,7 @@ macro_rules! assert_fn_le_expr { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ match assert_fn_le_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), @@ -282,7 +282,7 @@ macro_rules! assert_fn_le_expr { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ match assert_fn_le_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_lt.rs b/src/assert_fn/assert_fn_lt.rs similarity index 95% rename from src/assert_fn_lt.rs rename to src/assert_fn/assert_fn_lt.rs index 74706f0ee..2f13704f1 100644 --- a/src/assert_fn_lt.rs +++ b/src/assert_fn/assert_fn_lt.rs @@ -12,26 +12,26 @@ //! # use std::panic; //! # fn main() { //! // Return Ok -//! let a: i32 = 1; -//! let b: i32 = -2; -//! assert_fn_lt!(i32::abs, a, i32::abs, b); +//! let a: i8 = 1; +//! let b: i8 = -2; +//! assert_fn_lt!(i8::abs, a, i8::abs, b); //! //-> () //! -//! let a: i32 = -2; -//! let b: i32 = 1; +//! let a: i8 = -2; +//! let b: i8 = 1; //! // Panic with error message //! let result = panic::catch_unwind(|| { -//! assert_fn_lt!(i32::abs, a, i32::abs, b); +//! assert_fn_lt!(i8::abs, a, i8::abs, b); //! //-> panic! //! }); //! assert!(result.is_err()); //! let actual = result.unwrap_err().downcast::().unwrap().to_string(); //! let expect = concat!( //! "assertion failed: `assert_fn_lt!(left_function, left_param, right_function, right_param)`\n", -//! " left_function label: `i32::abs`,\n", +//! " left_function label: `i8::abs`,\n", //! " left_param label: `a`,\n", //! " left_param debug: `-2`,\n", -//! " right_function label: `i32::abs`,\n", +//! " right_function label: `i8::abs`,\n", //! " right_param label: `b`,\n", //! " right_param debug: `1`,\n", //! " left: `2`,\n", @@ -70,7 +70,7 @@ macro_rules! assert_fn_lt_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ let a_output = $a_function($a_param); let b_output = $b_function($b_param); if a_output < b_output { @@ -257,26 +257,26 @@ mod tests { /// # use std::panic; /// # fn main() { /// // Return Ok -/// let a: i32 = 1; -/// let b: i32 = -2; -/// assert_fn_lt!(i32::abs, a, i32::abs, b); +/// let a: i8 = 1; +/// let b: i8 = -2; +/// assert_fn_lt!(i8::abs, a, i8::abs, b); /// //-> () /// -/// let a: i32 = -2; -/// let b: i32 = 1; +/// let a: i8 = -2; +/// let b: i8 = 1; /// // Panic with error message /// let result = panic::catch_unwind(|| { -/// assert_fn_lt!(i32::abs, a, i32::abs, b); +/// assert_fn_lt!(i8::abs, a, i8::abs, b); /// //-> panic! /// }); /// assert!(result.is_err()); /// let actual = result.unwrap_err().downcast::().unwrap().to_string(); /// let expect = concat!( /// "assertion failed: `assert_fn_lt!(left_function, left_param, right_function, right_param)`\n", -/// " left_function label: `i32::abs`,\n", +/// " left_function label: `i8::abs`,\n", /// " left_param label: `a`,\n", /// " left_param debug: `-2`,\n", -/// " right_function label: `i32::abs`,\n", +/// " right_function label: `i8::abs`,\n", /// " right_param label: `b`,\n", /// " right_param debug: `1`,\n", /// " left: `2`,\n", @@ -297,7 +297,7 @@ macro_rules! assert_fn_lt { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ match assert_fn_lt_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_lt_expr.rs b/src/assert_fn/assert_fn_lt_expr.rs similarity index 94% rename from src/assert_fn_lt_expr.rs rename to src/assert_fn/assert_fn_lt_expr.rs index f845e1802..c4a7f567d 100644 --- a/src/assert_fn_lt_expr.rs +++ b/src/assert_fn/assert_fn_lt_expr.rs @@ -12,23 +12,23 @@ //! # use std::panic; //! # fn main() { //! // Return Ok -//! let a: i32 = -1; -//! let b: i32 = 2; -//! assert_fn_lt_expr!(i32::abs, a, b); +//! let a: i8 = -1; +//! let b: i8 = 2; +//! assert_fn_lt_expr!(i8::abs, a, b); //! //-> () //! //! // Panic with error message //! let result = panic::catch_unwind(|| { -//! let a: i32 = -2; -//! let b: i32 = 1; -//! assert_fn_lt_expr!(i32::abs, a, b); +//! let a: i8 = -2; +//! let b: i8 = 1; +//! assert_fn_lt_expr!(i8::abs, a, b); //! //-> panic! //! }); //! assert!(result.is_err()); //! let actual = result.unwrap_err().downcast::().unwrap().to_string(); //! let expect = concat!( //! "assertion failed: `assert_fn_lt_expr!(left_function, left_param, right_expr)`\n", -//! " left_function label: `i32::abs`,\n", +//! " left_function label: `i8::abs`,\n", //! " left_param label: `a`,\n", //! " left_param debug: `-2`,\n", //! " right_expr label: `b`,\n", @@ -69,7 +69,7 @@ macro_rules! assert_fn_lt_expr_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ let a_output = $a_function($a_param); if a_output < $b_expr { Ok(()) @@ -96,7 +96,7 @@ macro_rules! assert_fn_lt_expr_as_result { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ let a_output = $a_function(); if a_output < $b_expr { Ok(()) @@ -248,23 +248,23 @@ mod tests { /// # use std::panic; /// # fn main() { /// // Return Ok -/// let a: i32 = -1; -/// let b: i32 = 2; -/// assert_fn_lt_expr!(i32::abs, a, b); +/// let a: i8 = -1; +/// let b: i8 = 2; +/// assert_fn_lt_expr!(i8::abs, a, b); /// //-> () /// /// // Panic with error message /// let result = panic::catch_unwind(|| { -/// let a: i32 = -2; -/// let b: i32 = 1; -/// assert_fn_lt_expr!(i32::abs, a, b); +/// let a: i8 = -2; +/// let b: i8 = 1; +/// assert_fn_lt_expr!(i8::abs, a, b); /// //-> panic! /// }); /// assert!(result.is_err()); /// let actual = result.unwrap_err().downcast::().unwrap().to_string(); /// let expect = concat!( /// "assertion failed: `assert_fn_lt_expr!(left_function, left_param, right_expr)`\n", -/// " left_function label: `i32::abs`,\n", +/// " left_function label: `i8::abs`,\n", /// " left_param label: `a`,\n", /// " left_param debug: `-2`,\n", /// " right_expr label: `b`,\n", @@ -287,7 +287,7 @@ macro_rules! assert_fn_lt_expr { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ match assert_fn_lt_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), @@ -303,7 +303,7 @@ macro_rules! assert_fn_lt_expr { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ match assert_fn_lt_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_ne.rs b/src/assert_fn/assert_fn_ne.rs similarity index 94% rename from src/assert_fn_ne.rs rename to src/assert_fn/assert_fn_ne.rs index c92845912..52e6824bd 100644 --- a/src/assert_fn_ne.rs +++ b/src/assert_fn/assert_fn_ne.rs @@ -12,26 +12,26 @@ //! # use std::panic; //! # fn main() { //! // Return Ok -//! let a: i32 = -1; -//! let b: i32 = 2; -//! assert_fn_ne!(i32::abs, a, i32::abs, b); +//! let a: i8 = -1; +//! let b: i8 = 2; +//! assert_fn_ne!(i8::abs, a, i8::abs, b); //! //-> () //! //! // Panic with error message //! let result = panic::catch_unwind(|| { -//! let a: i32 = -1; -//! let b: i32 = 1; -//! assert_fn_ne!(i32::abs, a, i32::abs, b); +//! let a: i8 = -1; +//! let b: i8 = 1; +//! assert_fn_ne!(i8::abs, a, i8::abs, b); //! //-> panic! //! }); //! assert!(result.is_err()); //! let actual = result.unwrap_err().downcast::().unwrap().to_string(); //! let expect = concat!( //! "assertion failed: `assert_fn_ne!(left_function, left_param, right_function, right_param)`\n", -//! " left_function label: `i32::abs`,\n", +//! " left_function label: `i8::abs`,\n", //! " left_param label: `a`,\n", //! " left_param debug: `-1`,\n", -//! " right_function label: `i32::abs`,\n", +//! " right_function label: `i8::abs`,\n", //! " right_param label: `b`,\n", //! " right_param debug: `1`,\n", //! " left: `1`,\n", @@ -70,7 +70,7 @@ macro_rules! assert_fn_ne_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ let a_output = $a_function($a_param); let b_output = $b_function($b_param); if a_output != b_output { @@ -219,26 +219,26 @@ mod tests { /// # use std::panic; /// # fn main() { /// // Return Ok -/// let a: i32 = -1; -/// let b: i32 = 2; -/// assert_fn_ne!(i32::abs, a, i32::abs, b); +/// let a: i8 = -1; +/// let b: i8 = 2; +/// assert_fn_ne!(i8::abs, a, i8::abs, b); /// //-> () /// /// // Panic with error message /// let result = panic::catch_unwind(|| { -/// let a: i32 = -1; -/// let b: i32 = 1; -/// assert_fn_ne!(i32::abs, a, i32::abs, b); +/// let a: i8 = -1; +/// let b: i8 = 1; +/// assert_fn_ne!(i8::abs, a, i8::abs, b); /// //-> panic! /// }); /// assert!(result.is_err()); /// let actual = result.unwrap_err().downcast::().unwrap().to_string(); /// let expect = concat!( /// "assertion failed: `assert_fn_ne!(left_function, left_param, right_function, right_param)`\n", -/// " left_function label: `i32::abs`,\n", +/// " left_function label: `i8::abs`,\n", /// " left_param label: `a`,\n", /// " left_param debug: `-1`,\n", -/// " right_function label: `i32::abs`,\n", +/// " right_function label: `i8::abs`,\n", /// " right_param label: `b`,\n", /// " right_param debug: `1`,\n", /// " left: `1`,\n", @@ -259,7 +259,7 @@ macro_rules! assert_fn_ne { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ match assert_fn_ne_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_ne_expr.rs b/src/assert_fn/assert_fn_ne_expr.rs similarity index 93% rename from src/assert_fn_ne_expr.rs rename to src/assert_fn/assert_fn_ne_expr.rs index 592a611d6..1e00b8e31 100644 --- a/src/assert_fn_ne_expr.rs +++ b/src/assert_fn/assert_fn_ne_expr.rs @@ -12,23 +12,23 @@ //! # use std::panic; //! # fn main() { //! // Return Ok -//! let a: i32 = 1; -//! let b: i32 = -2; -//! assert_fn_ne_expr!(i32::abs, a, b); +//! let a: i8 = 1; +//! let b: i8 = -2; +//! assert_fn_ne_expr!(i8::abs, a, b); //! //-> () //! //! // Panic with error message //! let result = panic::catch_unwind(|| { -//! let a: i32 = -1; -//! let b: i32 = 1; -//! assert_fn_ne_expr!(i32::abs, a, b); +//! let a: i8 = -1; +//! let b: i8 = 1; +//! assert_fn_ne_expr!(i8::abs, a, b); //! //-> panic! //! }); //! assert!(result.is_err()); //! let actual = result.unwrap_err().downcast::().unwrap().to_string(); //! let expect = concat!( //! "assertion failed: `assert_fn_ne_expr!(left_function, left_param, right_expr)`\n", -//! " left_function label: `i32::abs`,\n", +//! " left_function label: `i8::abs`,\n", //! " left_param label: `a`,\n", //! " left_param debug: `-1`,\n", //! " right_expr label: `b`,\n", @@ -69,7 +69,7 @@ macro_rules! assert_fn_ne_expr_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ let a_output = $a_function($a_param); if a_output != $b_expr { Ok(()) @@ -96,7 +96,7 @@ macro_rules! assert_fn_ne_expr_as_result { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ let a_output = $a_function(); if a_output != $b_expr { Ok(()) @@ -209,23 +209,23 @@ mod tests { /// # use std::panic; /// # fn main() { /// // Return Ok -/// let a: i32 = 1; -/// let b: i32 = -2; -/// assert_fn_ne_expr!(i32::abs, a, b); +/// let a: i8 = 1; +/// let b: i8 = -2; +/// assert_fn_ne_expr!(i8::abs, a, b); /// //-> () /// /// // Panic with error message /// let result = panic::catch_unwind(|| { -/// let a: i32 = -1; -/// let b: i32 = 1; -/// assert_fn_ne_expr!(i32::abs, a, b); +/// let a: i8 = -1; +/// let b: i8 = 1; +/// assert_fn_ne_expr!(i8::abs, a, b); /// //-> panic! /// }); /// assert!(result.is_err()); /// let actual = result.unwrap_err().downcast::().unwrap().to_string(); /// let expect = concat!( /// "assertion failed: `assert_fn_ne_expr!(left_function, left_param, right_expr)`\n", -/// " left_function label: `i32::abs`,\n", +/// " left_function label: `i8::abs`,\n", /// " left_param label: `a`,\n", /// " left_param debug: `-1`,\n", /// " right_expr label: `b`,\n", @@ -248,7 +248,7 @@ macro_rules! assert_fn_ne_expr { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ match assert_fn_ne_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), @@ -264,7 +264,7 @@ macro_rules! assert_fn_ne_expr { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ match assert_fn_ne_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn/mod.rs b/src/assert_fn/mod.rs new file mode 100644 index 000000000..6a8698b86 --- /dev/null +++ b/src/assert_fn/mod.rs @@ -0,0 +1,60 @@ +//! Assert macros for comparing functions. +//! +//! These macros help compare functions that return anything. +//! The macros call the functions, then compare the return values. +//! +//! Compare a function with another function: +//! +//! * [`assert_fn_eq!(function1, function2)`](macro@crate::assert_fn_eq) ≈ function1() = function2() +//! +//! * [`assert_fn_ne!(function1, function2)`](macro@crate::assert_fn_ne) ≈ function1() ≠ function2() +//! +//! * [`assert_fn_ge!(function1, function2)`](macro@crate::assert_fn_ge) ≈ function1() ≥ function2() +//! +//! * [`assert_fn_gt!(function1, function2)`](macro@crate::assert_fn_gt) ≈ function1() > function2() +//! +//! * [`assert_fn_le!(function1, function2)`](macro@crate::assert_fn_le) ≈ function1() ≤ function2() +//! +//! * [`assert_fn_lt!(function1, function2)`](macro@crate::assert_fn_lt) ≈ function1() < function2() +//! +//! Compare a function with an expression: +//! +//! * [`assert_fn_eq_expr!(function, expr)`](macro@crate::assert_fn_eq_expr) ≈ function() = expr +//! +//! * [`assert_fn_ne_expr!(function, expr)`](macro@crate::assert_fn_ne_expr) ≈ function() ≠ expr +//! +//! * [`assert_fn_ge_expr!(function, expr)`](macro@crate::assert_fn_ge_expr) ≈ function() ≥ expr +//! +//! * [`assert_fn_gt_expr!(function, expr)`](macro@crate::assert_fn_gt_expr) ≈ function() > expr +//! +//! * [`assert_fn_le_expr!(function, expr)`](macro@crate::assert_fn_le_expr) ≈ function() ≤ expr +//! +//! * [`assert_fn_lt_expr!(function, expr)`](macro@crate::assert_fn_lt_expr) ≈ function() < expr +//! +//! +//! # Example +//! +//! ```rust +//! # #[macro_use] extern crate assertables; +//! # fn main() { +//! let a: i8 = -1; +//! let b: i8 = 1; +//! assert_fn_eq!(i8::abs, a, i8::abs, b); +//! # } +//! ``` + +// Comparisons +pub mod assert_fn_eq; +pub mod assert_fn_ne; +pub mod assert_fn_lt; +pub mod assert_fn_le; +pub mod assert_fn_gt; +pub mod assert_fn_ge; + +// Comparisons with expressions +pub mod assert_fn_eq_expr; +pub mod assert_fn_ne_expr; +pub mod assert_fn_ge_expr; +pub mod assert_fn_gt_expr; +pub mod assert_fn_le_expr; +pub mod assert_fn_lt_expr; diff --git a/src/assert_fn_err_eq.rs b/src/assert_fn_err/assert_fn_err_eq.rs similarity index 99% rename from src/assert_fn_err_eq.rs rename to src/assert_fn_err/assert_fn_err_eq.rs index 50b47f835..3e7383ff5 100644 --- a/src/assert_fn_err_eq.rs +++ b/src/assert_fn_err/assert_fn_err_eq.rs @@ -87,7 +87,7 @@ macro_rules! assert_fn_err_eq_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ let a_result = $a_function($a_param); let b_result = $b_function($b_param); let a_is_err = a_result.is_err(); @@ -339,7 +339,7 @@ macro_rules! assert_fn_err_eq { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ match assert_fn_err_eq_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_err_eq_expr.rs b/src/assert_fn_err/assert_fn_err_eq_expr.rs similarity index 98% rename from src/assert_fn_err_eq_expr.rs rename to src/assert_fn_err/assert_fn_err_eq_expr.rs index e0f6c193b..f23bab4ef 100644 --- a/src/assert_fn_err_eq_expr.rs +++ b/src/assert_fn_err/assert_fn_err_eq_expr.rs @@ -86,7 +86,7 @@ macro_rules! assert_fn_err_eq_expr_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ let a_result = $a_function($a_param); let a_is_err = a_result.is_err(); if !a_is_err { @@ -133,7 +133,7 @@ macro_rules! assert_fn_err_eq_expr_as_result { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ let a_result = $a_function(); let a_is_err = a_result.is_err(); if !a_is_err { @@ -318,7 +318,7 @@ macro_rules! assert_fn_err_eq_expr { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ match assert_fn_err_eq_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), @@ -334,7 +334,7 @@ macro_rules! assert_fn_err_eq_expr { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ match assert_fn_err_eq_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_err_ge.rs b/src/assert_fn_err/assert_fn_err_ge.rs similarity index 99% rename from src/assert_fn_err_ge.rs rename to src/assert_fn_err/assert_fn_err_ge.rs index 430382c5d..f33d4df45 100644 --- a/src/assert_fn_err_ge.rs +++ b/src/assert_fn_err/assert_fn_err_ge.rs @@ -87,7 +87,7 @@ macro_rules! assert_fn_err_ge_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ let a_result = $a_function($a_param); let b_result = $b_function($b_param); let a_is_err = a_result.is_err(); @@ -353,7 +353,7 @@ macro_rules! assert_fn_err_ge { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ match assert_fn_err_ge_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_err_ge_expr.rs b/src/assert_fn_err/assert_fn_err_ge_expr.rs similarity index 98% rename from src/assert_fn_err_ge_expr.rs rename to src/assert_fn_err/assert_fn_err_ge_expr.rs index 23ae396bc..df26d1b04 100644 --- a/src/assert_fn_err_ge_expr.rs +++ b/src/assert_fn_err/assert_fn_err_ge_expr.rs @@ -86,7 +86,7 @@ macro_rules! assert_fn_err_ge_expr_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ let a_result = $a_function($a_param); let a_is_err = a_result.is_err(); if !a_is_err { @@ -133,7 +133,7 @@ macro_rules! assert_fn_err_ge_expr_as_result { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ let a_result = $a_function(); let a_is_err = a_result.is_err(); if !a_is_err { @@ -334,7 +334,7 @@ macro_rules! assert_fn_err_ge_expr { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ match assert_fn_err_ge_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), @@ -350,7 +350,7 @@ macro_rules! assert_fn_err_ge_expr { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ match assert_fn_err_ge_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_err_gt.rs b/src/assert_fn_err/assert_fn_err_gt.rs similarity index 99% rename from src/assert_fn_err_gt.rs rename to src/assert_fn_err/assert_fn_err_gt.rs index f322becd7..12df06795 100644 --- a/src/assert_fn_err_gt.rs +++ b/src/assert_fn_err/assert_fn_err_gt.rs @@ -87,7 +87,7 @@ macro_rules! assert_fn_err_gt_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ let a_result = $a_function($a_param); let b_result = $b_function($b_param); let a_is_err = a_result.is_err(); @@ -377,7 +377,7 @@ macro_rules! assert_fn_err_gt { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ match assert_fn_err_gt_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_err_gt_expr.rs b/src/assert_fn_err/assert_fn_err_gt_expr.rs similarity index 98% rename from src/assert_fn_err_gt_expr.rs rename to src/assert_fn_err/assert_fn_err_gt_expr.rs index df0f4edf2..c6e6e7216 100644 --- a/src/assert_fn_err_gt_expr.rs +++ b/src/assert_fn_err/assert_fn_err_gt_expr.rs @@ -86,7 +86,7 @@ macro_rules! assert_fn_err_gt_expr_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ let a_result = $a_function($a_param); let a_is_err = a_result.is_err(); if !a_is_err { @@ -133,7 +133,7 @@ macro_rules! assert_fn_err_gt_expr_as_result { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ let a_result = $a_function(); let a_is_err = a_result.is_err(); if !a_is_err { @@ -358,7 +358,7 @@ macro_rules! assert_fn_err_gt_expr { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ match assert_fn_err_gt_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), @@ -374,7 +374,7 @@ macro_rules! assert_fn_err_gt_expr { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ match assert_fn_err_gt_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_err_le.rs b/src/assert_fn_err/assert_fn_err_le.rs similarity index 99% rename from src/assert_fn_err_le.rs rename to src/assert_fn_err/assert_fn_err_le.rs index 719c049ec..3aa1ea9a7 100644 --- a/src/assert_fn_err_le.rs +++ b/src/assert_fn_err/assert_fn_err_le.rs @@ -87,7 +87,7 @@ macro_rules! assert_fn_err_le_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ let a_result = $a_function($a_param); let b_result = $b_function($b_param); let a_is_err = a_result.is_err(); @@ -353,7 +353,7 @@ macro_rules! assert_fn_err_le { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ match assert_fn_err_le_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_err_le_expr.rs b/src/assert_fn_err/assert_fn_err_le_expr.rs similarity index 98% rename from src/assert_fn_err_le_expr.rs rename to src/assert_fn_err/assert_fn_err_le_expr.rs index 309871d69..184af65a1 100644 --- a/src/assert_fn_err_le_expr.rs +++ b/src/assert_fn_err/assert_fn_err_le_expr.rs @@ -86,7 +86,7 @@ macro_rules! assert_fn_err_le_expr_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ let a_result = $a_function($a_param); let a_is_err = a_result.is_err(); if !a_is_err { @@ -133,7 +133,7 @@ macro_rules! assert_fn_err_le_expr_as_result { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ let a_result = $a_function(); let a_is_err = a_result.is_err(); if !a_is_err { @@ -334,7 +334,7 @@ macro_rules! assert_fn_err_le_expr { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ match assert_fn_err_le_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), @@ -350,7 +350,7 @@ macro_rules! assert_fn_err_le_expr { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ match assert_fn_err_le_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_err_lt.rs b/src/assert_fn_err/assert_fn_err_lt.rs similarity index 98% rename from src/assert_fn_err_lt.rs rename to src/assert_fn_err/assert_fn_err_lt.rs index 47065f074..c7913aef7 100644 --- a/src/assert_fn_err_lt.rs +++ b/src/assert_fn_err/assert_fn_err_lt.rs @@ -87,7 +87,7 @@ macro_rules! assert_fn_err_lt_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ let a_result = $a_function($a_param); let b_result = $b_function($b_param); let a_is_err = a_result.is_err(); @@ -377,7 +377,7 @@ macro_rules! assert_fn_err_lt { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ match assert_fn_err_lt_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), @@ -394,14 +394,14 @@ macro_rules! assert_fn_err_lt { //// Arity 0 ($a_function:path, $b_function:path) => ({ - match assert_fn_err_lt_as_result!($a_function, $a_function) { + match assert_fn_err_lt_as_result!($a_function, $b_function) { Ok(()) => (), Err(err) => panic!("{}", err), } }); ($a_function:path, $b_function:path, $($message:tt)+) => ({ - match assert_fn_err_lt_as_result!($a_function, $a_function) { + match assert_fn_err_lt_as_result!($a_function, $b_function) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } diff --git a/src/assert_fn_err_lt_expr.rs b/src/assert_fn_err/assert_fn_err_lt_expr.rs similarity index 98% rename from src/assert_fn_err_lt_expr.rs rename to src/assert_fn_err/assert_fn_err_lt_expr.rs index 73b4793f7..69d86cca4 100644 --- a/src/assert_fn_err_lt_expr.rs +++ b/src/assert_fn_err/assert_fn_err_lt_expr.rs @@ -86,7 +86,7 @@ macro_rules! assert_fn_err_lt_expr_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ let a_result = $a_function($a_param); let a_is_err = a_result.is_err(); if !a_is_err { @@ -133,7 +133,7 @@ macro_rules! assert_fn_err_lt_expr_as_result { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ let a_result = $a_function(); let a_is_err = a_result.is_err(); if !a_is_err { @@ -358,7 +358,7 @@ macro_rules! assert_fn_err_lt_expr { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ match assert_fn_err_lt_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), @@ -374,7 +374,7 @@ macro_rules! assert_fn_err_lt_expr { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ match assert_fn_err_lt_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_err_ne.rs b/src/assert_fn_err/assert_fn_err_ne.rs similarity index 99% rename from src/assert_fn_err_ne.rs rename to src/assert_fn_err/assert_fn_err_ne.rs index 87b7c4ff0..119ce3cf2 100644 --- a/src/assert_fn_err_ne.rs +++ b/src/assert_fn_err/assert_fn_err_ne.rs @@ -87,7 +87,7 @@ macro_rules! assert_fn_err_ne_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ let a_result = $a_function($a_param); let b_result = $b_function($b_param); let a_is_err = a_result.is_err(); @@ -339,7 +339,7 @@ macro_rules! assert_fn_err_ne { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ match assert_fn_err_ne_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_err_ne_expr.rs b/src/assert_fn_err/assert_fn_err_ne_expr.rs similarity index 98% rename from src/assert_fn_err_ne_expr.rs rename to src/assert_fn_err/assert_fn_err_ne_expr.rs index 2f3ce9d0c..274552769 100644 --- a/src/assert_fn_err_ne_expr.rs +++ b/src/assert_fn_err/assert_fn_err_ne_expr.rs @@ -86,7 +86,7 @@ macro_rules! assert_fn_err_ne_expr_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ let a_result = $a_function($a_param); let a_is_err = a_result.is_err(); if !a_is_err { @@ -133,7 +133,7 @@ macro_rules! assert_fn_err_ne_expr_as_result { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ let a_result = $a_function(); let a_is_err = a_result.is_err(); if !a_is_err { @@ -319,7 +319,7 @@ macro_rules! assert_fn_err_ne_expr { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ match assert_fn_err_ne_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), @@ -335,7 +335,7 @@ macro_rules! assert_fn_err_ne_expr { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ match assert_fn_err_ne_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_err/mod.rs b/src/assert_fn_err/mod.rs new file mode 100644 index 000000000..648796766 --- /dev/null +++ b/src/assert_fn_err/mod.rs @@ -0,0 +1,73 @@ +//! Assert macros for comparing functions that return errors. +//! +//! These macros help compare functions that return results that are errors, +//! such as `std::Result::Err` or similar. +//! +//! The macros use these capabilities: +//! +//! * implements `.is_err() -> boolean` +//! +//! * implements `.unwrap_err() -> comparable` +//! +//! Compare a function Err() with another function Err(): +//! +//! * [`assert_fn_err_eq!(function1, function2)`](macro@crate::assert_fn_err_eq) ≈ function1().unwrap_err() = function2().unwrap_err() +//! +//! * [`assert_fn_err_ne!(function1, function2)`](macro@crate::assert_fn_err_ne) ≈ function1().unwrap_err() ≠ function2().unwrap_err() +//! +//! * [`assert_fn_err_ge!(function1, function2)`](macro@crate::assert_fn_err_ge) ≈ function1().unwrap_err() ≥ function2().unwrap_err() +//! +//! * [`assert_fn_err_gt!(function1, function2)`](macro@crate::assert_fn_err_gt) ≈ function1().unwrap_err() > function2().unwrap_err() +//! +//! * [`assert_fn_err_le!(function1, function2)`](macro@crate::assert_fn_err_le) ≈ function1().unwrap_err() ≤ function2().unwrap_err() +//! +//! * [`assert_fn_err_lt!(function1, function2)`](macro@crate::assert_fn_err_lt) ≈ function1().unwrap_err() < function2().unwrap_err() +//! +//! Compare a function Err() with an expression: +//! +//! * [`assert_fn_err_eq!(function, expr)`](macro@crate::assert_fn_err_eq) ≈ function().unwrap_err() = expr +//! +//! * [`assert_fn_err_ne!(function, expr)`](macro@crate::assert_fn_err_ne) ≈ function().unwrap_err() ≠ expr +//! +//! * [`assert_fn_err_ge!(function, expr)`](macro@crate::assert_fn_err_ge) ≈ function().unwrap_err() ≥ expr +//! +//! * [`assert_fn_err_gt!(function, expr)`](macro@crate::assert_fn_err_gt) ≈ function().unwrap_err() > expr +//! +//! * [`assert_fn_err_le!(function, expr)`](macro@crate::assert_fn_err_le) ≈ function().unwrap_err() ≤ expr +//! +//! * [`assert_fn_err_lt!(function, expr)`](macro@crate::assert_fn_err_lt) ≈ function().unwrap_err() < expr +//! +//! +//! # Example +//! +//! ```rust +//! # #[macro_use] extern crate assertables; +//! fn f(i: i8) -> Result { +//! match i { +//! 0..=9 => Ok(format!("{}", i)), +//! _ => Err(format!("{:?} is out of range", i)), +//! } +//! } +//! +//! # fn main() { +//! let a: i8 = 10; +//! let b: i8 = 10; +//! assert_fn_err_eq!(f, a, f, b); +//! # } +//! ``` + +// Comparisons +pub mod assert_fn_err_eq; +pub mod assert_fn_err_ne; +pub mod assert_fn_err_lt; +pub mod assert_fn_err_le; +pub mod assert_fn_err_gt; +pub mod assert_fn_err_ge; + +// Comparisons with expressions +pub mod assert_fn_err_eq_expr; +pub mod assert_fn_err_ne_expr; +pub mod assert_fn_err_lt_expr; +pub mod assert_fn_err_le_expr; +pub mod assert_fn_err_gt_expr; +pub mod assert_fn_err_ge_expr; diff --git a/src/assert_fn_ok_eq.rs b/src/assert_fn_ok/assert_fn_ok_eq.rs similarity index 99% rename from src/assert_fn_ok_eq.rs rename to src/assert_fn_ok/assert_fn_ok_eq.rs index 56bf693ef..9811925e8 100644 --- a/src/assert_fn_ok_eq.rs +++ b/src/assert_fn_ok/assert_fn_ok_eq.rs @@ -77,7 +77,7 @@ macro_rules! assert_fn_ok_eq_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ let a_result = $a_function($a_param); let b_result = $b_function($b_param); let a_is_ok = a_result.is_ok(); @@ -319,7 +319,7 @@ macro_rules! assert_fn_ok_eq { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ match assert_fn_ok_eq_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_ok_eq_expr.rs b/src/assert_fn_ok/assert_fn_ok_eq_expr.rs similarity index 98% rename from src/assert_fn_ok_eq_expr.rs rename to src/assert_fn_ok/assert_fn_ok_eq_expr.rs index 195d0682a..b41db86e8 100644 --- a/src/assert_fn_ok_eq_expr.rs +++ b/src/assert_fn_ok/assert_fn_ok_eq_expr.rs @@ -76,7 +76,7 @@ macro_rules! assert_fn_ok_eq_expr_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ let a_result = $a_function($a_param); let a_is_ok = a_result.is_ok(); if !a_is_ok { @@ -123,7 +123,7 @@ macro_rules! assert_fn_ok_eq_expr_as_result { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ let a_result = $a_function(); let a_is_ok = a_result.is_ok(); if !a_is_ok { @@ -299,7 +299,7 @@ macro_rules! assert_fn_ok_eq_expr { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ match assert_fn_ok_eq_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), @@ -315,7 +315,7 @@ macro_rules! assert_fn_ok_eq_expr { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ match assert_fn_ok_eq_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_ok_ge.rs b/src/assert_fn_ok/assert_fn_ok_ge.rs similarity index 99% rename from src/assert_fn_ok_ge.rs rename to src/assert_fn_ok/assert_fn_ok_ge.rs index 5f244f580..443b6cc76 100644 --- a/src/assert_fn_ok_ge.rs +++ b/src/assert_fn_ok/assert_fn_ok_ge.rs @@ -77,7 +77,7 @@ macro_rules! assert_fn_ok_ge_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ let a_result = $a_function($a_param); let b_result = $b_function($b_param); let a_is_ok = a_result.is_ok(); @@ -333,7 +333,7 @@ macro_rules! assert_fn_ok_ge { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ match assert_fn_ok_ge_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_ok_ge_expr.rs b/src/assert_fn_ok/assert_fn_ok_ge_expr.rs similarity index 98% rename from src/assert_fn_ok_ge_expr.rs rename to src/assert_fn_ok/assert_fn_ok_ge_expr.rs index 940690543..9b2c9a034 100644 --- a/src/assert_fn_ok_ge_expr.rs +++ b/src/assert_fn_ok/assert_fn_ok_ge_expr.rs @@ -76,7 +76,7 @@ macro_rules! assert_fn_ok_ge_expr_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ let a_result = $a_function($a_param); let a_is_ok = a_result.is_ok(); if !a_is_ok { @@ -123,7 +123,7 @@ macro_rules! assert_fn_ok_ge_expr_as_result { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ let a_result = $a_function(); let a_is_ok = a_result.is_ok(); if !a_is_ok { @@ -314,7 +314,7 @@ macro_rules! assert_fn_ok_ge_expr { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ match assert_fn_ok_ge_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), @@ -330,7 +330,7 @@ macro_rules! assert_fn_ok_ge_expr { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ match assert_fn_ok_ge_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_ok_gt.rs b/src/assert_fn_ok/assert_fn_ok_gt.rs similarity index 99% rename from src/assert_fn_ok_gt.rs rename to src/assert_fn_ok/assert_fn_ok_gt.rs index ac397f9a8..33baffe5b 100644 --- a/src/assert_fn_ok_gt.rs +++ b/src/assert_fn_ok/assert_fn_ok_gt.rs @@ -77,7 +77,7 @@ macro_rules! assert_fn_ok_gt_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ let a_result = $a_function($a_param); let b_result = $b_function($b_param); let a_is_ok = a_result.is_ok(); @@ -357,7 +357,7 @@ macro_rules! assert_fn_ok_gt { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ match assert_fn_ok_gt_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_ok_gt_expr.rs b/src/assert_fn_ok/assert_fn_ok_gt_expr.rs similarity index 98% rename from src/assert_fn_ok_gt_expr.rs rename to src/assert_fn_ok/assert_fn_ok_gt_expr.rs index 3a8d713d6..d49af2a84 100644 --- a/src/assert_fn_ok_gt_expr.rs +++ b/src/assert_fn_ok/assert_fn_ok_gt_expr.rs @@ -76,7 +76,7 @@ macro_rules! assert_fn_ok_gt_expr_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ let a_result = $a_function($a_param); let a_is_ok = a_result.is_ok(); if !a_is_ok { @@ -123,7 +123,7 @@ macro_rules! assert_fn_ok_gt_expr_as_result { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ let a_result = $a_function(); let a_is_ok = a_result.is_ok(); if !a_is_ok { @@ -338,7 +338,7 @@ macro_rules! assert_fn_ok_gt_expr { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ match assert_fn_ok_gt_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), @@ -354,7 +354,7 @@ macro_rules! assert_fn_ok_gt_expr { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ match assert_fn_ok_gt_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_ok_le.rs b/src/assert_fn_ok/assert_fn_ok_le.rs similarity index 99% rename from src/assert_fn_ok_le.rs rename to src/assert_fn_ok/assert_fn_ok_le.rs index 212990897..b219cb73e 100644 --- a/src/assert_fn_ok_le.rs +++ b/src/assert_fn_ok/assert_fn_ok_le.rs @@ -77,7 +77,7 @@ macro_rules! assert_fn_ok_le_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ let a_result = $a_function($a_param); let b_result = $b_function($b_param); let a_is_ok = a_result.is_ok(); @@ -333,7 +333,7 @@ macro_rules! assert_fn_ok_le { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ match assert_fn_ok_le_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_ok_le_expr.rs b/src/assert_fn_ok/assert_fn_ok_le_expr.rs similarity index 98% rename from src/assert_fn_ok_le_expr.rs rename to src/assert_fn_ok/assert_fn_ok_le_expr.rs index b2d99e258..e5afe1ab3 100644 --- a/src/assert_fn_ok_le_expr.rs +++ b/src/assert_fn_ok/assert_fn_ok_le_expr.rs @@ -77,7 +77,7 @@ macro_rules! assert_fn_ok_le_expr_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ let a_result = $a_function($a_param); let a_is_ok = a_result.is_ok(); if !a_is_ok { @@ -124,7 +124,7 @@ macro_rules! assert_fn_ok_le_expr_as_result { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ let a_result = $a_function(); let a_is_ok = a_result.is_ok(); if !a_is_ok { @@ -316,7 +316,7 @@ macro_rules! assert_fn_ok_le_expr { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ match assert_fn_ok_le_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), @@ -332,7 +332,7 @@ macro_rules! assert_fn_ok_le_expr { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ match assert_fn_ok_le_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_ok_lt.rs b/src/assert_fn_ok/assert_fn_ok_lt.rs similarity index 99% rename from src/assert_fn_ok_lt.rs rename to src/assert_fn_ok/assert_fn_ok_lt.rs index 10b1b74c1..3fc8b143a 100644 --- a/src/assert_fn_ok_lt.rs +++ b/src/assert_fn_ok/assert_fn_ok_lt.rs @@ -77,7 +77,7 @@ macro_rules! assert_fn_ok_lt_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ let a_result = $a_function($a_param); let b_result = $b_function($b_param); let a_is_ok = a_result.is_ok(); @@ -357,7 +357,7 @@ macro_rules! assert_fn_ok_lt { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ match assert_fn_ok_lt_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_ok_lt_expr.rs b/src/assert_fn_ok/assert_fn_ok_lt_expr.rs similarity index 98% rename from src/assert_fn_ok_lt_expr.rs rename to src/assert_fn_ok/assert_fn_ok_lt_expr.rs index 8cdff9f28..872896f1a 100644 --- a/src/assert_fn_ok_lt_expr.rs +++ b/src/assert_fn_ok/assert_fn_ok_lt_expr.rs @@ -78,7 +78,7 @@ macro_rules! assert_fn_ok_lt_expr_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ let a_result = $a_function($a_param); let a_is_ok = a_result.is_ok(); if !a_is_ok { @@ -125,7 +125,7 @@ macro_rules! assert_fn_ok_lt_expr_as_result { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ let a_result = $a_function(); let a_is_ok = a_result.is_ok(); if !a_is_ok { @@ -301,7 +301,7 @@ macro_rules! assert_fn_ok_lt_expr { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ match assert_fn_ok_lt_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), @@ -317,7 +317,7 @@ macro_rules! assert_fn_ok_lt_expr { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ match assert_fn_ok_lt_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_ok_ne.rs b/src/assert_fn_ok/assert_fn_ok_ne.rs similarity index 99% rename from src/assert_fn_ok_ne.rs rename to src/assert_fn_ok/assert_fn_ok_ne.rs index 05cd75aa3..9b3777195 100644 --- a/src/assert_fn_ok_ne.rs +++ b/src/assert_fn_ok/assert_fn_ok_ne.rs @@ -77,7 +77,7 @@ macro_rules! assert_fn_ok_ne_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ let a_result = $a_function($a_param); let b_result = $b_function($b_param); let a_is_ok = a_result.is_ok(); @@ -319,7 +319,7 @@ macro_rules! assert_fn_ok_ne { //// Arity 1 - ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr) => ({ + ($a_function:path, $a_param:expr, $b_function:path, $b_param:expr $(,)?) => ({ match assert_fn_ok_ne_as_result!($a_function, $a_param, $b_function, $b_param) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_ok_ne_expr.rs b/src/assert_fn_ok/assert_fn_ok_ne_expr.rs similarity index 98% rename from src/assert_fn_ok_ne_expr.rs rename to src/assert_fn_ok/assert_fn_ok_ne_expr.rs index a20971708..2bf3e8873 100644 --- a/src/assert_fn_ok_ne_expr.rs +++ b/src/assert_fn_ok/assert_fn_ok_ne_expr.rs @@ -76,7 +76,7 @@ macro_rules! assert_fn_ok_ne_expr_as_result { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ let a_result = $a_function($a_param); let a_is_ok = a_result.is_ok(); if !a_is_ok { @@ -123,7 +123,7 @@ macro_rules! assert_fn_ok_ne_expr_as_result { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ let a_result = $a_function(); let a_is_ok = a_result.is_ok(); if !a_is_ok { @@ -299,7 +299,7 @@ macro_rules! assert_fn_ok_ne_expr { //// Arity 1 - ($a_function:path, $a_param:expr, $b_expr:expr) => ({ + ($a_function:path, $a_param:expr, $b_expr:expr $(,)?) => ({ match assert_fn_ok_ne_expr_as_result!($a_function, $a_param, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), @@ -315,7 +315,7 @@ macro_rules! assert_fn_ok_ne_expr { //// Arity 0 - ($a_function:path, $b_expr:expr) => ({ + ($a_function:path, $b_expr:expr $(,)?) => ({ match assert_fn_ok_ne_expr_as_result!($a_function, $b_expr) { Ok(()) => (), Err(err) => panic!("{}", err), diff --git a/src/assert_fn_ok/mod.rs b/src/assert_fn_ok/mod.rs new file mode 100644 index 000000000..147c4bc6a --- /dev/null +++ b/src/assert_fn_ok/mod.rs @@ -0,0 +1,73 @@ +//! Assert macros for comparing functions that return Result::Ok. +//! +//! These macros help compare functions that return results that are ok, such as +//! `std::Result::Ok` or similar. +//! +//! The macros use these capabilities: +//! +//! * implements `.is_ok() -> boolean` +//! +//! * implements `.unwrap_ok() -> comparable` +//! +//! Compare a function Ok() with another function Ok(): +//! +//! * [`assert_fn_ok_eq!(function1, function2)`](macro@crate::assert_fn_ok_eq) ≈ function1().unwrap_err() = function2().unwrap_err() +//! +//! * [`assert_fn_ok_ne!(function1, function2)`](macro@crate::assert_fn_ok_ne) ≈ function1().unwrap_err() ≠ function2().unwrap_err() +//! +//! * [`assert_fn_ok_ge!(function1, function2)`](macro@crate::assert_fn_ok_ge) ≈ function1().unwrap_err() ≥ function2().unwrap_err() +//! +//! * [`assert_fn_ok_gt!(function1, function2)`](macro@crate::assert_fn_ok_gt) ≈ function1().unwrap_err() > function2().unwrap_err() +//! +//! * [`assert_fn_ok_le!(function1, function2)`](macro@crate::assert_fn_ok_le) ≈ function1().unwrap_err() ≤ function2().unwrap_err() +//! +//! * [`assert_fn_ok_lt!(function1, function2)`](macro@crate::assert_fn_ok_lt) ≈ function1().unwrap_err() < function2().unwrap_err() +//! +//! Compare a function Ok() with an expression: +//! +//! * [`assert_fn_ok_eq!(function, expr)`](macro@crate::assert_fn_ok_eq) ≈ function().unwrap_err() = expr +//! +//! * [`assert_fn_ok_ne!(function, expr)`](macro@crate::assert_fn_ok_ne) ≈ function().unwrap_err() ≠ expr +//! +//! * [`assert_fn_ok_ge!(function, expr)`](macro@crate::assert_fn_ok_ge) ≈ function().unwrap_err() ≥ expr +//! +//! * [`assert_fn_ok_gt!(function, expr)`](macro@crate::assert_fn_ok_gt) ≈ function().unwrap_err() > expr +//! +//! * [`assert_fn_ok_le!(function, expr)`](macro@crate::assert_fn_ok_le) ≈ function().unwrap_err() ≤ expr +//! +//! * [`assert_fn_ok_lt!(function, expr)`](macro@crate::assert_fn_ok_lt) ≈ function().unwrap_err() < expr +//! +//! # Example +//! +//! ```rust +//! # #[macro_use] extern crate assertables; +//! fn f(i: i8) -> Result { +//! match i { +//! 0..=9 => Ok(format!("{}", i)), +//! _ => Err(format!("{:?} is out of range", i)), +//! } +//! } +//! +//! # fn main() { +//! let a: i8 = 1; +//! let b: i8 = 1; +//! assert_fn_ok_eq!(f, a, f, b); +//! # } +//! ``` + + +// Comparisons +pub mod assert_fn_ok_eq; +pub mod assert_fn_ok_ne; +pub mod assert_fn_ok_lt; +pub mod assert_fn_ok_le; +pub mod assert_fn_ok_gt; +pub mod assert_fn_ok_ge; + +// Comparisons with expressions +pub mod assert_fn_ok_eq_expr; +pub mod assert_fn_ok_ne_expr; +pub mod assert_fn_ok_lt_expr; +pub mod assert_fn_ok_le_expr; +pub mod assert_fn_ok_gt_expr; +pub mod assert_fn_ok_ge_expr; diff --git a/src/assert_fs_read_to_string_contains.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_contains.rs similarity index 100% rename from src/assert_fs_read_to_string_contains.rs rename to src/assert_fs_read_to_string/assert_fs_read_to_string_contains.rs diff --git a/src/assert_fs_read_to_string_eq.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_eq.rs similarity index 100% rename from src/assert_fs_read_to_string_eq.rs rename to src/assert_fs_read_to_string/assert_fs_read_to_string_eq.rs diff --git a/src/assert_fs_read_to_string_eq_expr.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_eq_expr.rs similarity index 100% rename from src/assert_fs_read_to_string_eq_expr.rs rename to src/assert_fs_read_to_string/assert_fs_read_to_string_eq_expr.rs diff --git a/src/assert_fs_read_to_string_ge.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_ge.rs similarity index 100% rename from src/assert_fs_read_to_string_ge.rs rename to src/assert_fs_read_to_string/assert_fs_read_to_string_ge.rs diff --git a/src/assert_fs_read_to_string_ge_expr.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_ge_expr.rs similarity index 100% rename from src/assert_fs_read_to_string_ge_expr.rs rename to src/assert_fs_read_to_string/assert_fs_read_to_string_ge_expr.rs diff --git a/src/assert_fs_read_to_string_gt.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_gt.rs similarity index 100% rename from src/assert_fs_read_to_string_gt.rs rename to src/assert_fs_read_to_string/assert_fs_read_to_string_gt.rs diff --git a/src/assert_fs_read_to_string_gt_expr.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_gt_expr.rs similarity index 100% rename from src/assert_fs_read_to_string_gt_expr.rs rename to src/assert_fs_read_to_string/assert_fs_read_to_string_gt_expr.rs diff --git a/src/assert_fs_read_to_string_le.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_le.rs similarity index 100% rename from src/assert_fs_read_to_string_le.rs rename to src/assert_fs_read_to_string/assert_fs_read_to_string_le.rs diff --git a/src/assert_fs_read_to_string_le_expr.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_le_expr.rs similarity index 100% rename from src/assert_fs_read_to_string_le_expr.rs rename to src/assert_fs_read_to_string/assert_fs_read_to_string_le_expr.rs diff --git a/src/assert_fs_read_to_string_lt.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_lt.rs similarity index 100% rename from src/assert_fs_read_to_string_lt.rs rename to src/assert_fs_read_to_string/assert_fs_read_to_string_lt.rs diff --git a/src/assert_fs_read_to_string_lt_expr.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_lt_expr.rs similarity index 100% rename from src/assert_fs_read_to_string_lt_expr.rs rename to src/assert_fs_read_to_string/assert_fs_read_to_string_lt_expr.rs diff --git a/src/assert_fs_read_to_string_matches.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_matches.rs similarity index 100% rename from src/assert_fs_read_to_string_matches.rs rename to src/assert_fs_read_to_string/assert_fs_read_to_string_matches.rs diff --git a/src/assert_fs_read_to_string_ne.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_ne.rs similarity index 100% rename from src/assert_fs_read_to_string_ne.rs rename to src/assert_fs_read_to_string/assert_fs_read_to_string_ne.rs diff --git a/src/assert_fs_read_to_string_ne_expr.rs b/src/assert_fs_read_to_string/assert_fs_read_to_string_ne_expr.rs similarity index 100% rename from src/assert_fs_read_to_string_ne_expr.rs rename to src/assert_fs_read_to_string/assert_fs_read_to_string_ne_expr.rs diff --git a/src/assert_fs_read_to_string/mod.rs b/src/assert_fs_read_to_string/mod.rs new file mode 100644 index 000000000..96432dc4a --- /dev/null +++ b/src/assert_fs_read_to_string/mod.rs @@ -0,0 +1,74 @@ +//! Assert macros for comparing file system path contents. +//! +//! These macros help with file system paths, such as disk files, `Path`, +//! `PathBuf`, the trait `AsRef`, and anything that is readable via +//! `std::fs::read_to_string(…)`. +//! +//! Compare a path with another path: +//! +//! * [`assert_fs_read_to_string_eq!(path1, path2)`](macro@crate::assert_fs_read_to_string_eq) ≈ std::fs::read_to_string(path1) = std::fs::read_to_string(path2) +//! +//! * [`assert_fs_read_to_string_ne!(path1, path2)`](macro@crate::assert_fs_read_to_string_ne) ≈ std::fs::read_to_string(path1) ≠ std::fs::read_to_string(path2) +//! +//! * [`assert_fs_read_to_string_ge!(path1, path2)`](macro@crate::assert_fs_read_to_string_ge) ≈ std::fs::read_to_string(path1) ≥ std::fs::read_to_string(path2) +//! +//! * [`assert_fs_read_to_string_gt!(path1, path2)`](macro@crate::assert_fs_read_to_string_gt) ≈ std::fs::read_to_string(path1) > std::fs::read_to_string(path2) +//! +//! * [`assert_fs_read_to_string_le!(path1, path2)`](macro@crate::assert_fs_read_to_string_le) ≈ std::fs::read_to_string(path1) ≤ std::fs::read_to_string(path2) +//! +//! * [`assert_fs_read_to_string_lt!(path1, path2)`](macro@crate::assert_fs_read_to_string_lt) ≈ std::fs::read_to_string(path1) < std::fs::read_to_string(path2) +//! +//! Compare a path with an expression: +//! +//! * [`assert_fs_read_to_string_eq_expr!(path, expr)`](macro@crate::assert_fs_read_to_string_eq_expr) ≈ std::fs::read_to_string(path) = expr +//! +//! * [`assert_fs_read_to_string_ne_expr!(path, expr)`](macro@crate::assert_fs_read_to_string_ne_expr) ≈ std::fs::read_to_string(path) ≠ expr +//! +//! * [`assert_fs_read_to_string_ge_expr!(path, expr)`](macro@crate::assert_fs_read_to_string_ge_expr) ≈ std::fs::read_to_string(path) ≥ expr +//! +//! * [`assert_fs_read_to_string_gt_expr!(path, expr)`](macro@crate::assert_fs_read_to_string_gt_expr) ≈ std::fs::read_to_string(path) > expr +//! +//! * [`assert_fs_read_to_string_le_expr!(path, expr)`](macro@crate::assert_fs_read_to_string_le_expr) ≈ std::fs::read_to_string(path) ≤ expr +//! +//! * [`assert_fs_read_to_string_lt_expr!(path, expr)`](macro@crate::assert_fs_read_to_string_lt_expr) ≈ std::fs::read_to_string(path) < expr +//! +//! Compare a path with its contents: +//! +//! * [`assert_fs_read_to_string_contains!(path, containee)`](macro@crate::assert_fs_read_to_string_contains) ≈ std::fs::read_to_string(path).contains(containee) +//! +//! * [`assert_fs_read_to_string_matches!(path, matcher)`](macro@crate::assert_fs_read_to_string_matches) ≈ matcher.is_match(std::fs::read_to_string(path)) +//! +//! +//! # Example +//! +//! ```rust +//! # #[macro_use] extern crate assertables; +//! use std::io::Read; +//! +//! # fn main() { +//! let a ="alfa.txt"; +//! let mut b = "alfa.txt"; +//! assert_fs_read_to_string_eq!(&a, &b); +//! # } +//! ``` + + +// Comparisons +pub mod assert_fs_read_to_string_eq; +pub mod assert_fs_read_to_string_ne; +pub mod assert_fs_read_to_string_lt; +pub mod assert_fs_read_to_string_le; +pub mod assert_fs_read_to_string_gt; +pub mod assert_fs_read_to_string_ge; + +// Comparisons with expressions +pub mod assert_fs_read_to_string_eq_expr; +pub mod assert_fs_read_to_string_ne_expr; +pub mod assert_fs_read_to_string_lt_expr; +pub mod assert_fs_read_to_string_le_expr; +pub mod assert_fs_read_to_string_gt_expr; +pub mod assert_fs_read_to_string_ge_expr; + +// Specializations +pub mod assert_fs_read_to_string_contains; +pub mod assert_fs_read_to_string_matches; diff --git a/src/assert_io_read_to_string_contains.rs b/src/assert_io_read_to_string/assert_io_read_to_string_contains.rs similarity index 100% rename from src/assert_io_read_to_string_contains.rs rename to src/assert_io_read_to_string/assert_io_read_to_string_contains.rs diff --git a/src/assert_io_read_to_string_eq.rs b/src/assert_io_read_to_string/assert_io_read_to_string_eq.rs similarity index 100% rename from src/assert_io_read_to_string_eq.rs rename to src/assert_io_read_to_string/assert_io_read_to_string_eq.rs diff --git a/src/assert_io_read_to_string_eq_expr.rs b/src/assert_io_read_to_string/assert_io_read_to_string_eq_expr.rs similarity index 100% rename from src/assert_io_read_to_string_eq_expr.rs rename to src/assert_io_read_to_string/assert_io_read_to_string_eq_expr.rs diff --git a/src/assert_io_read_to_string_ge.rs b/src/assert_io_read_to_string/assert_io_read_to_string_ge.rs similarity index 100% rename from src/assert_io_read_to_string_ge.rs rename to src/assert_io_read_to_string/assert_io_read_to_string_ge.rs diff --git a/src/assert_io_read_to_string_ge_expr.rs b/src/assert_io_read_to_string/assert_io_read_to_string_ge_expr.rs similarity index 100% rename from src/assert_io_read_to_string_ge_expr.rs rename to src/assert_io_read_to_string/assert_io_read_to_string_ge_expr.rs diff --git a/src/assert_io_read_to_string_gt.rs b/src/assert_io_read_to_string/assert_io_read_to_string_gt.rs similarity index 100% rename from src/assert_io_read_to_string_gt.rs rename to src/assert_io_read_to_string/assert_io_read_to_string_gt.rs diff --git a/src/assert_io_read_to_string_gt_expr.rs b/src/assert_io_read_to_string/assert_io_read_to_string_gt_expr.rs similarity index 100% rename from src/assert_io_read_to_string_gt_expr.rs rename to src/assert_io_read_to_string/assert_io_read_to_string_gt_expr.rs diff --git a/src/assert_io_read_to_string_le.rs b/src/assert_io_read_to_string/assert_io_read_to_string_le.rs similarity index 100% rename from src/assert_io_read_to_string_le.rs rename to src/assert_io_read_to_string/assert_io_read_to_string_le.rs diff --git a/src/assert_io_read_to_string_le_expr.rs b/src/assert_io_read_to_string/assert_io_read_to_string_le_expr.rs similarity index 100% rename from src/assert_io_read_to_string_le_expr.rs rename to src/assert_io_read_to_string/assert_io_read_to_string_le_expr.rs diff --git a/src/assert_io_read_to_string_lt.rs b/src/assert_io_read_to_string/assert_io_read_to_string_lt.rs similarity index 100% rename from src/assert_io_read_to_string_lt.rs rename to src/assert_io_read_to_string/assert_io_read_to_string_lt.rs diff --git a/src/assert_io_read_to_string_lt_expr.rs b/src/assert_io_read_to_string/assert_io_read_to_string_lt_expr.rs similarity index 100% rename from src/assert_io_read_to_string_lt_expr.rs rename to src/assert_io_read_to_string/assert_io_read_to_string_lt_expr.rs diff --git a/src/assert_io_read_to_string_matches.rs b/src/assert_io_read_to_string/assert_io_read_to_string_matches.rs similarity index 100% rename from src/assert_io_read_to_string_matches.rs rename to src/assert_io_read_to_string/assert_io_read_to_string_matches.rs diff --git a/src/assert_io_read_to_string_ne.rs b/src/assert_io_read_to_string/assert_io_read_to_string_ne.rs similarity index 100% rename from src/assert_io_read_to_string_ne.rs rename to src/assert_io_read_to_string/assert_io_read_to_string_ne.rs diff --git a/src/assert_io_read_to_string_ne_expr.rs b/src/assert_io_read_to_string/assert_io_read_to_string_ne_expr.rs similarity index 100% rename from src/assert_io_read_to_string_ne_expr.rs rename to src/assert_io_read_to_string/assert_io_read_to_string_ne_expr.rs diff --git a/src/assert_io_read_to_string/mod.rs b/src/assert_io_read_to_string/mod.rs new file mode 100644 index 000000000..7a407b251 --- /dev/null +++ b/src/assert_io_read_to_string/mod.rs @@ -0,0 +1,73 @@ +//! Assert macros for comparing input/output reader streams. +//! +//! These macros help with input/output readers, such as file handles, byte arrays, +//! input streams, the trait `std::io::Read`, and anything that implements a +//! method `read_to_string() -> String`. +//! +//! Compare a reader with another reader: +//! +//! * [`assert_io_read_to_string_eq!(reader1, reader2)`](macro@crate::assert_io_read_to_string_eq) ≈ reader1.read_to_string() = reader2.read_to_string() +//! +//! * [`assert_io_read_to_string_ne!(reader1, reader2)`](macro@crate::assert_io_read_to_string_ne) ≈ reader1.read_to_string() ≠ reader2.read_to_string() +//! +//! * [`assert_io_read_to_string_ge!(reader1, reader2)`](macro@crate::assert_io_read_to_string_ge) ≈ reader1.read_to_string() ≥ reader2.read_to_string() +//! +//! * [`assert_io_read_to_string_gt!(reader1, reader2)`](macro@crate::assert_io_read_to_string_gt) ≈ reader1.read_to_string() > reader2.read_to_string() +//! +//! * [`assert_io_read_to_string_le!(reader1, reader2)`](macro@crate::assert_io_read_to_string_le) ≈ reader1.read_to_string() ≤ reader2.read_to_string() +//! +//! * [`assert_io_read_to_string_lt!(reader1, reader2)`](macro@crate::assert_io_read_to_string_lt) ≈ reader1.read_to_string() < reader2.read_to_string() +//! +//! Compare a reader with an expression: +//! +//! * [`assert_io_read_to_string_eq_expr!(reader, expr)`](macro@crate::assert_io_read_to_string_eq_expr) ≈ reader.read_to_string() = expr +//! +//! * [`assert_io_read_to_string_ne_expr!(reader, expr)`](macro@crate::assert_io_read_to_string_ne_expr) ≈ reader.read_to_string() ≠ expr +//! +//! * [`assert_io_read_to_string_ge_expr!(reader, expr)`](macro@crate::assert_io_read_to_string_ge_expr) ≈ reader.read_to_string() ≥ expr +//! +//! * [`assert_io_read_to_string_gt_expr!(reader, expr)`](macro@crate::assert_io_read_to_string_gt_expr) ≈ reader.read_to_string() > expr +//! +//! * [`assert_io_read_to_string_le_expr!(reader, expr)`](macro@crate::assert_io_read_to_string_le_expr) ≈ reader.read_to_string() ≤ expr +//! +//! * [`assert_io_read_to_string_lt_expr!(reader, expr)`](macro@crate::assert_io_read_to_string_lt_expr) ≈ reader.read_to_string() < expr +//! +//! Compare a reader with its contents: +//! +//! * [`assert_io_read_to_string_contains!(reader, containee)`](macro@crate::assert_io_read_to_string_contains) ≈ reader.read_to_string().contains(containee) +//! +//! * [`assert_io_read_to_string_matches!(reader, matcher)`](macro@crate::assert_io_read_to_string_matches) ≈ matcher.is_match(reader.read_to_string()) +//! +//! +//! # Example +//! +//! ```rust +//! # #[macro_use] extern crate assertables; +//! use std::io::Read; +//! +//! # fn main() { +//! let mut a = "alfa".as_bytes(); +//! let mut b = "alfa".as_bytes(); +//! assert_io_read_to_string_eq!(a, b); +//! # } +//! ``` + +// Comparisons +pub mod assert_io_read_to_string_eq; +pub mod assert_io_read_to_string_ne; +pub mod assert_io_read_to_string_lt; +pub mod assert_io_read_to_string_le; +pub mod assert_io_read_to_string_gt; +pub mod assert_io_read_to_string_ge; + +// Comparisons with expressions +pub mod assert_io_read_to_string_eq_expr; +pub mod assert_io_read_to_string_ne_expr; +pub mod assert_io_read_to_string_lt_expr; +pub mod assert_io_read_to_string_le_expr; +pub mod assert_io_read_to_string_gt_expr; +pub mod assert_io_read_to_string_ge_expr; + +// Specializations +pub mod assert_io_read_to_string_matches; +pub mod assert_io_read_to_string_contains; diff --git a/src/assert_ne.rs b/src/assert_ne.rs index f88dcd2f9..bfc564fc4 100644 --- a/src/assert_ne.rs +++ b/src/assert_ne.rs @@ -16,7 +16,7 @@ //! * [`assert_ne_as_result`](macro@crate::assert_ne_as_result) //! //! # Rust standard macros -//! +//! //! * [`assert_ne`](https://doc.rust-lang.org/std/macro.assert_ne.html) //! * [`debug_assert_ne`](https://doc.rust-lang.org/std/macro.debug_assert_ne.html) @@ -38,7 +38,7 @@ /// * [`assert_ne_as_result`](macro@crate::assert_ne_as_result) /// /// # Rust standard macros -/// +/// /// * [`assert_ne`](https://doc.rust-lang.org/std/macro.assert_ne.html) /// * [`debug_assert_ne`](https://doc.rust-lang.org/std/macro.debug_assert_ne.html) /// diff --git a/src/assert_none.rs b/src/assert_option/assert_option_none.rs similarity index 72% rename from src/assert_none.rs rename to src/assert_option/assert_option_none.rs index d0d36f390..0c2bbc23a 100644 --- a/src/assert_none.rs +++ b/src/assert_option/assert_option_none.rs @@ -12,19 +12,19 @@ //! # use std::panic; //! # fn main() { //! let a: Option = Option::None; -//! assert_none!(a); +//! assert_option_none!(a); //! //-> () //! //! let a: Option = Option::Some(1); //! // Panic with error message //! let result = panic::catch_unwind(|| { -//! assert_none!(a); +//! assert_option_none!(a); //! //-> panic! //! }); //! assert!(result.is_err()); //! let actual = result.unwrap_err().downcast::().unwrap().to_string(); //! let expect = concat!( -//! "assertion failed: `assert_none!(expr)`\n", +//! "assertion failed: `assert_option_none!(expr)`\n", //! " expr label: `a`,\n", //! " expr debug: `Some(1)`,\n", //! " expr.is_none(): `false`", @@ -33,7 +33,7 @@ //! //! // Panic with error message //! let result = panic::catch_unwind(|| { -//! assert_none!(a, "message"); +//! assert_option_none!(a, "message"); //! //-> panic! //! }); //! assert!(result.is_err()); @@ -45,9 +45,9 @@ //! //! # Module macros //! -//! * [`assert_none`](macro@crate::assert_none) -//! * [`assert_none_as_result`](macro@crate::assert_none_as_result) -//! * [`debug_assert_none`](macro@crate::debug_assert_none) +//! * [`assert_option_none`](macro@crate::assert_option_none) +//! * [`assert_option_none_as_result`](macro@crate::assert_option_none_as_result) +//! * [`debug_assert_option_none`](macro@crate::debug_assert_option_none) /// Assert an expression.is_none() is true. /// @@ -55,7 +55,7 @@ /// /// * Otherwise, return Result `Err` with a diagnostic message. /// -/// This macro provides the same statements as [`assert_none`](macro.assert_none.html), +/// This macro provides the same statements as [`assert_option_none`](macro.assert_option_none.html), /// except this macro returns a Result, rather than doing a panic. /// /// This macro is useful for runtime checks, such as checking parameters, @@ -63,12 +63,12 @@ /// /// # Module macros /// -/// * [`assert_none`](macro@crate::assert_none) -/// * [`assert_none_as_result`](macro@crate::assert_none_as_result) -/// * [`debug_assert_none`](macro@crate::debug_assert_none) +/// * [`assert_option_none`](macro@crate::assert_option_none) +/// * [`assert_option_none_as_result`](macro@crate::assert_option_none_as_result) +/// * [`debug_assert_option_none`](macro@crate::debug_assert_option_none) /// #[macro_export] -macro_rules! assert_none_as_result { +macro_rules! assert_option_none_as_result { ($a:expr $(,)?) => {{ match (&$a) { a_val => { @@ -78,7 +78,7 @@ macro_rules! assert_none_as_result { } else { Err(format!( concat!( - "assertion failed: `assert_none!(expr)`\n", + "assertion failed: `assert_option_none!(expr)`\n", " expr label: `{}`,\n", " expr debug: `{:?}`,\n", " expr.is_none(): `{:?}`", @@ -97,21 +97,21 @@ macro_rules! assert_none_as_result { mod tests { #[test] - fn test_assert_none_as_result_x_success() { + fn test_assert_option_none_as_result_x_success() { let a: Option = Option::None; - let x = assert_none_as_result!(a); + let x = assert_option_none_as_result!(a); assert_eq!(x, Ok(())); } #[test] - fn test_assert_none_as_result_x_failure() { + fn test_assert_option_none_as_result_x_failure() { let a: Option = Option::Some(1); - let x = assert_none_as_result!(a); + let x = assert_option_none_as_result!(a); assert!(x.is_err()); assert_eq!( x.unwrap_err(), concat!( - "assertion failed: `assert_none!(expr)`\n", + "assertion failed: `assert_option_none!(expr)`\n", " expr label: `a`,\n", " expr debug: `Some(1)`,\n", " expr.is_none(): `false`" @@ -134,19 +134,19 @@ mod tests { /// # use std::panic; /// # fn main() { /// let a: Option = Option::None; -/// assert_none!(a); +/// assert_option_none!(a); /// //-> () /// /// let a: Option = Option::Some(1); /// // Panic with error message /// let result = panic::catch_unwind(|| { -/// assert_none!(a); +/// assert_option_none!(a); /// //-> panic! /// }); /// assert!(result.is_err()); /// let actual = result.unwrap_err().downcast::().unwrap().to_string(); /// let expect = concat!( -/// "assertion failed: `assert_none!(expr)`\n", +/// "assertion failed: `assert_option_none!(expr)`\n", /// " expr label: `a`,\n", /// " expr debug: `Some(1)`,\n", /// " expr.is_none(): `false`", @@ -155,7 +155,7 @@ mod tests { /// /// // Panic with error message /// let result = panic::catch_unwind(|| { -/// assert_none!(a, "message"); +/// assert_option_none!(a, "message"); /// //-> panic! /// }); /// assert!(result.is_err()); @@ -167,20 +167,20 @@ mod tests { /// /// # Module macros /// -/// * [`assert_none`](macro@crate::assert_none) -/// * [`assert_none_as_result`](macro@crate::assert_none_as_result) -/// * [`debug_assert_none`](macro@crate::debug_assert_none) -/// +/// * [`assert_option_none`](macro@crate::assert_option_none) +/// * [`assert_option_none_as_result`](macro@crate::assert_option_none_as_result) +/// * [`debug_assert_option_none`](macro@crate::debug_assert_option_none) +/// #[macro_export] -macro_rules! assert_none { +macro_rules! assert_option_none { ($a:expr $(,)?) => ({ - match assert_none_as_result!($a) { + match assert_option_none_as_result!($a) { Ok(()) => (), Err(err) => panic!("{}", err), } }); ($a:expr, $($message:tt)+) => ({ - match assert_none_as_result!($a) { + match assert_option_none_as_result!($a) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -189,7 +189,7 @@ macro_rules! assert_none { /// Assert expression.is_none() is true. /// -/// This macro provides the same statements as [`assert_none`](macro.assert_none.html), +/// This macro provides the same statements as [`assert_option_none`](macro.assert_option_none.html), /// except this macro's statements are only enabled in non-optimized /// builds by default. An optimized build will not execute this macro's /// statements unless `-C debug-assertions` is passed to the compiler. @@ -211,15 +211,15 @@ macro_rules! assert_none { /// /// # Module macros /// -/// * [`assert_none`](macro@crate::assert_none) -/// * [`assert_none`](macro@crate::assert_none) -/// * [`debug_assert_none`](macro@crate::debug_assert_none) +/// * [`assert_option_none`](macro@crate::assert_option_none) +/// * [`assert_option_none`](macro@crate::assert_option_none) +/// * [`debug_assert_option_none`](macro@crate::debug_assert_option_none) /// #[macro_export] -macro_rules! debug_assert_none { +macro_rules! debug_assert_option_none { ($($arg:tt)*) => { if $crate::cfg!(debug_assertions) { - $crate::assert_none!($($arg)*); + $crate::assert_option_none!($($arg)*); } }; } diff --git a/src/assert_some.rs b/src/assert_option/assert_option_some.rs similarity index 72% rename from src/assert_some.rs rename to src/assert_option/assert_option_some.rs index 61a9e2e02..9585bcfa3 100644 --- a/src/assert_some.rs +++ b/src/assert_option/assert_option_some.rs @@ -12,19 +12,19 @@ //! # use std::panic; //! # fn main() { //! let a: Option = Option::Some(1); -//! assert_some!(a); +//! assert_option_some!(a); //! //-> () //! //! let a: Option = Option::None; //! // Panic with error message //! let result = panic::catch_unwind(|| { -//! assert_some!(a); +//! assert_option_some!(a); //! //-> panic! //! }); //! assert!(result.is_err()); //! let actual = result.unwrap_err().downcast::().unwrap().to_string(); //! let expect = concat!( -//! "assertion failed: `assert_some!(expr)`\n", +//! "assertion failed: `assert_option_some!(expr)`\n", //! " expr label: `a`,\n", //! " expr debug: `None`,\n", //! " expr.is_some(): `false`", @@ -33,7 +33,7 @@ //! //! // Panic with error message //! let result = panic::catch_unwind(|| { -//! assert_some!(a, "message"); +//! assert_option_some!(a, "message"); //! //-> panic! //! }); //! assert!(result.is_err()); @@ -45,9 +45,9 @@ //! //! # Module macros //! -//! * [`assert_some`](macro@crate::assert_some) -//! * [`assert_some_as_result`](macro@crate::assert_some_as_result) -//! * [`debug_assert_some`](macro@crate::debug_assert_some) +//! * [`assert_option_some`](macro@crate::assert_option_some) +//! * [`assert_option_some_as_result`](macro@crate::assert_option_some_as_result) +//! * [`debug_assert_option_some`](macro@crate::debug_assert_option_some) /// Assert an expression.is_some() is true. /// @@ -55,7 +55,7 @@ /// /// * Otherwise, return Result `Err` with a diagnostic message. /// -/// This macro provides the same statements as [`assert_some`](macro.assert_some.html), +/// This macro provides the same statements as [`assert_option_some`](macro.assert_option_some.html), /// except this macro returns a Result, rather than doing a panic. /// /// This macro is useful for runtime checks, such as checking parameters, @@ -63,12 +63,12 @@ /// /// # Module macros /// -/// * [`assert_some`](macro@crate::assert_some) -/// * [`assert_some_as_result`](macro@crate::assert_some_as_result) -/// * [`debug_assert_some`](macro@crate::debug_assert_some) +/// * [`assert_option_some`](macro@crate::assert_option_some) +/// * [`assert_option_some_as_result`](macro@crate::assert_option_some_as_result) +/// * [`debug_assert_option_some`](macro@crate::debug_assert_option_some) /// #[macro_export] -macro_rules! assert_some_as_result { +macro_rules! assert_option_some_as_result { ($a:expr $(,)?) => {{ match (&$a) { a_val => { @@ -78,7 +78,7 @@ macro_rules! assert_some_as_result { } else { Err(format!( concat!( - "assertion failed: `assert_some!(expr)`\n", + "assertion failed: `assert_option_some!(expr)`\n", " expr label: `{}`,\n", " expr debug: `{:?}`,\n", " expr.is_some(): `{:?}`", @@ -97,21 +97,21 @@ macro_rules! assert_some_as_result { mod tests { #[test] - fn test_assert_some_as_result_x_success() { + fn test_assert_option_some_as_result_x_success() { let a: Option = Option::Some(1); - let x = assert_some_as_result!(a); + let x = assert_option_some_as_result!(a); assert_eq!(x, Ok(())); } #[test] - fn test_assert_some_as_result_x_failure() { + fn test_assert_option_some_as_result_x_failure() { let a: Option = Option::None; - let x = assert_some_as_result!(a); + let x = assert_option_some_as_result!(a); assert!(x.is_err()); assert_eq!( x.unwrap_err(), concat!( - "assertion failed: `assert_some!(expr)`\n", + "assertion failed: `assert_option_some!(expr)`\n", " expr label: `a`,\n", " expr debug: `None`,\n", " expr.is_some(): `false`" @@ -134,19 +134,19 @@ mod tests { /// # use std::panic; /// # fn main() { /// let a: Option = Option::Some(1); -/// assert_some!(a); +/// assert_option_some!(a); /// //-> () /// /// let a: Option = Option::None; /// // Panic with error message /// let result = panic::catch_unwind(|| { -/// assert_some!(a); +/// assert_option_some!(a); /// //-> panic! /// }); /// assert!(result.is_err()); /// let actual = result.unwrap_err().downcast::().unwrap().to_string(); /// let expect = concat!( -/// "assertion failed: `assert_some!(expr)`\n", +/// "assertion failed: `assert_option_some!(expr)`\n", /// " expr label: `a`,\n", /// " expr debug: `None`,\n", /// " expr.is_some(): `false`", @@ -155,7 +155,7 @@ mod tests { /// /// // Panic with error message /// let result = panic::catch_unwind(|| { -/// assert_some!(a, "message"); +/// assert_option_some!(a, "message"); /// //-> panic! /// }); /// assert!(result.is_err()); @@ -167,20 +167,20 @@ mod tests { /// /// # Module macros /// -/// * [`assert_some`](macro@crate::assert_some) -/// * [`assert_some_as_result`](macro@crate::assert_some_as_result) -/// * [`debug_assert_some`](macro@crate::debug_assert_some) -/// +/// * [`assert_option_some`](macro@crate::assert_option_some) +/// * [`assert_option_some_as_result`](macro@crate::assert_option_some_as_result) +/// * [`debug_assert_option_some`](macro@crate::debug_assert_option_some) +/// #[macro_export] -macro_rules! assert_some { +macro_rules! assert_option_some { ($a:expr $(,)?) => ({ - match assert_some_as_result!($a) { + match assert_option_some_as_result!($a) { Ok(()) => (), Err(err) => panic!("{}", err), } }); ($a:expr, $($message:tt)+) => ({ - match assert_some_as_result!($a) { + match assert_option_some_as_result!($a) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -189,7 +189,7 @@ macro_rules! assert_some { /// Assert expression.is_some() is true. /// -/// This macro provides the same statements as [`assert_some`](macro.assert_some.html), +/// This macro provides the same statements as [`assert_option_some`](macro.assert_option_some.html), /// except this macro's statements are only enabled in non-optimized /// builds by default. An optimized build will not execute this macro's /// statements unless `-C debug-assertions` is passed to the compiler. @@ -211,15 +211,15 @@ macro_rules! assert_some { /// /// # Module macros /// -/// * [`assert_some`](macro@crate::assert_some) -/// * [`assert_some`](macro@crate::assert_some) -/// * [`debug_assert_some`](macro@crate::debug_assert_some) +/// * [`assert_option_some`](macro@crate::assert_option_some) +/// * [`assert_option_some`](macro@crate::assert_option_some) +/// * [`debug_assert_option_some`](macro@crate::debug_assert_option_some) /// #[macro_export] -macro_rules! debug_assert_some { +macro_rules! debug_assert_option_some { ($($arg:tt)*) => { if $crate::cfg!(debug_assertions) { - $crate::assert_some!($($arg)*); + $crate::assert_option_some!($($arg)*); } }; } diff --git a/src/assert_option/mod.rs b/src/assert_option/mod.rs new file mode 100644 index 000000000..8217bf5c9 --- /dev/null +++ b/src/assert_option/mod.rs @@ -0,0 +1,30 @@ +//! Assert macros for Option (Some or None) +//! +//! These macros help compare an `Option` that is either `Some`, `None`. +//! +//! The macros use these capabilities: +//! +//! * implements `.is_some() -> boolean` +//! +//! * implements `.unwrap_some() -> comparable` +//! +//! * implements `.is_none() -> boolean` +//! +//! # Macros +//! +//! * [`assert_option_some!(a)`](macro@crate::assert_option_some) ≈ a.is_some() +//! +//! * [`assert_option_none!(a)`](macro@crate::assert_option_none) ≈ a.is_none() +//! +//! # Example +//! +//! ```rust +//! # #[macro_use] extern crate assertables; +//! # fn main() { +//! let a: Option = Option::Some(1); +//! assert_option_some!(a); +//! # } +//! ``` + +pub mod assert_option_some; +pub mod assert_option_none; diff --git a/src/assert_program_args_stderr_contains.rs b/src/assert_program_args/assert_program_args_stderr_contains.rs similarity index 100% rename from src/assert_program_args_stderr_contains.rs rename to src/assert_program_args/assert_program_args_stderr_contains.rs diff --git a/src/assert_program_args_stderr_eq.rs b/src/assert_program_args/assert_program_args_stderr_eq.rs similarity index 100% rename from src/assert_program_args_stderr_eq.rs rename to src/assert_program_args/assert_program_args_stderr_eq.rs diff --git a/src/assert_program_args_stderr_eq_expr.rs b/src/assert_program_args/assert_program_args_stderr_eq_expr.rs similarity index 100% rename from src/assert_program_args_stderr_eq_expr.rs rename to src/assert_program_args/assert_program_args_stderr_eq_expr.rs diff --git a/src/assert_program_args_stderr_ge.rs b/src/assert_program_args/assert_program_args_stderr_ge.rs similarity index 100% rename from src/assert_program_args_stderr_ge.rs rename to src/assert_program_args/assert_program_args_stderr_ge.rs diff --git a/src/assert_program_args_stderr_ge_expr.rs b/src/assert_program_args/assert_program_args_stderr_ge_expr.rs similarity index 100% rename from src/assert_program_args_stderr_ge_expr.rs rename to src/assert_program_args/assert_program_args_stderr_ge_expr.rs diff --git a/src/assert_program_args_stderr_gt.rs b/src/assert_program_args/assert_program_args_stderr_gt.rs similarity index 100% rename from src/assert_program_args_stderr_gt.rs rename to src/assert_program_args/assert_program_args_stderr_gt.rs diff --git a/src/assert_program_args_stderr_gt_expr.rs b/src/assert_program_args/assert_program_args_stderr_gt_expr.rs similarity index 100% rename from src/assert_program_args_stderr_gt_expr.rs rename to src/assert_program_args/assert_program_args_stderr_gt_expr.rs diff --git a/src/assert_program_args_stderr_is_match.rs b/src/assert_program_args/assert_program_args_stderr_is_match.rs similarity index 100% rename from src/assert_program_args_stderr_is_match.rs rename to src/assert_program_args/assert_program_args_stderr_is_match.rs diff --git a/src/assert_program_args_stderr_le.rs b/src/assert_program_args/assert_program_args_stderr_le.rs similarity index 100% rename from src/assert_program_args_stderr_le.rs rename to src/assert_program_args/assert_program_args_stderr_le.rs diff --git a/src/assert_program_args_stderr_le_expr.rs b/src/assert_program_args/assert_program_args_stderr_le_expr.rs similarity index 100% rename from src/assert_program_args_stderr_le_expr.rs rename to src/assert_program_args/assert_program_args_stderr_le_expr.rs diff --git a/src/assert_program_args_stderr_lt.rs b/src/assert_program_args/assert_program_args_stderr_lt.rs similarity index 100% rename from src/assert_program_args_stderr_lt.rs rename to src/assert_program_args/assert_program_args_stderr_lt.rs diff --git a/src/assert_program_args_stderr_lt_expr.rs b/src/assert_program_args/assert_program_args_stderr_lt_expr.rs similarity index 100% rename from src/assert_program_args_stderr_lt_expr.rs rename to src/assert_program_args/assert_program_args_stderr_lt_expr.rs diff --git a/src/assert_program_args_stderr_ne.rs b/src/assert_program_args/assert_program_args_stderr_ne.rs similarity index 100% rename from src/assert_program_args_stderr_ne.rs rename to src/assert_program_args/assert_program_args_stderr_ne.rs diff --git a/src/assert_program_args_stderr_ne_expr.rs b/src/assert_program_args/assert_program_args_stderr_ne_expr.rs similarity index 100% rename from src/assert_program_args_stderr_ne_expr.rs rename to src/assert_program_args/assert_program_args_stderr_ne_expr.rs diff --git a/src/assert_program_args_stdout_contains.rs b/src/assert_program_args/assert_program_args_stdout_contains.rs similarity index 100% rename from src/assert_program_args_stdout_contains.rs rename to src/assert_program_args/assert_program_args_stdout_contains.rs diff --git a/src/assert_program_args_stdout_eq.rs b/src/assert_program_args/assert_program_args_stdout_eq.rs similarity index 100% rename from src/assert_program_args_stdout_eq.rs rename to src/assert_program_args/assert_program_args_stdout_eq.rs diff --git a/src/assert_program_args_stdout_eq_expr.rs b/src/assert_program_args/assert_program_args_stdout_eq_expr.rs similarity index 100% rename from src/assert_program_args_stdout_eq_expr.rs rename to src/assert_program_args/assert_program_args_stdout_eq_expr.rs diff --git a/src/assert_program_args_stdout_ge.rs b/src/assert_program_args/assert_program_args_stdout_ge.rs similarity index 100% rename from src/assert_program_args_stdout_ge.rs rename to src/assert_program_args/assert_program_args_stdout_ge.rs diff --git a/src/assert_program_args_stdout_ge_expr.rs b/src/assert_program_args/assert_program_args_stdout_ge_expr.rs similarity index 100% rename from src/assert_program_args_stdout_ge_expr.rs rename to src/assert_program_args/assert_program_args_stdout_ge_expr.rs diff --git a/src/assert_program_args_stdout_gt.rs b/src/assert_program_args/assert_program_args_stdout_gt.rs similarity index 100% rename from src/assert_program_args_stdout_gt.rs rename to src/assert_program_args/assert_program_args_stdout_gt.rs diff --git a/src/assert_program_args_stdout_gt_expr.rs b/src/assert_program_args/assert_program_args_stdout_gt_expr.rs similarity index 100% rename from src/assert_program_args_stdout_gt_expr.rs rename to src/assert_program_args/assert_program_args_stdout_gt_expr.rs diff --git a/src/assert_program_args_stdout_is_match.rs b/src/assert_program_args/assert_program_args_stdout_is_match.rs similarity index 100% rename from src/assert_program_args_stdout_is_match.rs rename to src/assert_program_args/assert_program_args_stdout_is_match.rs diff --git a/src/assert_program_args_stdout_le.rs b/src/assert_program_args/assert_program_args_stdout_le.rs similarity index 100% rename from src/assert_program_args_stdout_le.rs rename to src/assert_program_args/assert_program_args_stdout_le.rs diff --git a/src/assert_program_args_stdout_le_expr.rs b/src/assert_program_args/assert_program_args_stdout_le_expr.rs similarity index 100% rename from src/assert_program_args_stdout_le_expr.rs rename to src/assert_program_args/assert_program_args_stdout_le_expr.rs diff --git a/src/assert_program_args_stdout_lt.rs b/src/assert_program_args/assert_program_args_stdout_lt.rs similarity index 100% rename from src/assert_program_args_stdout_lt.rs rename to src/assert_program_args/assert_program_args_stdout_lt.rs diff --git a/src/assert_program_args_stdout_lt_expr.rs b/src/assert_program_args/assert_program_args_stdout_lt_expr.rs similarity index 100% rename from src/assert_program_args_stdout_lt_expr.rs rename to src/assert_program_args/assert_program_args_stdout_lt_expr.rs diff --git a/src/assert_program_args_stdout_ne.rs b/src/assert_program_args/assert_program_args_stdout_ne.rs similarity index 100% rename from src/assert_program_args_stdout_ne.rs rename to src/assert_program_args/assert_program_args_stdout_ne.rs diff --git a/src/assert_program_args_stdout_ne_expr.rs b/src/assert_program_args/assert_program_args_stdout_ne_expr.rs similarity index 100% rename from src/assert_program_args_stdout_ne_expr.rs rename to src/assert_program_args/assert_program_args_stdout_ne_expr.rs diff --git a/src/assert_program_args/mod.rs b/src/assert_program_args/mod.rs new file mode 100644 index 000000000..6094269ff --- /dev/null +++ b/src/assert_program_args/mod.rs @@ -0,0 +1,76 @@ +//! Assert macros for comparing programs with arguments. +//! +//! These macros help with calling external programs with arguments, then +//! capturing the standard output stream and standard error stream. +//! +//! These macros have corresponding macros in the module [`assert_command`](module@crate::assert_command). +//! +//! Compare command using program and arguments to standard output: +//! +//! * [`assert_program_args_stdout_eq!(program1, args1, program2, args2)`](macro@crate::assert_program_args_stdout_eq) ≈ command using program1 and args1 to stdout = command2 with program2 and args2 to stdout +//! +//! * [`assert_program_args_stdout_eq_expr!(program, args, expr)`](macro@crate::assert_program_args_stdout_eq_expr) ≈ command using program and args to stdout = expr +//! +//! * [`assert_program_args_stdout_contains!(program, args, containee)`](macro@crate::assert_program_args_stdout_contains) ≈ command using program and args to stdout contains containee +//! +//! * [`assert_program_args_stdout_is_match!(program, args, matcher)`](macro@crate::assert_program_args_stdout_is_match) ≈ matcher is match with command using program and args +//! +//! Compare command using program and arguments to standard output: +//! +//! * [`assert_program_args_stderr_eq!(program1, args1, program2, args2)`](macro@crate::assert_program_args_stderr_eq) ≈ command using program1 and args1 to stderr = command2 with program2 and args2 to stderr +//! +//! * [`assert_program_args_stderr_eq_expr!(program, args, expr)`](macro@crate::assert_program_args_stderr_eq_expr) ≈ command using program and args to stderr = expr +//! +//! * [`assert_program_args_stderr_contains!(program, args, containee)`](macro@crate::assert_program_args_stderr_contains) ≈ command using program and args to stderr contains containee +//! +//! * [`assert_program_args_stderr_is_match!(program, args, matcher)`](macro@crate::assert_program_args_stderr_is_match) ≈ matcher is match with command using program and args +//! +//! +//! # Example +//! +//! ```rust +//! # #[macro_use] extern crate assertables; +//! # fn main() { +//! let a_program = "bin/printf-stdout"; +//! let a_args = ["%s", "hello"]; +//! let b_program = "bin/printf-stdout"; +//! let b_args = ["%s%s%s%s%s", "h", "e", "l", "l", "o"]; +//! assert_program_args_stdout_eq!(&a_program, &a_args, &b_program, &b_args); +//! # } +//! ``` + +// stdout +pub mod assert_program_args_stdout_eq; +pub mod assert_program_args_stdout_eq_expr; +pub mod assert_program_args_stdout_ge; +pub mod assert_program_args_stdout_ge_expr; +pub mod assert_program_args_stdout_gt; +pub mod assert_program_args_stdout_gt_expr; +pub mod assert_program_args_stdout_le; +pub mod assert_program_args_stdout_le_expr; +pub mod assert_program_args_stdout_lt; +pub mod assert_program_args_stdout_lt_expr; +pub mod assert_program_args_stdout_ne; +pub mod assert_program_args_stdout_ne_expr; + +// stdout searches +pub mod assert_program_args_stdout_contains; +pub mod assert_program_args_stdout_is_match; + +// stderr +pub mod assert_program_args_stderr_eq; +pub mod assert_program_args_stderr_eq_expr; +pub mod assert_program_args_stderr_ge; +pub mod assert_program_args_stderr_ge_expr; +pub mod assert_program_args_stderr_gt; +pub mod assert_program_args_stderr_gt_expr; +pub mod assert_program_args_stderr_le; +pub mod assert_program_args_stderr_le_expr; +pub mod assert_program_args_stderr_lt; +pub mod assert_program_args_stderr_lt_expr; +pub mod assert_program_args_stderr_ne; +pub mod assert_program_args_stderr_ne_expr; + +// stderr searches +pub mod assert_program_args_stderr_contains; +pub mod assert_program_args_stderr_is_match; diff --git a/src/assert_err.rs b/src/assert_result/assert_result_err.rs similarity index 72% rename from src/assert_err.rs rename to src/assert_result/assert_result_err.rs index b4cbb58fd..c7aee360c 100644 --- a/src/assert_err.rs +++ b/src/assert_result/assert_result_err.rs @@ -12,19 +12,19 @@ //! # use std::panic; //! # fn main() { //! let a: Result<(), i8> = Result::Err(1); -//! assert_err!(a); +//! assert_result_err!(a); //! //-> () //! //! let a: Result<(), i8> = Result::Ok(()); //! // Panic with error message //! let result = panic::catch_unwind(|| { -//! assert_err!(a); +//! assert_result_err!(a); //! //-> panic! //! }); //! assert!(result.is_err()); //! let actual = result.unwrap_err().downcast::().unwrap().to_string(); //! let expect = concat!( -//! "assertion failed: `assert_err!(expr)`\n", +//! "assertion failed: `assert_result_err!(expr)`\n", //! " expr label: `a`,\n", //! " expr debug: `Ok(())`,\n", //! " expr.is_err(): `false`", @@ -33,7 +33,7 @@ //! //! // Panic with error message //! let result = panic::catch_unwind(|| { -//! assert_err!(a, "message"); +//! assert_result_err!(a, "message"); //! //-> panic! //! }); //! assert!(result.is_err()); @@ -45,9 +45,9 @@ //! //! # Module macros //! -//! * [`assert_err`](macro@crate::assert_err) -//! * [`assert_err_as_result`](macro@crate::assert_err_as_result) -//! * [`debug_assert_err`](macro@crate::debug_assert_err) +//! * [`assert_result_err`](macro@crate::assert_result_err) +//! * [`assert_result_err_as_result`](macro@crate::assert_result_err_as_result) +//! * [`debug_assert_result_err`](macro@crate::debug_assert_result_err) /// Assert an expression.is_err() is true. /// @@ -55,7 +55,7 @@ /// /// * Otherwise, return Result `Err` with a diagnostic message. /// -/// This macro provides the same statements as [`assert_err`](macro.assert_err.html), +/// This macro provides the same statements as [`assert_result_err`](macro.assert_result_err.html), /// except this macro returns a Result, rather than doing a panic. /// /// This macro is useful for runtime checks, such as checking parameters, @@ -63,12 +63,12 @@ /// /// # Module macros /// -/// * [`assert_err`](macro@crate::assert_err) -/// * [`assert_err_as_result`](macro@crate::assert_err_as_result) -/// * [`debug_assert_err`](macro@crate::debug_assert_err) +/// * [`assert_result_err`](macro@crate::assert_result_err) +/// * [`assert_result_err_as_result`](macro@crate::assert_result_err_as_result) +/// * [`debug_assert_result_err`](macro@crate::debug_assert_result_err) /// #[macro_export] -macro_rules! assert_err_as_result { +macro_rules! assert_result_err_as_result { ($a:expr $(,)?) => {{ match (&$a) { a_val => { @@ -78,7 +78,7 @@ macro_rules! assert_err_as_result { } else { Err(format!( concat!( - "assertion failed: `assert_err!(expr)`\n", + "assertion failed: `assert_result_err!(expr)`\n", " expr label: `{}`,\n", " expr debug: `{:?}`,\n", " expr.is_err(): `{:?}`" @@ -97,21 +97,21 @@ macro_rules! assert_err_as_result { mod tests { #[test] - fn test_assert_err_as_result_x_success() { + fn test_assert_result_err_as_result_x_success() { let a: Result<(), i8> = Result::Err(1); - let x = assert_err_as_result!(a); + let x = assert_result_err_as_result!(a); assert_eq!(x, Ok(())); } #[test] - fn test_assert_err_as_result_x_failure() { + fn test_assert_result_err_as_result_x_failure() { let a: Result<(), i8> = Result::Ok(()); - let x = assert_err_as_result!(a); + let x = assert_result_err_as_result!(a); assert!(x.is_err()); assert_eq!( x.unwrap_err(), concat!( - "assertion failed: `assert_err!(expr)`\n", + "assertion failed: `assert_result_err!(expr)`\n", " expr label: `a`,\n", " expr debug: `Ok(())`,\n", " expr.is_err(): `false`" @@ -134,19 +134,19 @@ mod tests { /// # use std::panic; /// # fn main() { /// let a: Result<(), i8> = Result::Err(1); -/// assert_err!(a); +/// assert_result_err!(a); /// //-> () /// /// let a: Result<(), i8> = Result::Ok(()); /// // Panic with error message /// let result = panic::catch_unwind(|| { -/// assert_err!(a); +/// assert_result_err!(a); /// //-> panic! /// }); /// assert!(result.is_err()); /// let actual = result.unwrap_err().downcast::().unwrap().to_string(); /// let expect = concat!( -/// "assertion failed: `assert_err!(expr)`\n", +/// "assertion failed: `assert_result_err!(expr)`\n", /// " expr label: `a`,\n", /// " expr debug: `Ok(())`,\n", /// " expr.is_err(): `false`", @@ -155,7 +155,7 @@ mod tests { /// /// // Panic with error message /// let result = panic::catch_unwind(|| { -/// assert_err!(a, "message"); +/// assert_result_err!(a, "message"); /// //-> panic! /// }); /// assert!(result.is_err()); @@ -167,20 +167,20 @@ mod tests { /// /// # Module macros /// -/// * [`assert_err`](macro@crate::assert_err) -/// * [`assert_err_as_result`](macro@crate::assert_err_as_result) -/// * [`debug_assert_err`](macro@crate::debug_assert_err) +/// * [`assert_result_err`](macro@crate::assert_result_err) +/// * [`assert_result_err_as_result`](macro@crate::assert_result_err_as_result) +/// * [`debug_assert_result_err`](macro@crate::debug_assert_result_err) /// #[macro_export] -macro_rules! assert_err { +macro_rules! assert_result_err { ($a:expr $(,)?) => ({ - match assert_err_as_result!($a) { + match assert_result_err_as_result!($a) { Ok(()) => (), Err(err) => panic!("{}", err), } }); ($a:expr, $($message:tt)+) => ({ - match assert_err_as_result!($a) { + match assert_result_err_as_result!($a) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -189,7 +189,7 @@ macro_rules! assert_err { /// Assert expression.is_err() is true. /// -/// This macro provides the same statements as [`assert_err`](macro.assert_err.html), +/// This macro provides the same statements as [`assert_result_err`](macro.assert_result_err.html), /// except this macro's statements are only enabled in non-optimized /// builds by default. An optimized build will not execute this macro's /// statements unless `-C debug-assertions` is passed to the compiler. @@ -211,15 +211,15 @@ macro_rules! assert_err { /// /// # Module macros /// -/// * [`assert_err`](macro@crate::assert_err) -/// * [`assert_err`](macro@crate::assert_err) -/// * [`debug_assert_err`](macro@crate::debug_assert_err) +/// * [`assert_result_err`](macro@crate::assert_result_err) +/// * [`assert_result_err`](macro@crate::assert_result_err) +/// * [`debug_assert_result_err`](macro@crate::debug_assert_result_err) /// #[macro_export] -macro_rules! debug_assert_err { +macro_rules! debug_assert_result_err { ($($arg:tt)*) => { if $crate::cfg!(debug_assertions) { - $crate::assert_err!($($arg)*); + $crate::assert_result_err!($($arg)*); } }; } diff --git a/src/assert_ok.rs b/src/assert_result/assert_result_ok.rs similarity index 73% rename from src/assert_ok.rs rename to src/assert_result/assert_result_ok.rs index fe119c471..f657e165c 100644 --- a/src/assert_ok.rs +++ b/src/assert_result/assert_result_ok.rs @@ -12,19 +12,19 @@ //! # use std::panic; //! # fn main() { //! let a: Result<(), i8> = Result::Ok(()); -//! assert_ok!(a); +//! assert_result_ok!(a); //! //-> () //! //! let a: Result<(), i8> = Result::Err(1); //! // Panic with error message //! let result = panic::catch_unwind(|| { -//! assert_ok!(a); +//! assert_result_ok!(a); //! //-> panic! //! }); //! assert!(result.is_err()); //! let actual = result.unwrap_err().downcast::().unwrap().to_string(); //! let expect = concat!( -//! "assertion failed: `assert_ok!(expr)`\n", +//! "assertion failed: `assert_result_ok!(expr)`\n", //! " expr label: `a`,\n", //! " expr debug: `Err(1)`,\n", //! " expr.is_ok(): `false`", @@ -33,7 +33,7 @@ //! //! // Panic with error message //! let result = panic::catch_unwind(|| { -//! assert_ok!(a, "message"); +//! assert_result_ok!(a, "message"); //! //-> panic! //! }); //! assert!(result.is_err()); @@ -45,9 +45,9 @@ //! //! # Module macros //! -//! * [`assert_ok`](macro@crate::assert_ok) -//! * [`assert_ok_as_result`](macro@crate::assert_ok_as_result) -//! * [`debug_assert_ok`](macro@crate::debug_assert_ok) +//! * [`assert_result_ok`](macro@crate::assert_result_ok) +//! * [`assert_result_ok_as_result`](macro@crate::assert_result_ok_as_result) +//! * [`debug_assert_result_ok`](macro@crate::debug_assert_result_ok) /// Assert an expression.is_ok() is true. /// @@ -55,7 +55,7 @@ /// /// * Otherwise, return Result `Err` with a diagnostic message. /// -/// This macro provides the same statements as [`assert_ok`](macro.assert_ok.html), +/// This macro provides the same statements as [`assert_result_ok`](macro.assert_result_ok.html), /// except this macro returns a Result, rather than doing a panic. /// /// This macro is useful for runtime checks, such as checking parameters, @@ -63,12 +63,12 @@ /// /// # Module macros /// -/// * [`assert_ok`](macro@crate::assert_ok) -/// * [`assert_ok_as_result`](macro@crate::assert_ok_as_result) -/// * [`debug_assert_ok`](macro@crate::debug_assert_ok) +/// * [`assert_result_ok`](macro@crate::assert_result_ok) +/// * [`assert_result_ok_as_result`](macro@crate::assert_result_ok_as_result) +/// * [`debug_assert_result_ok`](macro@crate::debug_assert_result_ok) /// #[macro_export] -macro_rules! assert_ok_as_result { +macro_rules! assert_result_ok_as_result { ($a:expr $(,)?) => {{ match (&$a) { a_val => { @@ -78,7 +78,7 @@ macro_rules! assert_ok_as_result { } else { Err(format!( concat!( - "assertion failed: `assert_ok!(expr)`\n", + "assertion failed: `assert_result_ok!(expr)`\n", " expr label: `{}`,\n", " expr debug: `{:?}`,\n", " expr.is_ok(): `{:?}`", @@ -97,21 +97,21 @@ macro_rules! assert_ok_as_result { mod tests { #[test] - fn test_assert_ok_as_result_x_success() { + fn test_assert_result_ok_as_result_x_success() { let a: Result<(), i8> = Result::Ok(()); - let x = assert_ok_as_result!(a); + let x = assert_result_ok_as_result!(a); assert_eq!(x, Ok(())); } #[test] - fn test_assert_ok_as_result_x_failure() { + fn test_assert_result_ok_as_result_x_failure() { let a: Result<(), i8> = Result::Err(1); - let x = assert_ok_as_result!(a); + let x = assert_result_ok_as_result!(a); assert!(x.is_err()); assert_eq!( x.unwrap_err(), concat!( - "assertion failed: `assert_ok!(expr)`\n", + "assertion failed: `assert_result_ok!(expr)`\n", " expr label: `a`,\n", " expr debug: `Err(1)`,\n", " expr.is_ok(): `false`" @@ -134,19 +134,19 @@ mod tests { /// # use std::panic; /// # fn main() { /// let a: Result<(), i8> = Result::Ok(()); -/// assert_ok!(a); +/// assert_result_ok!(a); /// //-> () /// /// let a: Result<(), i8> = Result::Err(1); /// // Panic with error message /// let result = panic::catch_unwind(|| { -/// assert_ok!(a); +/// assert_result_ok!(a); /// //-> panic! /// }); /// assert!(result.is_err()); /// let actual = result.unwrap_err().downcast::().unwrap().to_string(); /// let expect = concat!( -/// "assertion failed: `assert_ok!(expr)`\n", +/// "assertion failed: `assert_result_ok!(expr)`\n", /// " expr label: `a`,\n", /// " expr debug: `Err(1)`,\n", /// " expr.is_ok(): `false`", @@ -155,7 +155,7 @@ mod tests { /// /// // Panic with error message /// let result = panic::catch_unwind(|| { -/// assert_ok!(a, "message"); +/// assert_result_ok!(a, "message"); /// //-> panic! /// }); /// assert!(result.is_err()); @@ -167,20 +167,20 @@ mod tests { /// /// # Module macros /// -/// * [`assert_ok`](macro@crate::assert_ok) -/// * [`assert_ok_as_result`](macro@crate::assert_ok_as_result) -/// * [`debug_assert_ok`](macro@crate::debug_assert_ok) -/// +/// * [`assert_result_ok`](macro@crate::assert_result_ok) +/// * [`assert_result_ok_as_result`](macro@crate::assert_result_ok_as_result) +/// * [`debug_assert_result_ok`](macro@crate::debug_assert_result_ok) +/// #[macro_export] -macro_rules! assert_ok { +macro_rules! assert_result_ok { ($a:expr $(,)?) => ({ - match assert_ok_as_result!($a) { + match assert_result_ok_as_result!($a) { Ok(()) => (), Err(err) => panic!("{}", err), } }); ($a:expr, $($message:tt)+) => ({ - match assert_ok_as_result!($a) { + match assert_result_ok_as_result!($a) { Ok(()) => (), Err(_err) => panic!("{}", $($message)+), } @@ -189,7 +189,7 @@ macro_rules! assert_ok { /// Assert expression.is_ok() is true. /// -/// This macro provides the same statements as [`assert_ok`](macro.assert_ok.html), +/// This macro provides the same statements as [`assert_result_ok`](macro.assert_result_ok.html), /// except this macro's statements are only enabled in non-optimized /// builds by default. An optimized build will not execute this macro's /// statements unless `-C debug-assertions` is passed to the compiler. @@ -211,15 +211,15 @@ macro_rules! assert_ok { /// /// # Module macros /// -/// * [`assert_ok`](macro@crate::assert_ok) -/// * [`assert_ok`](macro@crate::assert_ok) -/// * [`debug_assert_ok`](macro@crate::debug_assert_ok) +/// * [`assert_result_ok`](macro@crate::assert_result_ok) +/// * [`assert_result_ok`](macro@crate::assert_result_ok) +/// * [`debug_assert_result_ok`](macro@crate::debug_assert_result_ok) /// #[macro_export] -macro_rules! debug_assert_ok { +macro_rules! debug_assert_result_ok { ($($arg:tt)*) => { if $crate::cfg!(debug_assertions) { - $crate::assert_ok!($($arg)*); + $crate::assert_result_ok!($($arg)*); } }; } diff --git a/src/assert_result/mod.rs b/src/assert_result/mod.rs new file mode 100644 index 000000000..2f733bea2 --- /dev/null +++ b/src/assert_result/mod.rs @@ -0,0 +1,36 @@ +//! Assert macros for Result (Ok or Err) +//! +//! These macros help compare a `Result` that is either `Ok`, `Err`. +//! +//! The macros use these capabilities: +//! +//! * implements `.is_ok() -> boolean` +//! +//! * implements `.unwrap_ok() -> comparable` +//! +//! * implements `.is_err() -> boolean` +//! +//! * implements `.unwrap_err() -> comparable` +//! +//! # Macros +//! +//! * [`assert_result_ok!(a)`](macro@crate::assert_result_ok) ≈ a.is_ok() +//! +//! * [`assert_result_err!(a)`](macro@crate::assert_result_err) ≈ a.is_err() +//! +//! # Example +//! +//! ```rust +//! # #[macro_use] extern crate assertables; +//! # fn main() { +//! let a: Result<(), i8> = Result::Ok(()); +//! assert_result_ok!(a); +//! # } +//! ``` + +// Assert for Result +pub mod assert_result_ok; +// pub mod assert_result_ok_eq; //TODO +// pub mod assert_result_ok_eq_expr; //TODO +pub mod assert_result_err; + diff --git a/src/assert_set_disjoint.rs b/src/assert_set/assert_set_disjoint.rs similarity index 100% rename from src/assert_set_disjoint.rs rename to src/assert_set/assert_set_disjoint.rs diff --git a/src/assert_set_eq.rs b/src/assert_set/assert_set_eq.rs similarity index 100% rename from src/assert_set_eq.rs rename to src/assert_set/assert_set_eq.rs diff --git a/src/assert_set_joint.rs b/src/assert_set/assert_set_joint.rs similarity index 100% rename from src/assert_set_joint.rs rename to src/assert_set/assert_set_joint.rs diff --git a/src/assert_set_ne.rs b/src/assert_set/assert_set_ne.rs similarity index 100% rename from src/assert_set_ne.rs rename to src/assert_set/assert_set_ne.rs diff --git a/src/assert_set_subset.rs b/src/assert_set/assert_set_subset.rs similarity index 100% rename from src/assert_set_subset.rs rename to src/assert_set/assert_set_subset.rs diff --git a/src/assert_set_superset.rs b/src/assert_set/assert_set_superset.rs similarity index 100% rename from src/assert_set_superset.rs rename to src/assert_set/assert_set_superset.rs diff --git a/src/assert_set/mod.rs b/src/assert_set/mod.rs new file mode 100644 index 000000000..d72d7f0fa --- /dev/null +++ b/src/assert_set/mod.rs @@ -0,0 +1,47 @@ +//! Assert macros for comparing set collections. +//! +//! These macros help with comparison of set parameters, such as two arrays or +//! two vectors. where the item order does not matter, and the item count does +//! not matter. These macros convert their inputs into HashSet iterators. +//! +//! For eq & ne: +//! +//! * [`assert_set_eq!(a, b)`](macro@crate::assert_set_eq) ≈ set a = set b +//! +//! * [`assert_set_ne!(a, b)`](macro@crate::assert_set_ne) ≈ set a ≠ set b +//! +//! For subset & superset: +//! +//! * [`assert_set_subset!(a, b)`](macro@crate::assert_set_subset) ≈ set a ⊆ set b +//! +//! * [`assert_set_superset!(a, b)`](macro@crate::assert_set_superset) ≈ set a ⊇ set b +//! +//! For joint & disjoint: +//! +//! * [`assert_set_joint!(a, b)`](macro@crate::assert_set_joint) ≈ set a ∩ set b ≠ ∅ +//! +//! * [`assert_set_disjoint!(a, b)`](macro@crate::assert_set_disjoint) ≈ set a ∩ set b = ∅ +//! +//! +//! # Example +//! +//! ```rust +//! # #[macro_use] extern crate assertables; +//! # fn main() { +//! let a = [1, 2]; +//! let b = [2, 1]; +//! assert_set_eq!(&a, &b); +//! # } +//! ``` + +// Comparisons +pub mod assert_set_eq; +pub mod assert_set_ne; + +// Overlaps +pub mod assert_set_joint; +pub mod assert_set_disjoint; + +// Containers +pub mod assert_set_subset; +pub mod assert_set_superset; diff --git a/src/lib.rs b/src/lib.rs index 212ce26d5..14bbeec61 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,517 +1,340 @@ //! # Assertables: Rust crate of assert macros for testing -//! +//! //! The `assertables` Rust crate provides many assert macros to improve your //! compile-time tests and run-time reliability. -//! -//! Crate: -//! [https://crates.io/crates/assertables](https://crates.io/crates/assertables) -//! -//! Docs: [https://docs.rs/assertables/](https://docs.rs/assertables/) -//! -//! Repo: -//! [https://github.com/sixarm/assertables-rust-crate/](https://github.com/sixarm/assertables-rust-crate/) -//! -//! -//! ## Why use this? -//! -//! When you write Rust tests, then you can use Rust assert macros, such as: -//! +//! +//! * Crate: [https://crates.io/crates/assertables](https://crates.io/crates/assertables) +//! * Docs: [https://docs.rs/assertables/](https://docs.rs/assertables/) +//! * Repo: [https://github.com/sixarm/assertables-rust-crate/](https://github.com/sixarm/assertables-rust-crate/) +//! * Contact: [joel@joelparkerhenderson.com](mailto:joel@joelparkerhenderson.com) +//! +//! +//! ## Introduction +//! +//! The Rust programming language provides a few built-in assert macros to test code: +//! +//! ```ignore +//! assert!() +//! assert_eq!(a, b) +//! assert_ne!(a, b) +//! ``` +//! +//! The assertables crate provides many more, so you can write smarter tests. +//! +//! For values: +//! +//! ```ignore +//! assert_gt!(a, b) +//! assert_lt!(a, b) +//! ``` +//! +//! For numbers: +//! //! ```ignore -//! assert_eq!(value1, value2) +//! assert_in_delta!(a, b, delta) +//! assert_in_epsilon!(a, b, epsilon) //! ``` -//! -//! The assertables Rust crate provides many more assert macros for values, -//! strings, vectors, paths, readers, commands, and more, such as: -//! +//! +//! For strings: +//! //! ```ignore -//! // value1 greater than value2 -//! assert_gt!(value1, value2); -//! -//! // string1 starts with string2 -//! assert_starts_with!(string1, string2); -//! -//! // regex is match of string -//! assert_is_match!(regex, string); -//! -//! // vector1 as set ⊆ vector2 as set -//! assert_set_subset!(vector1, vector2); -//! -//! // function1 ok = function2 ok -//! assert_fn_ok_eq!(function1, function2); -//! -//! // path1 as string = path2 as string -//! assert_fs_read_to_string_eq!(path1, path2); -//! -//! // reader1 as string = reader2 as string -//! assert_io_read_to_string_eq!(reader1, reader2); -//! -//! // command1 standard output = command2 standard output -//! assert_command_stdout_eq!(command1, command2); +//! assert_starts_with!(a, b) +//! assert_ends_with!(a, b) //! ``` -//! -//! See below for the complete list of all the assert macros. -//! -//! +//! +//! For matching: +//! +//! ```ignore +//! assert_contains!(a, b) +//! assert_is_match!(a, b) +//! ``` +//! +//! For collections such as arrays, vectors, maps, sets: +//! +//! ```ignore +//! assert_set_subset!(a, b) +//! assert_set_disjoint!(a, b) +//! ``` +//! +//! For file system paths and input/output readers: +//! +//! ```ignore +//! assert_fs_read_to_string_eq!(path1, path2) +//! assert_io_read_to_string_eq!(reader1, reader2) +//! ``` +//! +//! For command capture of standard output and standard error: +//! +//! ```ignore +//! assert_command_stdout_eq!(command1 stdout = command2 stdout); +//! assert_command_stderr_eq!(command1, command2); +//! ``` +//! //! ### Benefits -//! -//! * Your tests are more purposeful and powerful, which helps your code be more -//! reliable. -//! -//! * Your assert failures provide more information, which helps you -//! troubleshoot faster. -//! -//! * You gain runtime asserts, which helps you with validations and -//! verifications. -//! +//! +//! * Your tests are more purposeful and powerful. This helps your code be more +//! reliable. +//! +//! * Your assert failures provide more information. This helps you +//! troubleshoot faster. +//! +//! * You gain runtime asserts. This helps you with validations and +//! verifications. +//! +//! //! ### Features -//! +//! //! * Easy to use: each macro is well-documented with runnable examples and -//! tests. -//! +//! tests. +//! //! * Zero overhead: if you don't use a macro, then it's never compiled into -//! your code. -//! -//! * Three forms: `assert_*` for development, `debug_assert_*` for debugging, -//! and `assert_*_as_result` for production. -//! -//! +//! your code. +//! +//! * Zero dependencies: the crate has no release dependencies, and just a short list of development dependencies. +//! +//! +//! ### Forms +//! +//! Assertables macros come in three forms: +//! +//! * Panic macro: `assert_*` is for typical test uses with `cargo test`. +//! +//! * Debug macro: `debug_assert_*` is for runtime diagnostic configuration. +//! +//! * Result macro: `assert_*_as_result` is for runtime production configuration, such as for site reliability engineering, chaos engineering, validations, verifications, sanitizations, and more. +//! +//! +//! ### Naming conventions +//! +//! Abbreviations: +//! +//! * `eq` ≈ equal +//! +//! * `ne` ≈ not equal. +//! +//! * `lt` ≈ less than +//! +//! * `le` ≈ less than or equal. +//! +//! * `gt` ≈ greater than +//! +//! * `ge` ≈ greater than or equal. +//! +//! +//! Shorthands: +//! +//! * `path` ≈ implements `AsRef` such as `std::path::PathBuf`. +//! +//! * `reader` ≈ implements method `.read_to_string()` such as `std::io::Read`. +//! +//! * `matcher` ≈ implements `.is_match(…)` such as `regex::Regex`. +//! +//! * `containee` ≈ usable inside `.contains(…)` such as a +//! `std::string::String` substring. +//! +//! * `set` ≈ a collection such as `::std::collections::BTreeSet`. +//! +//! * `bag` ≈ a collection such as `::std::collections::BTreeMap` which has +//! key counts. +//! +//! //! ## Complete list of assert macros -//! -//! +//! +//! //! ### assert_* for values -//! +//! //! Compare values: -//! +//! //! * `assert_eq!(a, b)` ≈ a = b -//! +//! //! * `assert_ne!(a, b)` ≈ a ≠ b -//! +//! //! * `assert_ge!(a, b)` ≈ a ≥ b -//! +//! //! * `assert_gt!(a, b)` ≈ a > b -//! +//! //! * `assert_le!(a, b)` ≈ a ≤ b -//! +//! //! * `assert_lt!(a, b)` ≈ a < b -//! -//! Compare values by using nearness: -//! +//! +//! +//! ## For infix operators +//! +//! Compare values by using an infix value operator: +//! +//! * `assert_infix!(a == b)` ≈ a == b +//! +//! * `assert_infix!(a != b)` ≈ a ≠ b +//! +//! * `assert_infix!(a < b)` ≈ a < b +//! +//! * `assert_infix!(a <= b)` ≈ a ≤ b +//! +//! * `assert_infix!(a > b)` ≈ a > b +//! +//! * `assert_infix!(a >= b)` ≈ a ≥ b +//! +//! Relate values by using an infix logical operator: +//! +//! * `assert_infix!(a & b)` ≈ a ∧ b ≈ a AND b +//! +//! * `assert_infix!(a | b)` ≈ a ∨ b ≈ a OR b +//! +//! * `assert_infix!(a ^ b)` ≈ a ⊻ b ≈ a XOR b +//! +//! * `assert_infix!(a && b)` ≈ a …∧ b ≈ a lazy AND b +//! +//! * `assert_infix!(a || b)` ≈ a …∨ b ≈ a lazy OR b +//! +//! +//! ### For nearness +//! +//! Compare values by using nearness math conventions: +//! //! * `assert_in_delta!(a, b, delta)` ≈ | a - b | ≤ delta -//! +//! //! * `assert_in_epsilon(a, b, epsilon)` ≈ | a - b | ≤ epsilon * min(a, b) -//! -//! -//! ### assert_* for strings and matchers -//! +//! +//! +//! ### For strings +//! //! These macros help with strings and also other structures that provide //! matchers such as `starts_with`, `ends_width`, `contains`, and `is_match`. -//! +//! Each macro also has a corresponding `not` version. +//! //! * `assert_starts_with(a, b)` ≈ a.starts_with(b) -//! -//! * `assert_not_starts_with(a, b)` ≈ !a.starts_with(b) -//! +//! //! * `assert_ends_with(a, b)` ≈ a.ends_with(b) -//! -//! * `assert_not_ends_with(a, b)` ≈ !a.ends_with(b) -//! +//! //! * `assert_contains(container, containee)` ≈ container.contains(containee) -//! -//! * `assert_not_contains(container, containee)` ≈ -//! !container.contains(containee) -//! +//! //! * `assert_is_match(matcher, matchee)` ≈ matcher.is_match(matchee) -//! -//! * `assert_not_match(matcher, matchee)` ≈ !matcher.is_match(matchee) -//! -//! -//! ### assert_* for Result -//! -//! * `assert_ok(a)` ≈ a.is_ok() -//! -//! * `assert_ok_eq(a, b)` ≈ a.ok() = b.ok() (TODO) -//! -//! * `assert_ok_eq_expr(a, b)` ≈ a.ok() = b (TODO) -//! -//! * `assert_err(a)` ≈ a.is_err() -//! -//! -//! ### assert_* for Option -//! -//! * `assert_some(a)` ≈ a.is_some() -//! -//! * `assert_some_eq(a, b)` ≈ a.some() = b.some() (TODO) -//! -//! * `assert_some_eq_expr(a, b)` ≈ a.some() = b (TODO) -//! -//! * `assert_none(a)` ≈ a.is_none() -//! -//! -//! ### assert_set_* for set collection comparisons -//! -//! These macros help with comparison of set parameters, such as two arrays or -//! two vectors. where the item order does not matter, and the item count does -//! not matter. These macros convert their inputs into HashSet iterators. -//! -//! * `assert_set_eq!(a, b)` ≈ set a = set b -//! -//! * `assert_set_ne!(a, b)` ≈ set a ≠ set b -//! -//! * `assert_set_subset!(a, b)` ≈ set a ⊆ set b -//! -//! * `assert_set_superset!(a, b)` ≈ set a ⊇ set b -//! -//! * `assert_set_joint!(a, b)` ≈ set a ∩ set b ≠ ∅ -//! -//! * `assert_set_disjoint!(a, b)` ≈ set a ∩ set b = ∅ -//! -//! -//! ### assert_bag_* for bag collection comparisons -//! -//! These macros help with comparison of bag parameters, such as comparison of -//! two arrays or two vectors, where the item order does not matter, and the -//! item count does matter. These macros convert their inputs into HashMap -//! iterators. -//! -//! * `assert_bag_eq(a, b)` ≈ bag a = bag b -//! -//! * `assert_bag_ne(a, b)` ≈ bag a ≠ bag b -//! -//! * `assert_bag_subbag(a, b)` ≈ bag a ⊆ bag b -//! -//! * `assert_bag_superbag(a, b)` ≈ bag a ⊇ bag b -//! -//! -//! ### assert_fn_* for function return-value comparisons -//! -//! Compare a function with another function: -//! -//! * `assert_fn_eq!(function1, function2)` ≈ function1() = function2() -//! -//! * `assert_fn_ne!(function1, function2)` ≈ function1() ≠ function2() -//! -//! * `assert_fn_ge!(function1, function2)` ≈ function1() ≥ function2() -//! -//! * `assert_fn_gt!(function1, function2)` ≈ function1() > function2() -//! -//! * `assert_fn_le!(function1, function2)` ≈ function1() ≤ function2() -//! -//! * `assert_fn_lt!(function1, function2)` ≈ function1() < function2() -//! -//! Compare a function with an expression: -//! -//! * `assert_fn_eq_expr!(function, expr)` ≈ function() = expr -//! -//! * `assert_fn_ne_expr!(function, expr)` ≈ function() ≠ expr -//! -//! * `assert_fn_ge_expr!(function, expr)` ≈ function() ≥ expr -//! -//! * `assert_fn_gt_expr!(function, expr)` ≈ function() > expr -//! -//! * `assert_fn_le_expr!(function, expr)` ≈ function() ≤ expr -//! -//! * `assert_fn_lt_expr!(function, expr)` ≈ function() < expr -//! -//! -//! ### assert_fn_ok_* for Result Ok() comparisons -//! -//! Compare a function Ok() with another function Ok(): -//! -//! * `assert_fn_ok_eq!(function1, function2)` ≈ function1().ok().unwrap() = function2().ok().unwrap() -//! -//! * `assert_fn_ok_ne!(function1, function2)` ≈ function1().ok().unwrap() ≠ function2().ok().unwrap() -//! -//! * `assert_fn_ok_ge!(function1, function2)` ≈ function1().ok().unwrap() ≥ function2().ok().unwrap() -//! -//! * `assert_fn_ok_gt!(function1, function2)` ≈ function1().ok().unwrap() > function2().ok().unwrap() -//! -//! * `assert_fn_ok_le!(function1, function2)` ≈ function1().ok().unwrap() ≤ function2().ok().unwrap() -//! -//! * `assert_fn_ok_lt!(function1, function2)` ≈ function1().ok().unwrap() < function2().ok().unwrap() -//! -//! Compare a function Ok() with an expression: -//! -//! * `assert_fn_ok_eq_expr!(function, expr)` ≈ function().ok().unwrap() = expr -//! -//! * `assert_fn_ok_ne_expr!(function, expr)` ≈ function().ok().unwrap() ≠ expr -//! -//! * `assert_fn_ok_ge_expr!(function, expr)` ≈ function().ok().unwrap() ≥ expr -//! -//! * `assert_fn_ok_gt_expr!(function, expr)` ≈ function().ok().unwrap() > expr -//! -//! * `assert_fn_ok_le_expr!(function, expr)` ≈ function().ok().unwrap() ≤ expr -//! -//! * `assert_fn_ok_lt_expr!(function, expr)` ≈ function().ok().unwrap() < expr -//! -//! -//! ### assert_fn_err_* for function Err() comparisons -//! -//! Compare a function Err() with another function Err(): -//! -//! * `assert_fn_err_eq!(function1, function2)` ≈ function1().unwrap_err() = function2().unwrap_err() -//! -//! * `assert_fn_err_ne!(function1, function2)` ≈ function1().unwrap_err() ≠ function2().unwrap_err() -//! -//! * `assert_fn_err_ge!(function1, function2)` ≈ function1().unwrap_err() ≥ function2().unwrap_err() -//! -//! * `assert_fn_err_gt!(function1, function2)` ≈ function1().unwrap_err() > function2().unwrap_err() -//! -//! * `assert_fn_err_le!(function1, function2)` ≈ function1().unwrap_err() ≤ function2().unwrap_err() -//! -//! * `assert_fn_err_lt!(function1, function2)` ≈ function1().unwrap_err() < function2().unwrap_err() -//! -//! Compare a function Err() with an expression: -//! -//! * `assert_fn_err_eq!(function, expr)` ≈ function().unwrap_err() = expr -//! -//! * `assert_fn_err_ne!(function, expr)` ≈ function().unwrap_err() ≠ expr -//! -//! * `assert_fn_err_ge!(function, expr)` ≈ function().unwrap_err() ≥ expr -//! -//! * `assert_fn_err_gt!(function, expr)` ≈ function().unwrap_err() > expr -//! -//! * `assert_fn_err_le!(function, expr)` ≈ function().unwrap_err() ≤ expr -//! -//! * `assert_fn_err_lt!(function, expr)` ≈ function().unwrap_err() < expr -//! -//! -//! ### assert_fs_read_to_string_* for std::fs path comparisons -//! -//! These macros help with file system paths, such as disk files, `Path`, `PathBuf`, -//! the trait `AsRef`, and anything that is readable via -//! `std::fs::read_to_string(…)`. -//! -//! Compare a path with another path: -//! -//! * `assert_fs_read_to_string_eq!(path1, path2)` ≈ std::fs::read_to_string(path1) = std::fs::read_to_string(path2) -//! -//! * `assert_fs_read_to_string_ne!(path1, path2)` ≈ std::fs::read_to_string(path1) ≠ std::fs::read_to_string(path2) -//! -//! * `assert_fs_read_to_string_ge!(path1, path2)` ≈ std::fs::read_to_string(path1) ≥ std::fs::read_to_string(path2) -//! -//! * `assert_fs_read_to_string_gt!(path1, path2)` ≈ std::fs::read_to_string(path1) > std::fs::read_to_string(path2) -//! -//! * `assert_fs_read_to_string_le!(path1, path2)` ≈ std::fs::read_to_string(path1) ≤ std::fs::read_to_string(path2) -//! -//! * `assert_fs_read_to_string_lt!(path1, path2)` ≈ std::fs::read_to_string(path1) < std::fs::read_to_string(path2) -//! -//! Compare a path with an expression: -//! -//! * `assert_fs_read_to_string_eq_expr(path, expr)` ≈ std::fs::read_to_string(path) = expr -//! -//! * `assert_fs_read_to_string_ne_expr(path, expr)` ≈ std::fs::read_to_string(path) ≠ expr -//! -//! * `assert_fs_read_to_string_ge_expr(path, expr)` ≈ std::fs::read_to_string(path) ≥ expr -//! -//! * `assert_fs_read_to_string_gt_expr(path, expr)` ≈ std::fs::read_to_string(path) > expr -//! -//! * `assert_fs_read_to_string_le_expr(path, expr)` ≈ std::fs::read_to_string(path) ≤ expr -//! -//! * `assert_fs_read_to_string_lt_expr(path, expr)` ≈ std::fs::read_to_string(path) < expr -//! -//! Compare a path with its contents: -//! -//! * `assert_fs_read_to_string_contains(path, containee)` ≈ std::fs::read_to_string(path).contains(containee) -//! -//! * `assert_fs_read_to_string_matches(path, matcher)` ≈ matcher.is_match(std::fs::read_to_string(path)) -//! -//! -//! ### assert_io_read_to_string_* for std::io::Read comparisons -//! -//! These macros help with readers, such as file handles, byte arrays, input -//! streams, and the trait std::io::Read. -//! -//! Compare a reader with another reader: -//! -//! * `assert_io_read_to_string_eq!(reader1, reader2)` ≈ reader1.read_to_string() = reader2.read_to_string() -//! -//! * `assert_io_read_to_string_ne!(reader1, reader2)` ≈ reader1.read_to_string() ≠ reader2.read_to_string() -//! -//! * `assert_io_read_to_string_ge!(reader1, reader2)` ≈ reader1.read_to_string() ≥ reader2.read_to_string() -//! -//! * `assert_io_read_to_string_gt!(reader1, reader2)` ≈ reader1.read_to_string() > reader2.read_to_string() -//! -//! * `assert_io_read_to_string_le!(reader1, reader2)` ≈ reader1.read_to_string() ≤ reader2.read_to_string() -//! -//! * `assert_io_read_to_string_lt!(reader1, reader2)` ≈ reader1.read_to_string() < reader2.read_to_string() -//! -//! Compare a reader with an expression: -//! -//! * `assert_io_read_to_string_eq_expr(reader, expr)` ≈ reader.read_to_string() = expr -//! -//! * `assert_io_read_to_string_ne_expr(reader, expr)` ≈ reader.read_to_string() ≠ expr -//! -//! * `assert_io_read_to_string_ge_expr(reader, expr)` ≈ reader.read_to_string() ≥ expr -//! -//! * `assert_io_read_to_string_gt_expr(reader, expr)` ≈ reader.read_to_string() > expr -//! -//! * `assert_io_read_to_string_le_expr(reader, expr)` ≈ reader.read_to_string() ≤ expr -//! -//! * `assert_io_read_to_string_lt_expr(reader, expr)` ≈ reader.read_to_string() < expr -//! -//! Compare a reader with its contents: -//! -//! * `assert_io_read_to_string_contains(reader, containee)` ≈ reader.read_to_string().contains(containee) -//! -//! * `assert_io_read_to_string_matches(reader, matcher)` ≈ matcher.is_match(reader.read_to_string()) -//! -//! -//! ### assert_command_* for process command comparisons -//! -//! Compare command standard output string: -//! -//! * `assert_command_stdout_eq!(command1, command2)` ≈ command1 stdout = command2 stdout -//! -//! * `assert_command_stdout_eq_expr!(command, expr)` ≈ command stdout = expr -//! -//! * `assert_command_stdout_contains!(command, containee)` ≈ command stdout contains containee -//! -//! * `assert_command_stdout_is_match!(command, matcher)` ≈ command stdout is a matcher match -//! -//! Compare command standard error string: -//! -//! * `assert_command_stderr_eq!(command1, command2)` ≈ command1 stderr = command2 stderr -//! -//! * `assert_command_stderr_eq_expr!(command, expr)` ≈ command stderr = expr -//! -//! * `assert_command_stderr_contains!(command, containee)` ≈ command stderr contains containee -//! -//! * `assert_command_stderr_is_match!(command, matcher)` ≈ command stderr is a matcher match -//! -//! -//! ### assert_program_args_* for process command comparisons created via program name and args interator -//! -//! Compare command using program and arguments to standard output: -//! -//! * `assert_program_args_stdout_eq!(program1, args1, program2, args2)` ≈ command using program1 and args1 to stdout = command2 with program2 and args2 to stdout -//! -//! * `assert_program_args_stdout_eq_expr!(program, args, expr)` ≈ command using program and args to stdout = expr -//! -//! * `assert_program_args_stdout_contains!(program, args, containee)` ≈ command using program and args to stdout contains containee -//! -//! * `assert_program_args_stdout_is_match!(program, args, matcher)` ≈ matcher is match with command using program and args -//! -//! Compare command using program and arguments to standard output: -//! -//! * `assert_program_args_stderr_eq!(program1, args1, program2, args2)` ≈ command using program1 and args1 to stderr = command2 with program2 and args2 to stderr -//! -//! * `assert_program_args_stderr_eq_expr!(program, args, expr)` ≈ command using program and args to stderr = expr -//! -//! * `assert_program_args_stderr_contains!(program, args, containee)` ≈ command using program and args to stderr contains containee -//! -//! * `assert_program_args_stderr_is_match!(program, args, matcher)` ≈ matcher is match with command using program and args -//! -//! -//! ## Naming conventions -//! -//! Abbreviations: -//! -//! * `eq` ≈ equal -//! -//! * `ne` ≈ not equal. -//! -//! * `ge` ≈ greater than or equal. -//! -//! * `gt` ≈ greater than -//! -//! * `le` ≈ less than or equal. -//! -//! * `lt` ≈ less than -//! -//! Shorthands: -//! -//! * `path` ≈ implements `AsRef` such as `std::path::PathBuf`. -//! -//! * `reader` ≈ implements method `.read_to_string()` such as `std::io::Read`. -//! -//! * `matcher` ≈ implements `.is_match(…)` such as `regex::Regex`. -//! -//! * `containee` ≈ usable inside `.contains(…)` such as a `std::string::String` -//! substring. -//! -//! * `set` ≈ a collection such as `::std::collections::BTreeSet`. -//! -//! * `bag` ≈ a collection such as `::std::collections::BTreeMap` which has key -//! counts. -//! -//! +//! +//! +//! ### For much more +//! +//! There are many more macros that are conveniently grouped into modules. +//! +//! For enums: +//! +//! * [`assert_option`] for `Option` (`Some`, `None`) +//! +//! * [`assert_result`] for `Result` (`Ok`, `Err`) +//! +//! For collections, such as arrays, vectors, lists, maps: +//! +//! * [`assert_set`] for set collections +//! +//! * [`assert_bag`] for bag collections +//! +//! For functions: +//! +//! * [`assert_fn`] for functions in general. +//! +//! * [`assert_fn_ok`] for functions that return Result::Ok. +//! +//! * [`assert_fn_err`] for functions that return Result::Err. +//! +//! For readers: +//! +//! * [`assert_fs_read_to_string`] for file system path contents. +//! +//! * [`assert_io_read_to_string`] for input/output reader streams. +//! +//! For external calls: +//! +//! * [`assert_command`] for commands and their stdout & stderr. +//! +//! * [`assert_program_args`] for programs with args and their stdout & stderr. +//! +//! //! ## Forms -//! -//! +//! +//! //! ### Forms for panic! versus Err() -//! +//! //! The assert macros have three forms that you can use depending on your goals: -//! -//! +//! +//! //! ```ignore //! assert_gt!(a, b); // return () or panic!(…), for typical compile-time testing -//! +//! //! debug_assert_gt!(a, b); // return () or panic!(…), for a non-optimized runtime -//! +//! //! assert_gt_as_result!(a, b); // return Result Ok(()) or Err(…), for any runtime //! ``` -//! -//! +//! +//! //! ### Forms for messages -//! +//! //! The assert macros have forms for default messages versus custom messages. -//! +//! //! ```ignore //! assert_gt!(1, 2); // panic!("assertion failed: assert_gt(1, 2)…") -//! +//! //! assert_gt!(1, 2, "message"); // panic!("message") //! ``` -//! -//! +//! +//! //! ### Forms for comparing an other versus an expression -//! +//! //! Some assert macros have forms for comparing an other versus an expression: -//! +//! //! ```ignore //! assert_io_read_to_string_eq!(reader1, reader2); // reader1.read_to_string() = reader2.read_to_string() -//! +//! //! assert_io_read_to_string_eq_expr!(reader, expr); // reader1.read_to_string() = expr //! ``` -//! -//! -//! ## Changes summary -//! -//! -//! ### Version 8.x top changes -//! +//! +//! +//! ## Change highlights +//! +//! +//! ### Version 8 +//! +//! 8.2: +//! +//! * Add `assert_infix` +//! +//! * Refactor into submodules for better discoverability and testability. +//! +//! 8.1: +//! +//! * Add Result macros `assert_result_ok` and `assert_result_err` +//! +//! * Add Option macros `assert_option_some` and `assert_option_none` +//! +//! 8.0: +//! //! * Add `assert_fs_read_to_string_*` macros for comparing files. -//! -//! * Rename `assert_read_to_string_*` macros to `assert_io_read_to_string_*`. -//! If you use these macros, then please update your code to use the new -//! naming convention. -//! -//! * Add `rustdoc` documentation for all modules. -//! -//! -//! ### Version 7.x top changes -//! +//! +//! * Breaking change: rename `assert_read_to_string_*` macros to `assert_io_read_to_string_*`. If you use these macros, then please update your code to use the new naming convention. +//! +//! +//! ### Version 7 +//! //! * Add `assert_in_delta`, `assert_in_epsilon`. -//! +//! //! * Add `assert_fn_*` macros with multiple arities. -//! +//! //! * Add `cargo release` for optimized tagged releases. -//! -//! -//! ### Version 6.x top changes -//! -//! * Add `assert_starts_with`, `assert_ends_with`, `assert_contains`, -//! `assert_is_match`. -//! +//! +//! +//! ### Version 6 +//! +//! * Add `assert_starts_with`, `assert_ends_with`, `assert_contains`, `assert_is_match`. +//! //! * Add `debug_assert_*` macros everywhere. -//! +//! //! * Add `GPL-3.0` license. -//! -//! +//! +//! //! ## Tracking -//! +//! //! * Package: assertables-rust-crate -//! * Version: 8.1.0 +//! * Version: 8.2.0 //! * Created: 2021-03-30T15:47:49Z -//! * Updated: 2024-09-03T21:12:07Z +//! * Updated: 2024-09-04T20:21:53Z //! * License: MIT or Apache-2.0 or GPL-2.0 or GPL-3.0 or contact us for more //! * Contact: Joel Parker Henderson (joel@sixarm.com) @@ -529,19 +352,6 @@ pub mod assert_ne; // Assert value nearness pub mod assert_in_delta; pub mod assert_in_epsilon; - -// Assert for Result -pub mod assert_ok; -// pub mod assert_ok_eq; //TODO -// pub mod assert_ok_eq_expr; //TODO -pub mod assert_err; - -// Assert for Option -pub mod assert_some; -//pub mod assert_some_eq; //TODO -//pub mod assert_some_eq_expr; //TODO -pub mod assert_none; - // Assert value matching pub mod assert_contains; pub mod assert_ends_with; @@ -552,145 +362,26 @@ pub mod assert_not_match; pub mod assert_not_starts_with; pub mod assert_starts_with; -// Assertable iterator-related set-based comparison -pub mod assert_set_disjoint; -pub mod assert_set_eq; -pub mod assert_set_joint; -pub mod assert_set_ne; -pub mod assert_set_subset; -pub mod assert_set_superset; - -// Assertable iterator-related bag-based comparison -pub mod assert_bag_eq; -pub mod assert_bag_ne; -pub mod assert_bag_subbag; -pub mod assert_bag_superbag; - -// Assert function return -pub mod assert_fn_eq; -pub mod assert_fn_eq_expr; -pub mod assert_fn_ge; -pub mod assert_fn_ge_expr; -pub mod assert_fn_gt; -pub mod assert_fn_gt_expr; -pub mod assert_fn_le; -pub mod assert_fn_le_expr; -pub mod assert_fn_lt; -pub mod assert_fn_lt_expr; -pub mod assert_fn_ne; -pub mod assert_fn_ne_expr; - -// Assert function Ok() -pub mod assert_fn_ok_eq; -pub mod assert_fn_ok_eq_expr; -pub mod assert_fn_ok_ge; -pub mod assert_fn_ok_ge_expr; -pub mod assert_fn_ok_gt; -pub mod assert_fn_ok_gt_expr; -pub mod assert_fn_ok_le; -pub mod assert_fn_ok_le_expr; -pub mod assert_fn_ok_lt; -pub mod assert_fn_ok_lt_expr; -pub mod assert_fn_ok_ne; -pub mod assert_fn_ok_ne_expr; - -// Assert function Err() -pub mod assert_fn_err_eq; -pub mod assert_fn_err_eq_expr; -pub mod assert_fn_err_ge; -pub mod assert_fn_err_ge_expr; -pub mod assert_fn_err_gt; -pub mod assert_fn_err_gt_expr; -pub mod assert_fn_err_le; -pub mod assert_fn_err_le_expr; -pub mod assert_fn_err_lt; -pub mod assert_fn_err_lt_expr; -pub mod assert_fn_err_ne; -pub mod assert_fn_err_ne_expr; - -// Assert std::io read_to_string comparisons -pub mod assert_io_read_to_string_contains; -pub mod assert_io_read_to_string_eq; -pub mod assert_io_read_to_string_eq_expr; -pub mod assert_io_read_to_string_ge; -pub mod assert_io_read_to_string_ge_expr; -pub mod assert_io_read_to_string_gt; -pub mod assert_io_read_to_string_gt_expr; -pub mod assert_io_read_to_string_le; -pub mod assert_io_read_to_string_le_expr; -pub mod assert_io_read_to_string_lt; -pub mod assert_io_read_to_string_lt_expr; -pub mod assert_io_read_to_string_matches; -pub mod assert_io_read_to_string_ne; -pub mod assert_io_read_to_string_ne_expr; - -// Assert std::fs read_to_string comparisons -pub mod assert_fs_read_to_string_contains; -pub mod assert_fs_read_to_string_eq; -pub mod assert_fs_read_to_string_eq_expr; -pub mod assert_fs_read_to_string_ge; -pub mod assert_fs_read_to_string_ge_expr; -pub mod assert_fs_read_to_string_gt; -pub mod assert_fs_read_to_string_gt_expr; -pub mod assert_fs_read_to_string_le; -pub mod assert_fs_read_to_string_le_expr; -pub mod assert_fs_read_to_string_lt; -pub mod assert_fs_read_to_string_lt_expr; -pub mod assert_fs_read_to_string_matches; -pub mod assert_fs_read_to_string_ne; -pub mod assert_fs_read_to_string_ne_expr; - -// Assert command stdout -pub mod assert_command_stdout_eq; -pub mod assert_command_stdout_eq_expr; - -// Assert command stdout specializations -pub mod assert_command_stdout_contains; -pub mod assert_command_stdout_is_match; - -// Assert command stderr -pub mod assert_command_stderr_eq; -pub mod assert_command_stderr_eq_expr; - -// Assert command stderr specializations -pub mod assert_command_stderr_contains; -pub mod assert_command_stderr_is_match; +// For maybes +pub mod assert_result; +pub mod assert_option; -// Assert program args stdout -pub mod assert_program_args_stdout_eq; -pub mod assert_program_args_stdout_eq_expr; -pub mod assert_program_args_stdout_ge; -pub mod assert_program_args_stdout_ge_expr; -pub mod assert_program_args_stdout_gt; -pub mod assert_program_args_stdout_gt_expr; -pub mod assert_program_args_stdout_le; -pub mod assert_program_args_stdout_le_expr; -pub mod assert_program_args_stdout_lt; -pub mod assert_program_args_stdout_lt_expr; -pub mod assert_program_args_stdout_ne; -pub mod assert_program_args_stdout_ne_expr; +// For collections +pub mod assert_set; +pub mod assert_bag; -// Assert program args stdout specializations -pub mod assert_program_args_stdout_contains; -pub mod assert_program_args_stdout_is_match; +// For functions +pub mod assert_fn; +pub mod assert_fn_ok; +pub mod assert_fn_err; -// Assert program args stderr -pub mod assert_program_args_stderr_eq; -pub mod assert_program_args_stderr_eq_expr; -pub mod assert_program_args_stderr_ge; -pub mod assert_program_args_stderr_ge_expr; -pub mod assert_program_args_stderr_gt; -pub mod assert_program_args_stderr_gt_expr; -pub mod assert_program_args_stderr_le; -pub mod assert_program_args_stderr_le_expr; -pub mod assert_program_args_stderr_lt; -pub mod assert_program_args_stderr_lt_expr; -pub mod assert_program_args_stderr_ne; -pub mod assert_program_args_stderr_ne_expr; +// For reading +pub mod assert_fs_read_to_string; +pub mod assert_io_read_to_string; -// Assert program args stderr specializations -pub mod assert_program_args_stderr_contains; -pub mod assert_program_args_stderr_is_match; +// For externals +pub mod assert_command; +pub mod assert_program_args; // Experimental - work in progress - unsupported -pub mod assert_cmp; \ No newline at end of file +pub mod assert_infix; \ No newline at end of file diff --git a/tests/smoke_test.rs b/tests/smoke_test.rs index 7dc654c15..801edd5a3 100644 --- a/tests/smoke_test.rs +++ b/tests/smoke_test.rs @@ -2,27 +2,51 @@ use assertables::*; use regex::*; #[test] -fn smoke_test_top() { +fn assert_values() { assert_eq!(1, 1); - assert_ge!(2, 1); - assert_gt!(2, 1); - assert_le!(1, 2); - assert_lt!(1, 2); assert_ne!(2, 1); + assert_lt!(1, 2); + assert_le!(1, 2); + assert_gt!(2, 1); + assert_ge!(2, 1); +} - // Nearness +#[test] +fn assert_nearness() { assert_in_delta!(1, 1, 0); assert_in_epsilon!(1, 1, 0); +} - // Inners +#[test] +fn assert_inners() { assert_starts_with!("alfa", "al"); + assert_not_starts_with!("alfa", "zz"); assert_ends_with!("alfa", "fa"); + assert_not_ends_with!("alfa", "zz"); assert_contains!("alfa", "lf"); + assert_not_contains!("alfa", "zz"); assert_is_match!(Regex::new(r"lf").unwrap(), "alfa"); + assert_not_match!(Regex::new(r"zz").unwrap(), "alfa"); +} + +#[test] +fn assert_return_enum() { + let x: Result = Result::Ok(1); + assert_result_ok!(x); + let x: Result = Result::Err(2); + assert_result_err!(x); +} + +#[test] +fn assert_option_enum() { + let x: Option = Option::Some(1); + assert_option_some!(x); + let x: Option = Option::None; + assert_option_none!(x); } #[test] -fn smoke_test_bag() { +fn assert_bag() { assert_bag_eq!([1], [1]); assert_bag_ne!([1], [2]); assert_bag_subbag!([1], [1, 2]); @@ -30,7 +54,7 @@ fn smoke_test_bag() { } #[test] -fn smoke_test_set() { +fn assert_set() { assert_set_eq!([1], [1]); assert_set_ne!([1], [2]); assert_set_subset!([1], [1, 2]); @@ -38,3 +62,192 @@ fn smoke_test_set() { assert_set_joint!([1], [1]); assert_set_disjoint!([1], [2]); } + +// TODO +#[test] +fn assert_command() { + // assert_command_stderr_contains!(); + // assert_command_stderr_eq!(); + // assert_command_stderr_eq_expr!(); + // assert_command_stderr_is_match!(); + // assert_command_stdout_contains!(); + // assert_command_stdout_eq!(); + // assert_command_stdout_eq_expr!(); + // assert_command_stdout_is_match!(); +} + +#[test] +fn assert_fn() { + + // Functions + fn f() -> i8 { 1 } + fn g() -> i8 { 2 } + + // Comparisons + assert_fn_eq!(f, f); + assert_fn_ne!(f, g); + assert_fn_lt!(f, g); + assert_fn_le!(f, g); + assert_fn_gt!(g, f); + assert_fn_ge!(g, f); + + // Comparisons with expressions + assert_fn_eq_expr!(f, 1); + assert_fn_ne_expr!(f, 2); + assert_fn_lt_expr!(f, 2); + assert_fn_le_expr!(f, 2); + assert_fn_gt_expr!(g, 1); + assert_fn_ge_expr!(g, 1); + +} + +#[test] +fn assert_fn_ok() { + + // Functions + fn f() -> Result { Ok(1) } + fn g() -> Result { Ok(2) } + + // Comparisons + assert_fn_ok_eq!(f, f); + assert_fn_ok_ne!(f, g); + assert_fn_ok_lt!(f, g); + assert_fn_ok_le!(f, g); + assert_fn_ok_gt!(g, f); + assert_fn_ok_ge!(g, f); + + // Comparisons with expressions + assert_fn_ok_eq_expr!(f, 1); + assert_fn_ok_ne_expr!(f, 2); + assert_fn_ok_lt_expr!(f, 2); + assert_fn_ok_le_expr!(f, 2); + assert_fn_ok_gt_expr!(g, 1); + assert_fn_ok_ge_expr!(g, 1); + +} + +#[test] +fn assert_fn_err() { + + // Functions + fn f() -> Result { Err(1) } + fn g() -> Result { Err(2) } + + // Comparisons + assert_fn_err_eq!(f, f); + assert_fn_err_ne!(f, g); + assert_fn_err_lt!(f, g); + assert_fn_err_le!(f, g); + assert_fn_err_gt!(g, f); + assert_fn_err_ge!(g, f); + + // Comparisons with expressions + assert_fn_err_ne_expr!(f, 2); + assert_fn_err_eq_expr!(f, 1); + assert_fn_err_lt_expr!(f, 2); + assert_fn_err_le_expr!(f, 2); + assert_fn_err_gt_expr!(g, 1); + assert_fn_err_ge_expr!(g, 1); + +} + +#[test] +fn assert_fs_read_to_string() { + + // Comparisons + assert_fs_read_to_string_eq!("alfa.txt", "alfa.txt"); + assert_fs_read_to_string_ne!("alfa.txt", "bravo.txt"); + assert_fs_read_to_string_lt!("alfa.txt", "bravo.txt"); + assert_fs_read_to_string_le!("alfa.txt", "bravo.txt"); + assert_fs_read_to_string_gt!("bravo.txt", "alfa.txt"); + assert_fs_read_to_string_ge!("bravo.txt", "alfa.txt"); + + // Comparisons with expressions + assert_fs_read_to_string_eq_expr!("alfa.txt", "alfa\n"); + assert_fs_read_to_string_ne_expr!("alfa.txt", "z"); + assert_fs_read_to_string_lt_expr!("alfa.txt", "b"); + assert_fs_read_to_string_le_expr!("alfa.txt", "b"); + assert_fs_read_to_string_ge_expr!("bravo.txt", "a"); + assert_fs_read_to_string_gt_expr!("bravo.txt", "a"); + + // Specializations + assert_fs_read_to_string_contains!("alfa.txt", "lf"); + assert_fs_read_to_string_matches!("alfa.txt", Regex::new("lf").unwrap()); + +} + +#[test] +fn assert_io_read_to_string() { + use std::io::Read; + + // Readers + let mut a: &[u8]; + let mut b: &[u8]; + + // Comparisons + a = "alfa".as_bytes(); b = "alfa".as_bytes(); assert_io_read_to_string_eq!(a, b); + a = "alfa".as_bytes(); b = "bravo".as_bytes(); assert_io_read_to_string_ne!(a, b); + a = "alfa".as_bytes(); b = "bravo".as_bytes(); assert_io_read_to_string_lt!(a, b); + a = "alfa".as_bytes(); b = "bravo".as_bytes(); assert_io_read_to_string_le!(a, b); + a = "alfa".as_bytes(); b = "bravo".as_bytes(); assert_io_read_to_string_gt!(b, a); + a = "alfa".as_bytes(); b = "bravo".as_bytes(); assert_io_read_to_string_ge!(b, a); + + // Comparisons with expressions + a = "alfa".as_bytes(); assert_io_read_to_string_eq_expr!(a, "alfa"); + a = "alfa".as_bytes(); assert_io_read_to_string_ne_expr!(a, "b"); + a = "alfa".as_bytes(); assert_io_read_to_string_lt_expr!(a, "b"); + a = "alfa".as_bytes(); assert_io_read_to_string_le_expr!(a, "b"); + a = "alfa".as_bytes(); assert_io_read_to_string_gt_expr!(a, "a"); + a = "alfa".as_bytes(); assert_io_read_to_string_ge_expr!(a, "a"); + + // Specializations + a = "alfa".as_bytes(); assert_io_read_to_string_contains!(a, "lf"); + a = "alfa".as_bytes(); assert_io_read_to_string_matches!(a, Regex::new("lf").unwrap()); + +} + +// TODO +#[test] +fn assert_program_args() { + // assert_program_args_stderr_contains!(); + // assert_program_args_stderr_eq!(); + // assert_program_args_stderr_eq_expr!(); + // assert_program_args_stderr_ge!(); + // assert_program_args_stderr_ge_expr!(); + // assert_program_args_stderr_gt!(); + // assert_program_args_stderr_gt_expr!(); + // assert_program_args_stderr_is_match!(); + // assert_program_args_stderr_le!(); + // assert_program_args_stderr_le_expr!(); + // assert_program_args_stderr_lt!(); + // assert_program_args_stderr_lt_expr!(); + // assert_program_args_stderr_ne!(); + // assert_program_args_stderr_ne_expr!(); + // assert_program_args_stdout_contains!(); + // assert_program_args_stdout_eq!(); + // assert_program_args_stdout_eq_expr!(); + // assert_program_args_stdout_ge!(); + // assert_program_args_stdout_ge_expr!(); + // assert_program_args_stdout_gt!(); + // assert_program_args_stdout_gt_expr!(); + // assert_program_args_stdout_is_match!(); + // assert_program_args_stdout_le!(); + // assert_program_args_stdout_le_expr!(); + // assert_program_args_stdout_lt!(); + // assert_program_args_stdout_lt_expr!(); + // assert_program_args_stdout_ne!(); + // assert_program_args_stdout_ne_expr!(); +} + +#[test] +fn experimental() { + assert_infix!(1 == 1); + assert_infix!(1 != 2); + assert_infix!(1 < 2); + assert_infix!(1 <= 2); + assert_infix!(2 > 1); + assert_infix!(2 >= 1); + assert_infix!(true && true); + assert_infix!(false || true); +} +