Crate assertables
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/
- Contact: joel@joelparkerhenderson.com
§Introduction
The Rust programming language provides a few built-in assert macros to test code:
The Rust programming language provides a few built-in assert macros to test code:
assert!()assert_eq!(a, b)assert_ne!(a, b)
The assertables crate provides many more, so you can write smarter tests.
For values:
For numbers:
For strings:
For matching:
For infix numeric operators and infix logical operators:
For maybes:
For collections such as arrays, vectors, maps, sets:
For file system paths and input/output readers:
For command capture of standard output and standard error:
assert_command_stdout_eq!(command1, command2);assert_program_args_stdout_eq!(program1, args1, program2, args2;
There are many more macros that are grouped into modules.
Modules for enums:
-
assert_optionforOption{Some,None} -
assert_resultforResult{Ok,Err}
Modules for collections, such as arrays, vectors, lists, maps:
-
assert_setfor set collections -
assert_bagfor bag collections
Modules for functions:
-
assert_fnfor functions in general. -
assert_fn_okfor functions that return Result::Ok. -
assert_fn_errfor functions that return Result::Err.
Modules for readers:
-
assert_fs_read_to_stringfor file system path contents. -
assert_io_read_to_stringfor input/output reader streams.
Modules for external calls:
-
assert_commandfor commands and their stdout & stderr. -
assert_program_argsfor programs with arguments and their stdout & stderr.
§Benefits
-
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.
-
Zero overhead: if you don’t use a macro, then it’s never compiled into your code.
-
Zero dependencies: the crate has no release dependencies, and just a short list of development dependencies.
§Naming conventions
Abbreviations:
-
eq≈ equal -
ne≈ not equal. -
lt≈ less than -
le≈ less than or equal. -
gt≈ greater than -
ge≈ greater than or equal.
Types:
-
path≈ implementsAsRef<Path>such asstd::path::PathBuf. -
reader≈ implements method.read_to_string()such asstd::io::Read. -
matcher≈ implements.is_match(…)such asregex::Regex. -
containee≈ usable inside.contains(…)such as astd::string::Stringsubstring. -
set≈ a collection such as::std::collections::BTreeSet. -
bag≈ a collection such as::std::collections::BTreeMapwhich has key counts.
§Forms
§Forms for panic! versus Err()
All the assert macros have three forms that you can use depending on your goals.
Panic form for typical tests:
Debug form for runtime:
Result form for runtime, validation, verification, sanitization, and more:
§Forms for messages
All the assert macros have 2 forms that are for default messages versus custom messages.
Default message form:
Custom message form:
§Forms for comparing an other versus an expression
Many of the assert macros have 2 forms that are for comparing a value to an other versus to an expression.
Compare the item to an other i.e. of the same type:
Compare an item to an expression:
§Change highlights
§Version 8
8.2:
-
Add
assert_infix -
Add modules for better discoverability and testability.
8.1:
-
Add Result macros
assert_result_okandassert_result_err -
Add Option macros
assert_option_someandassert_option_none
8.0:
-
Add
assert_fs_read_to_string_*macros for comparing files. -
Breaking change: rename
assert_read_to_string_*macros toassert_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 releasefor optimized tagged releases.
§Version 6
-
Add
assert_starts_with,assert_ends_with,assert_contains,assert_is_match. -
Add
debug_assert_*macros everywhere. -
Add
GPL-3.0license.
§Tracking
- Package: assertables-rust-crate
- Version: 8.2.1
- Created: 2021-03-30T15:47:49Z
- Updated: 2024-09-07T12:31:17Z
- 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§
- Assert a condition is true.
- Assert macros for comparing bag collections.
- 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,None} - Assert macros for comparing programs with arguments.
- Assert macros for
Result{Ok,Err} - Assert macros for comparing set collections.
- Assert an expression (such as a string) starts with an expression (such as a string).
Macros§
- Assert a condition is true.
- Assert a bag is equal to another.
- Assert a bag is equal to another.
- Assert a bag is not equal to another.
- Assert a bag is not equal to another.
- Assert a bag is a subbag of another.
- Assert a bag is a subbag of another.
- Assert a bag is a superbag of another.
- Assert a bag is a superbag of another.
- Assert a command stderr string contains a given containee.
- Assert a command stderr string contains a given containee.
- Assert a command stderr string is equal to another.
- Assert a command stderr string is equal to another.
- Assert a command stderr string is equal to an expression.
- Assert a command stderr string is equal to an expression.
- Assert a command stderr string is a match to a regex.
- Assert a command stderr string is a match to a regex.
- Assert a command stdout string contains a given containee.
- Assert a command stdout string contains a given containee.
- Assert a command stdout string is equal to another.
- Assert a command stdout string is equal to another.
- Assert a command stdout string is equal to an expression.
- Assert a command stdout string is equal to an expression.
- Assert a command stdout string is a match to a regex.
- Assert a command stdout string is a match to a regex.
- Assert a container is a match for an expression.
- Assert an expression (such as a string) contains an expression (such as a substring).
- Assert an expression (such as a string) ends with an expression (such as a string).
- Assert an expression (such as a string) ends with an expression (such as a substring).
- Assert an expression is equal to another.
- Assert a function output is equal to another function output.
- Assert a function output is equal to another function output.
- Assert a function output is equal to an expression.
- Assert a function output is equal to an expression.
- Assert a function err() is equal to another.
- Assert a function err() is equal to another.
- Assert a function err() is equal to an expression.
- Assert a function err() is equal to an expression.
- Assert a function err() is greater than or equal to another.
- Assert a function err() is greater than or equal to another.
- Assert a function err() is greater than or equal to an expression.
- Assert a function err() is greater than or equal to an expression.
- Assert a function err() is greater than another.
- Assert a function err() is greater than another.
- Assert a function err() is greater than an expression.
- Assert a function err() is greater than an expression.
- Assert a function err() is less than or equal to another.
- Assert a function err() is less than or equal to another.
- Assert a function err() is less than or equal to an expression.
- Assert a function err() is less than or equal to an expression.
- Assert a function err() is less than another.
- Assert a function err() is less than another.
- Assert a function err() is less than an expression.
- Assert a function err() is less than an expression.
- Assert a function err() is not equal to another.
- Assert a function err() is not equal to another.
- Assert a function err() is not equal to an expression.
- Assert a function err() is not equal to an expression.
- Assert a function output is greater than or equal to another.
- Assert a function output is greater than or equal to another.
- Assert a function output is greater than or equal to an expression.
- Assert a function output is greater than or equal to an expression.
- Assert a function output is greater than another.
- Assert a function output is greater than another.
- Assert a function output is greater than an expression.
- Assert a function output is greater than an expression.
- Assert a function output is less than or equal to another.
- Assert a function output is less than or equal to another.
- Assert a function output is less than or equal to an expression.
- Assert a function output is less than or equal to an expression.
- Assert a function output is less than another.
- Assert a function output is less than another.
- Assert a function output is less than an expression.
- Assert a function output is less than an expression.
- Assert a function output is not equal to another.
- Assert a function output is not equal to another.
- Assert a function output is not equal to an expression.
- Assert a function output is not equal to an expression.
- Assert a function ok() is equal to another.
- Assert a function ok() is equal to another.
- Assert a function ok() is equal to an expression.
- Assert a function ok() is equal to an expression.
- Assert a function ok() is greater than or equal to another.
- Assert a function ok() is greater than or equal to another.
- Assert a function ok() is greater than or equal to an expression.
- Assert a function ok() is greater than or equal to an expression.
- Assert a function ok() is greater than another.
- Assert a function ok() is greater than another.
- Assert a function ok() is greater than an expression.
- Assert a function ok() is greater than an expression.
- Assert a function ok() is less than or equal to another.
- Assert a function ok() is less than or equal to another.
- Assert a function ok() is less than or equal to an expression.
- Assert a function ok() is less than or equal to an expression.
- Assert a function ok() is less than another.
- Assert a function ok() is less than another.
- Assert a function ok() is less than an expression.
- Assert a function ok() is less than an expression.
- Assert a function ok() is not equal to another.
- Assert a function ok() is not equal to another.
- Assert a function ok() is not equal to an expression.
- Assert a function ok() is not equal to an expression.
- Assert a std::fs::read_to_string() contains a pattern.
- Assert a std::fs::read_to_string() contains a pattern.
- Assert a std::fs::read_to_string() value is equal to another.
- Assert a std::fs::read_to_string() is equal to another.
- Assert a std::fs::read_to_string() value is equal to an expression.
- Assert a std::fs::read_to_string() value is equal to an expression.
- Assert a std::fs::read_to_string() value is greater than or equal to another.
- Assert a std::fs::read_to_string() value is greater than or equal to another.
- Assert a std::fs::read_to_string() value is greater than or equal to an expression.
- Assert a std::fs::read_to_string() value is greater than or equal to an expression.
- Assert a std::fs::read_to_string() value is greater than another.
- Assert a std::fs::read_to_string() value is greater than another.
- Assert a std::fs::read_to_string() value is greater than an expression.
- Assert a std::fs::read_to_string() value is greater than an expression.
- Assert a std::fs::read_to_string() value is less than or equal to another.
- Assert a std::fs::read_to_string() value is less than or equal to another.
- Assert a std::fs::read_to_string() value is less than or equal to an expression.
- Assert a std::fs::read_to_string() value is less than or equal to an expression.
- Assert a std::fs::read_to_string() value is less than another.
- Assert a std::fs::read_to_string() value is less than another.
- Assert a std::fs::read_to_string() value is less than an expression.
- Assert a std::fs::read_to_string() value is less than an expression.
- Assert a std::fs::read_to_string() is a match to a regex.
- Assert a std::fs::read_to_string() is a match to a regex.
- Assert a std::fs::read_to_string() is not equal to another.
- Assert a std::fs::read_to_string() is not equal to another.
- Assert a std::fs::read_to_string() is not equal to an expression.
- Assert a std::fs::read_to_string() is not equal to an expression.
- Assert a value is greater than or equal to an expression.
- Assert a value is greater than or equal to an expression.
- Assert a value is greater than an expression.
- Assert a value is greater than an expression.
- Assert a number is within delta of another number.
- Assert a number is within delta of another number.
- Assert a number is within epsilon of another number.
- Assert a number is within epsilon of another number.
- Assert a infix operator, such as assert_infix!(a == b).
- Assert a infix operator, such as assert_infix!(a == b).
- Assert a std::io::Read read_to_string() contains a pattern.
- Assert a std::io::Read read_to_string() contains a pattern.
- Assert a std::io::Read read_to_string() value is equal to another.
- Assert a std::io::Read read_to_string() is equal to another.
- Assert a std::io::Read read_to_string() value is equal to an expression.
- Assert a std::io::Read read_to_string() value is equal to an expression.
- Assert a std::io::Read read_to_string() value is greater than or equal to another.
- Assert a std::io::Read read_to_string() value is greater than or equal to another.
- Assert a std::io::Read read_to_string() value is greater than or equal to an expression.
- Assert a std::io::Read read_to_string() value is greater than or equal to an expression.
- Assert a std::io::Read read_to_string() value is greater than another.
- Assert a std::io::Read read_to_string() value is greater than another.
- Assert a std::io::Read read_to_string() value is greater than an expression.
- Assert a std::io::Read read_to_string() value is greater than an expression.
- Assert a std::io::Read read_to_string() value is less than or equal to another.
- Assert a std::io::Read read_to_string() value is less than or equal to another.
- Assert a std::io::Read read_to_string() value is less than or equal to an expression.
- Assert a std::io::Read read_to_string() value is less than or equal to an expression.
- Assert a std::io::Read read_to_string() value is less than another.
- Assert a std::io::Read read_to_string() value is less than another.
- Assert a std::io::Read read_to_string() value is less than an expression.
- Assert a std::io::Read read_to_string() value is less than an expression.
- Assert a std::io::Read read_to_string() is a match to a regex.
- Assert a std::io::Read read_to_string() is a match to a regex.
- Assert a std::io::Read read_to_string() is not equal to another.
- Assert a std::io::Read read_to_string() is not equal to another.
- Assert a std::io::Read read_to_string() is not equal to an expression.
- Assert a std::io::Read read_to_string() is not equal to an expression.
- Assert a matcher is a match for an expression.
- Assert an expression (such as a regex) is a match for an expression (such as a string).
- Assert a value is less than or equal to an expression.
- Assert a value is less than or equal to an expression.
- Assert a value is less than 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 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 string) does not end with an expression (such as a substring).
- Assert an expression (such as a regex) is not a match for 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 an expression (such as a string) does not start with an expression (such as a substring).
- Assert expression.is_none() is true.
- Assert an expression.is_none() is true.
- Assert expression.is_some() is true.
- Assert an expression.is_some() is true.
- Assert a command (built with program and args) stderr string contains a given containee.
- Assert a command (built with program and args) stderr string contains a given containee.
- Assert a command (built with program and args) stderr string is equal to another.
- Assert a command (built with program and args) stderr string is equal to another.
- Assert a command (built with program and args) stderr string is equal to an expression.
- Assert a command (built with program and args) stderr string is equal to an expression.
- Assert a command (built with program and args) stderr string is greater than or equal to another.
- Assert a command (built with program and args) stderr string is greater than or equal to another.
- Assert a command (built with program and args) stderr string is greater than or equal to an expression.
- Assert a command (built with program and args) stderr string is greater than or equal to an expression.
- Assert a command (built with program and args) stderr string is greater than to another.
- Assert a command (built with program and args) stderr string is greater than another.
- Assert a command (built with program and args) stderr string is greater than an expression.
- Assert a command (built with program and args) stderr string is greater than an expression.
- Assert a command (built with program and args) stderr string is a match to a regex.
- Assert a command (built with program and args) stderr string is a match to a regex.
- Assert a command (built with program and args) stderr string is less than or equal to another.
- Assert a command (built with program and args) stderr string is less than or equal to another.
- Assert a command (built with program and args) stderr string is less than or equal to an expression.
- Assert a command (built with program and args) stderr string is less than or equal to an expression.
- Assert a command (built with program and args) stderr string is less than another.
- Assert a command (built with program and args) stderr string is less than another.
- Assert a command (built with program and args) stderr string is less than an expression.
- Assert a command (built with program and args) stderr string is less than an expression.
- Assert a command (built with program and args) stderr string is not equal to another.
- Assert a command (built with program and args) stderr string is not equal to another.
- Assert a command (built with program and args) stderr string is not equal to an expression.
- Assert a command (built with program and args) stderr string is not equal to an expression.
- Assert a command (built with program and args) stdout string contains a given containee.
- Assert a command (built with program and args) stdout string contains a given containee.
- Assert a command (built with program and args) stdout string is equal to another.
- Assert a command (built with program and args) stdout string is equal to another.
- Assert a command (built with program and args) stdout string is equal to an expression.
- Assert a command (built with program and args) stdout string is equal to an expression.
- Assert a command (built with program and args) stdout string is greater than or equal to another.
- Assert a command (built with program and args) stdout string is greater than or equal to another.
- Assert a command (built with program and args) stdout string is greater than or equal to an expression.
- Assert a command (built with program and args) stdout string is greater than or equal to an expression.
- Assert a command (built with program and args) stdout string is greater than another.
- Assert a command (built with program and args) stdout string is greater than to another.
- Assert a command (built with program and args) stdout string is greater than an expression.
- Assert a command (built with program and args) stdout string is greater than an expression.
- Assert a command (built with program and args) stdout string is a match to a regex.
- Assert a command (built with program and args) stdout string is a match to a regex.
- Assert a command (built with program and args) stdout string is less than or equal to another.
- Assert a command (built with program and args) stdout string is less than or equal to another.
- Assert a command (built with program and args) stdout string is less than or equal to an expression.
- Assert a command (built with program and args) stdout string is less than or equal to an expression.
- Assert a command (built with program and args) stdout string is less than another.
- Assert a command (built with program and args) stdout string is less than another.
- Assert a command (built with program and args) stdout string is less than an expression.
- Assert a command (built with program and args) stdout string is less than an expression.
- Assert a command (built with program and args) stdout string is not equal to another.
- Assert a command (built with program and args) stdout string is not equal to another.
- Assert a command (built with program and args) stdout string is not equal to an expression.
- Assert a command (built with program and args) stdout string is not equal to an expression.
- Assert expression.is_err() is true.
- Assert an expression.is_err() is true.
- Assert expression.is_ok() is true.
- Assert an expression.is_ok() is true.
- Assert a set is disjoint with another.
- Assert a set is disjoint with another.
- Assert a set is equal to another.
- Assert a set is equal to another.
- Assert a set is joint with another.
- Assert a set is joint with another.
- Assert a set is not equal to another.
- Assert a set is not equal to another.
- Assert a set is a subset of another.
- Assert a set is a subset of another.
- Assert a set is a superset of another.
- Assert a set is a superset of another.
- Assert an expression (such as a string) starts with an expression (such as a string).
- Assert an expression (such as a string) starts with an expression (such as a substring).
- Assert a bag is equal to another.
- Assert a bag is not equal to another.
- Assert a bag is a subbag of another.
- Assert a bag is a superbag of another.
- Assert a command stderr string contains a given containee.
- Assert a command stderr string is equal to another.
- Assert a command stderr string is equal to an expression.
- Assert a command stderr string is a match to a regex.
- Assert a command stdout string contains a given containee.
- Assert a command stdout string is equal to another.
- Assert a command stdout string is equal to an expression.
- Assert a command stdout string is a match to a regex.
- 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 a function output is equal to another function output.
- Assert a function output is equal to an expression.
- Assert a function err() is equal to another.
- Assert a function err() is equal to an expression.
- Assert a function err() is greater than or equal to another.
- Assert a function err() is greater than or equal to an expression.
- Assert a function err() is greater than another.
- Assert a function err() is greater than an expression.
- Assert a function err() is less than or equal to another.
- Assert a function err() is less than or equal to an expression.
- Assert a function err() is less than another.
- Assert a function err() is less than an expression.
- Assert a function err() is not equal to another.
- Assert a function err() is not equal to an expression.
- Assert a function output is greater than or equal to another.
- Assert a function output is greater than or equal to an expression.
- Assert a function output is greater than another.
- Assert a function output is greater than an expression.
- Assert a function output is less than or equal to another.
- Assert a function output is less than or equal to an expression.
- Assert a function output is less than another.
- Assert a function output is less than an expression.
- Assert a function output is not equal to another.
- Assert a function output is not equal to an expression.
- Assert a function ok() is equal to another.
- Assert a function ok() is equal to an expression.
- Assert a function ok() is greater than or equal to another.
- Assert a function ok() is greater than or equal to an expression.
- Assert a function ok() is greater than another.
- Assert a function ok() is greater than an expression.
- Assert a function ok() is less than or equal to another.
- Assert a function ok() is less than or equal to an expression.
- Assert a function ok() is less than another.
- Assert a function ok() is less than an expression.
- Assert a function ok() is not equal to another.
- Assert a function ok() is not equal to an expression.
- Assert a std::fs::read_to_string() contains a pattern.
- Assert a std::fs::read_to_string() value is equal to another.
- Assert a std::fs::read_to_string() value is equal to an expression.
- Assert a std::fs::read_to_string() value is greater than or equal to another.
- Assert zzz.
- Assert a std::fs::read_to_string() value is greater than another.
- Assert a std::fs::read_to_string() value is greater than an expression.
- Assert a std::fs::read_to_string() value is less than or equal to another.
- Assert a std::fs::read_to_string() value is less than or equal to an expression.
- Assert a std::fs::read_to_string() value is less than another.
- Assert a std::fs::read_to_string() value is less than an expression.
- Assert a std::fs::read_to_string() is a match to a regex.
- Assert a std::fs::read_to_string() is not equal to another.
- Assert a std::fs::read_to_string() is not equal to an expression.
- 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 a std::io::Read read_to_string() contains a pattern.
- Assert a std::io::Read read_to_string() value is equal to another.
- Assert a std::io::Read read_to_string() value is equal to an expression.
- Assert a std::io::Read read_to_string() value is greater than or equal to another.
- Assert zzz.
- Assert a std::io::Read read_to_string() value is greater than another.
- Assert a std::io::Read read_to_string() value is greater than an expression.
- Assert a std::io::Read read_to_string() value is less than or equal to another.
- Assert a std::io::Read read_to_string() value is less than or equal to an expression.
- Assert a std::io::Read read_to_string() value is less than another.
- Assert a std::io::Read read_to_string() value is less than an expression.
- Assert a std::io::Read read_to_string() is a match to a regex.
- Assert a std::io::Read read_to_string() is not equal to another.
- Assert a std::io::Read read_to_string() is not equal to an expression.
- 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 (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 expression.is_none() is true.
- Assert expression.is_some() is true.
- Assert a command (built with program and args) stderr string contains a given containee.
- Assert a command (built with program and args) stderr string is equal to another.
- Assert a command (built with program and args) stderr string is equal to an expression.
- Assert a command (built with program and args) stderr string greater than or equal to another.
- Assert a command (built with program and args) stderr string is greater than or equal to an expression.
- Assert a command (built with program and args) stderr string is equal to another.
- Assert a command (built with program and args) stderr string is greater than an expression.
- Assert a command (built with program and args) stderr string is a match to a regex.
- Assert a command (built with program and args) stderr string is less than or equal to another.
- Assert a command (built with program and args) stderr string is equal to an expression.
- Assert a command (built with program and args) stderr string is less than another.
- Assert a command (built with program and args) stderr string is less than an expression.
- Assert a command (built with program and args) stderr string is not equal to another.
- Assert a command (built with program and args) stderr string is not equal to an expression.
- Assert a command (built with program and args) stdout string contains a given containee.
- Assert a command (built with program and args) stdout string is equal to another.
- Assert a command (built with program and args) stdout string is equal to an expression.
- Assert a command (built with program and args) stdout string is greater than or equal to another.
- Assert a command (built with program and args) stdout string is greater than or equal to an expression.
- Assert a command (built with program and args) stdout string is greater than another.
- Assert a command (built with program and args) stdout string is greater than an expression.
- Assert a command (built with program and args) stdout string is a match to a regex.
- Assert a command (built with program and args) stdout string is less than or equal to another.
- Assert a command (built with program and args) stdout string is less than or equal to an expression.
- Assert a command (built with program and args) stdout string is less than another.
- Assert a command (built with program and args) stdout string is less than an expression.
- Assert a command (built with program and args) stdout string is not equal to another.
- Assert a command (built with program and args) stdout string is not equal to an expression.
- Assert expression.is_err() is true.
- Assert expression.is_ok() is true.
- Assert a set is disjoint with another.
- Assert a set is equal to another.
- Assert a set is joint with another.
- Assert a set is not equal to another.
- Assert a set is a subset of another.
- Assert a set is a superset of another.
- Assert an expression (such as a string) starts with an expression (such as a string).