Skip to content

Commit

Permalink
Rename assert_process params akin to assert_command params
Browse files Browse the repository at this point in the history
  • Loading branch information
joelparkerhenderson committed Oct 31, 2024
1 parent f1db52d commit 7abbb4c
Show file tree
Hide file tree
Showing 827 changed files with 12,627 additions and 4,152 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Changes highlights for recent major versions.

## Version 9.0

* 9.1.0: Add absolute difference macros: `assert_abs_diff*`.
* 9.2.0: Add absolute difference macros: `assert_abs_diff*`.

* 9.0.0: Breaking change: many macros now return data upon success.

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "assertables"
version = "9.1.0"
version = "9.2.0"
authors = ["Joel Parker Henderson <joel@joelparkerhenderson.com>"]
edition = "2021"
description = "Assertables: assert macros for better testing, debugging, quality assurance, and runtime reliability."
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# License

MIT or Apache or GPL or or BSD or contact us for custom license choices.
License is any of these or contact us for custom license options.

* [MIT](https://opensource.org/license/mit) ([SPDX: MIT](https://spdx.org/licenses/MIT.html))

Expand Down
186 changes: 87 additions & 99 deletions README.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions bin/exit-with-arg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
exit "$1"
2 changes: 1 addition & 1 deletion doc/lib/all.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions doc/lib/assert_ends_with/assert_ends_with/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ <h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
<span class="comment">// String ends with substring?
</span><span class="kw">let </span>whole: <span class="kw-2">&amp;</span>str = <span class="string">"alfa"</span>;
<span class="kw">let </span>part: <span class="kw-2">&amp;</span>str = <span class="string">"fa"</span>;
<span class="macro">assert_ends_with!</span>(whole, part);
<span class="macro">assert_ends_with!</span>(sequence, x);

<span class="comment">// Vector ends with element?
</span><span class="kw">let </span>whole = <span class="macro">vec!</span>[<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>];
<span class="kw">let </span>part = [<span class="number">3</span>];
<span class="macro">assert_ends_with!</span>(whole, part);</code></pre></div>
<span class="macro">assert_ends_with!</span>(sequence, x);</code></pre></div>
<h2 id="module-macros"><a class="doc-anchor" href="#module-macros">§</a>Module macros</h2>
<ul>
<li><a href="../../macro.assert_ends_with.html" title="macro lib::assert_ends_with"><code>assert_ends_with</code></a></li>
Expand Down
4 changes: 2 additions & 2 deletions doc/lib/assert_ends_with/assert_not_ends_with/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ <h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
<span class="comment">// String ends with substring?
</span><span class="kw">let </span>whole: <span class="kw-2">&amp;</span>str = <span class="string">"alfa"</span>;
<span class="kw">let </span>part: <span class="kw-2">&amp;</span>str = <span class="string">"al"</span>;
<span class="macro">assert_not_ends_with!</span>(whole, part);
<span class="macro">assert_not_ends_with!</span>(sequence, x);

<span class="comment">// Vector ends with element?
</span><span class="kw">let </span>whole = <span class="macro">vec!</span>[<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>];
<span class="kw">let </span>part = [<span class="number">1</span>];
<span class="macro">assert_not_ends_with!</span>(whole, part);</code></pre></div>
<span class="macro">assert_not_ends_with!</span>(sequence, x);</code></pre></div>
<h2 id="module-macros"><a class="doc-anchor" href="#module-macros">§</a>Module macros</h2>
<ul>
<li><a href="../../macro.assert_not_ends_with.html" title="macro lib::assert_not_ends_with"><code>assert_not_ends_with</code></a></li>
Expand Down
8 changes: 4 additions & 4 deletions doc/lib/assert_ends_with/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
and a part (such as a string substring, an array element, a range value).</p>
<ul>
<li>
<p><a href="../macro.assert_ends_with.html" title="macro lib::assert_ends_with"><code>assert_ends_with(whole, part)</code></a> ≈ container.contains(containee)</p>
<p><a href="../macro.assert_ends_with.html" title="macro lib::assert_ends_with"><code>assert_ends_with(sequence, x)</code></a> ≈ container.contains(containee)</p>
</li>
<li>
<p><a href="../macro.assert_not_ends_with.html" title="macro lib::assert_not_ends_with"><code>assert_not_ends_with!(whole, part)</code></a> ≈ !container.contains(containee)</p>
<p><a href="../macro.assert_not_ends_with.html" title="macro lib::assert_not_ends_with"><code>assert_not_ends_with!(sequence, x)</code></a> ≈ !container.contains(containee)</p>
</li>
</ul>
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
Expand All @@ -15,10 +15,10 @@ <h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
<span class="comment">// String ends with substring?
</span><span class="kw">let </span>whole: <span class="kw-2">&amp;</span>str = <span class="string">"alfa"</span>;
<span class="kw">let </span>part: <span class="kw-2">&amp;</span>str = <span class="string">"fa"</span>;
<span class="macro">assert_ends_with!</span>(whole, part);
<span class="macro">assert_ends_with!</span>(sequence, x);

<span class="comment">// Vector ends with element?
</span><span class="kw">let </span>whole = <span class="macro">vec!</span>[<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>];
<span class="kw">let </span>part = [<span class="number">3</span>];
<span class="macro">assert_ends_with!</span>(whole, part);</code></pre></div>
<span class="macro">assert_ends_with!</span>(sequence, x);</code></pre></div>
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="mod" href="assert_ends_with/index.html" title="mod lib::assert_ends_with::assert_ends_with">assert_<wbr>ends_<wbr>with</a></div><div class="desc docblock-short">Assert an expression (such as a string) ends with an expression (such as a string).</div></li><li><div class="item-name"><a class="mod" href="assert_not_ends_with/index.html" title="mod lib::assert_ends_with::assert_not_ends_with">assert_<wbr>not_<wbr>ends_<wbr>with</a></div><div class="desc docblock-short">Assert an expression (such as a string) does not end with an expression (such as a string).</div></li></ul></section></div></main></body></html>
2 changes: 1 addition & 1 deletion doc/lib/assert_err/assert_err/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Assert expression is Err."><title>lib::assert_err::assert_err - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../static.files/rustdoc-492a78a4a87dcc01.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="lib" data-themes="" data-resource-suffix="" data-rustdoc-version="1.82.0 (f6e511eec 2024-10-15)" data-channel="1.82.0" data-search-js="search-a99f1315e7cc5121.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../static.files/storage-118b08c4c78b968e.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-921df33f47b8780c.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-3b12f09e550e0385.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../lib/index.html">lib</a></h2></div><h2 class="location"><a href="#">Module assert_<wbr>err</a></h2><div class="sidebar-elems"><h2><a href="../index.html">In lib::<wbr>assert_<wbr>err</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../../index.html">lib</a>::<wbr><a href="../index.html">assert_err</a>::<wbr><a class="mod" href="#">assert_err</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../../src/lib/assert_err/assert_err.rs.html#1-199">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Assert expression is Err.</p>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Assert expression is Err."><title>lib::assert_err::assert_err - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../static.files/rustdoc-492a78a4a87dcc01.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="lib" data-themes="" data-resource-suffix="" data-rustdoc-version="1.82.0 (f6e511eec 2024-10-15)" data-channel="1.82.0" data-search-js="search-a99f1315e7cc5121.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../static.files/storage-118b08c4c78b968e.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-921df33f47b8780c.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-3b12f09e550e0385.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../lib/index.html">lib</a></h2></div><h2 class="location"><a href="#">Module assert_<wbr>err</a></h2><div class="sidebar-elems"><h2><a href="../index.html">In lib::<wbr>assert_<wbr>err</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../../index.html">lib</a>::<wbr><a href="../index.html">assert_err</a>::<wbr><a class="mod" href="#">assert_err</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../../src/lib/assert_err/assert_err.rs.html#1-189">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Assert expression is Err.</p>
<p>Pseudocode:<br>
a is Err(_)</p>
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
Expand Down
2 changes: 1 addition & 1 deletion doc/lib/assert_err/assert_err_eq/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Assert two expressions are Err and their values are equal."><title>lib::assert_err::assert_err_eq - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../static.files/rustdoc-492a78a4a87dcc01.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="lib" data-themes="" data-resource-suffix="" data-rustdoc-version="1.82.0 (f6e511eec 2024-10-15)" data-channel="1.82.0" data-search-js="search-a99f1315e7cc5121.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../static.files/storage-118b08c4c78b968e.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-921df33f47b8780c.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-3b12f09e550e0385.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../lib/index.html">lib</a></h2></div><h2 class="location"><a href="#">Module assert_<wbr>err_<wbr>eq</a></h2><div class="sidebar-elems"><h2><a href="../index.html">In lib::<wbr>assert_<wbr>err</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../../index.html">lib</a>::<wbr><a href="../index.html">assert_err</a>::<wbr><a class="mod" href="#">assert_err_eq</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../../src/lib/assert_err/assert_err_eq.rs.html#1-261">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Assert two expressions are Err and their values are equal.</p>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Assert two expressions are Err and their values are equal."><title>lib::assert_err::assert_err_eq - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../static.files/rustdoc-492a78a4a87dcc01.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="lib" data-themes="" data-resource-suffix="" data-rustdoc-version="1.82.0 (f6e511eec 2024-10-15)" data-channel="1.82.0" data-search-js="search-a99f1315e7cc5121.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../static.files/storage-118b08c4c78b968e.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-921df33f47b8780c.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-3b12f09e550e0385.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../lib/index.html">lib</a></h2></div><h2 class="location"><a href="#">Module assert_<wbr>err_<wbr>eq</a></h2><div class="sidebar-elems"><h2><a href="../index.html">In lib::<wbr>assert_<wbr>err</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../../index.html">lib</a>::<wbr><a href="../index.html">assert_err</a>::<wbr><a class="mod" href="#">assert_err_eq</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../../src/lib/assert_err/assert_err_eq.rs.html#1-257">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Assert two expressions are Err and their values are equal.</p>
<p>Pseudocode:<br>
(a ⇒ Err(a1) ⇒ a1) = (b ⇒ Err(b1) ⇒ b1)</p>
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
Expand Down
Loading

0 comments on commit 7abbb4c

Please sign in to comment.