Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-01-12 09:35:09 -0500
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-09-11 09:30:52 -0400
commit1b4ba4c5627de86822117ec2a5e927efb3a42271 (patch)
treef12e951538282c44ac9e14e72786142f06ce5424
parent3f1bfc0de2c0f55841a5d2dc539893453c85911a (diff)
downloadtame-1b4ba4c5627de86822117ec2a5e927efb3a42271.tar.gz
tame-1b4ba4c5627de86822117ec2a5e927efb3a42271.tar.bz2
tame-1b4ba4c5627de86822117ec2a5e927efb3a42271.zip
assert: Remove "Standard Assertions"
These need to be re-thought, as they are now just confusing. For now, things should just use the _assert_ primitive. * assert.xml (_assert-nonzero_, _fail-on-empty_): Remove templates.
-rw-r--r--core/assert.xml72
1 files changed, 0 insertions, 72 deletions
diff --git a/core/assert.xml b/core/assert.xml
index a2b23ac..8822f96 100644
--- a/core/assert.xml
+++ b/core/assert.xml
@@ -85,76 +85,4 @@
<match on="@neg_yields@" value="FALSE" />
</classify>
</template>
-
-
-
- <section title="Standard Assertions">
- There is currently one standard assertion---
- \ref{_assert-nonzero_} (also called \ref{_fail-on-empty_}.
-
- \ref{_assert-nonzero_} terminates if \tt{@name@} is zero,
- subject to \tt{@when@},
- \tt{@class@},
- and any other provided predicates.
-
- <template name="_assert-nonzero_"
- desc="Fail when a value is zero">
- <param name="@values@" desc="Optional predicates to include in match" />
- <param name="@name@" desc="Data to check (scalar, vector or otherwise)" />
- <param name="@when@" desc="Conditional check (optional)" />
- <param name="@class@" desc="Conditional class check" />
-
- <param name="@failure@" desc="Failure description">
- <param-value name="@name@" />
- <text> is empty</text>
- </param>
-
- <param name="@__classyields@"
- desc="Classification yield to match on">
- <param-class-to-yields name="@class@" />
- </param>
-
-
- <t:assert failure="@failure@">
- <if name="@when@">
- <match on="@when@" />
- </if>
-
- <if name="@class@">
- <match on="@__classyields@" />
- </if>
-
- <!-- include any optional conditions -->
- <param-copy name="@values@" />
-
- <t:match-ne on="@name@" value="ZERO" />
- </t:assert>
- </template>
-
-
- This template was previously named \ref{_fail-on-empty_},
- so an alias is provided for backwards-compatibility.
- Note that it will display a deprecation warning.
-
- <template name="_fail-on-empty_"
- desc="Fail when a value is zero (alias for _assert-nonzero_)">
- <param name="@values@" desc="Optional predicates to include in match" />
- <param name="@name@" desc="Data to check (scalar, vector or otherwise)" />
- <param name="@when@" desc="Conditional check (optional)" />
- <param name="@class@" desc="Conditional class check" />
-
- <param name="@desc@" desc="Description">
- <param-value name="@name@" />
- <text> is empty</text>
- </param>
-
-
- <warning>deprecated; use _assert-nonzero_ instead.</warning>
-
- <t:assert-nonzero name="@name@" when="@when@" class="@class@"
- failure="@desc@">
- <param-copy name="@values@" />
- </t:assert-nonzero>
- </template>
- </section>
</package>