mirror of
https://github.com/boostorg/test.git
synced 2026-02-02 09:12:10 +00:00
330 lines
20 KiB
HTML
330 lines
20 KiB
HTML
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
|
<title>UTF testing tools reference</title>
|
|
<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
|
|
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
|
<link rel="home" href="../index.html" title="Boost.Test">
|
|
<link rel="up" href="../index.html" title="Boost.Test">
|
|
<link rel="prev" href="runtime_parameters_reference/save_patterm.html" title="save_patterm">
|
|
<link rel="next" href="testing_tool_ref/assertion_boost_level.html" title="BOOST_<level>">
|
|
</head>
|
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
|
<table cellpadding="2" width="100%"><tr>
|
|
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
|
|
<td align="center"><a href="../../../../../../index.html">Home</a></td>
|
|
<td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td>
|
|
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
|
|
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
|
|
<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
|
|
</tr></table>
|
|
<hr>
|
|
<div class="spirit-nav">
|
|
<a accesskey="p" href="runtime_parameters_reference/save_patterm.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="testing_tool_ref/assertion_boost_level.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
|
|
</div>
|
|
<div class="section">
|
|
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
|
<a name="boost_test.testing_tool_ref"></a><a class="link" href="testing_tool_ref.html" title="UTF testing tools reference"><span class="emphasis"><em>UTF</em></span> testing
|
|
tools reference</a>
|
|
</h2></div></div></div>
|
|
<div class="toc"><dl class="toc">
|
|
<dt><span class="section"><a href="testing_tool_ref/assertion_boost_level.html"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span></code></a></span></dt>
|
|
<dt><span class="section"><a href="testing_tool_ref/assertion_boost_level_bitwise_eq.html"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_BITWISE_EQUAL</span></code></a></span></dt>
|
|
<dt><span class="section"><a href="testing_tool_ref/assertion_boost_level_eq.html"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_EQUAL</span></code></a></span></dt>
|
|
<dt><span class="section"><a href="testing_tool_ref/assertion_boost_level_eq_collections.html"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_EQUAL_COLLECTIONS</span></code></a></span></dt>
|
|
<dt><span class="section"><a href="testing_tool_ref/assertion_boost_level_close.html"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_CLOSE</span></code></a></span></dt>
|
|
<dt><span class="section"><a href="testing_tool_ref/assertion_boost_level_close_fraction.html"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_CLOSE_FRACTION</span></code></a></span></dt>
|
|
<dt><span class="section"><a href="testing_tool_ref/assertion_boost_level_exception.html"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_EXCEPTION</span></code></a></span></dt>
|
|
<dt><span class="section"><a href="testing_tool_ref/assertion_boost_level_ge.html"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_GE</span></code></a></span></dt>
|
|
<dt><span class="section"><a href="testing_tool_ref/assertion_boost_level_gt.html"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_GT</span></code></a></span></dt>
|
|
<dt><span class="section"><a href="testing_tool_ref/assertion_boost_level_le.html"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_LE</span></code></a></span></dt>
|
|
<dt><span class="section"><a href="testing_tool_ref/assertion_boost_level_lt.html"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_LT</span></code></a></span></dt>
|
|
<dt><span class="section"><a href="testing_tool_ref/assertion_boost_level_message.html"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_MESSAGE</span></code></a></span></dt>
|
|
<dt><span class="section"><a href="testing_tool_ref/assertion_boost_level_ne.html"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_NE</span></code></a></span></dt>
|
|
<dt><span class="section"><a href="testing_tool_ref/assertion_boost_level_no_throw.html"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_NO_THROW</span></code></a></span></dt>
|
|
<dt><span class="section"><a href="testing_tool_ref/assertion_boost_level_predicate.html"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_PREDICATE</span></code></a></span></dt>
|
|
<dt><span class="section"><a href="testing_tool_ref/assertion_boost_level_small.html"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_SMALL</span></code></a></span></dt>
|
|
<dt><span class="section"><a href="testing_tool_ref/assertion_boost_level_throw.html"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_THROW</span></code></a></span></dt>
|
|
<dt><span class="section"><a href="testing_tool_ref/assertion_boost_error.html"><code class="computeroutput"><span class="identifier">BOOST_ERROR</span></code></a></span></dt>
|
|
<dt><span class="section"><a href="testing_tool_ref/assertion_boost_fail.html"><code class="computeroutput"><span class="identifier">BOOST_FAIL</span></code></a></span></dt>
|
|
<dt><span class="section"><a href="testing_tool_ref/assertion_boost_is_defined.html"><code class="computeroutput"><span class="identifier">BOOST_IS_DEFINED</span></code></a></span></dt>
|
|
</dl></div>
|
|
<div class="informaltable"><table class="table">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead><tr>
|
|
<th>
|
|
<p>
|
|
Assertions
|
|
</p>
|
|
</th>
|
|
<th>
|
|
<p>
|
|
Short description
|
|
</p>
|
|
</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a class="link" href="testing_tool_ref/assertion_boost_level.html" title="BOOST_<level>"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span></code></a>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Simple validation of a boolean predicate value.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a class="link" href="testing_tool_ref/assertion_boost_level_bitwise_eq.html" title="BOOST_<level>_BITWISE_EQUAL"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_BITWISE_EQUAL</span></code></a>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Bitwise equality test of two elements.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a class="link" href="testing_tool_ref/assertion_boost_level_eq.html" title="BOOST_<level>_EQUAL"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_EQUAL</span></code></a>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Equality test of two elements.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a class="link" href="testing_tool_ref/assertion_boost_level_eq_collections.html" title="BOOST_<level>_EQUAL_COLLECTIONS"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_EQUAL_COLLECTIONS</span></code></a>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Element-wise equality test of two collections.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a class="link" href="testing_tool_ref/assertion_boost_level_close.html" title="BOOST_<level>_CLOSE"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_CLOSE</span></code></a>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Floating point comparison using a percentage of deviation.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a class="link" href="testing_tool_ref/assertion_boost_level_close_fraction.html" title="BOOST_<level>_CLOSE_FRACTION"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_CLOSE_FRACTION</span></code></a>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Floating point comparison using the fraction of the compared operands.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a class="link" href="testing_tool_ref/assertion_boost_level_exception.html" title="BOOST_<level>_EXCEPTION"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_EXCEPTION</span></code></a>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Exception detection and validation check.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a class="link" href="testing_tool_ref/assertion_boost_level_ge.html" title="BOOST_<level>_GE"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_GE</span></code></a>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Comparison of two values (with convenient reporting).
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a class="link" href="testing_tool_ref/assertion_boost_level_gt.html" title="BOOST_<level>_GT"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_GT</span></code></a>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Comparison of two values (with convenient reporting).
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a class="link" href="testing_tool_ref/assertion_boost_level_le.html" title="BOOST_<level>_LE"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_LE</span></code></a>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Comparison of two values (with convenient reporting).
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a class="link" href="testing_tool_ref/assertion_boost_level_lt.html" title="BOOST_<level>_LT"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_LT</span></code></a>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Comparison of two values (with convenient reporting).
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a class="link" href="testing_tool_ref/assertion_boost_level_message.html" title="BOOST_<level>_MESSAGE"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_MESSAGE</span></code></a>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Same as <a class="link" href="testing_tool_ref/assertion_boost_level.html" title="BOOST_<level>"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span></code></a>
|
|
with a custom message in case of failure.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a class="link" href="testing_tool_ref/assertion_boost_level_ne.html" title="BOOST_<level>_NE"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_NE</span></code></a>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Comparison of two values (with convenient reporting).
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a class="link" href="testing_tool_ref/assertion_boost_level_no_throw.html" title="BOOST_<level>_NO_THROW"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_NO_THROW</span></code></a>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Checks an expression does not throw any exception.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a class="link" href="testing_tool_ref/assertion_boost_level_predicate.html" title="BOOST_<level>_PREDICATE"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_PREDICATE</span></code></a>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Checks a list of arguments against a predicate functor.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a class="link" href="testing_tool_ref/assertion_boost_level_small.html" title="BOOST_<level>_SMALL"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_SMALL</span></code></a>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Checks a value is small according to a tolerance.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a class="link" href="testing_tool_ref/assertion_boost_level_throw.html" title="BOOST_<level>_THROW"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special"><</span><span class="identifier">level</span><span class="special">></span><span class="identifier">_THROW</span></code></a>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Checks an expression throws a specific type of expression.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a class="link" href="testing_tool_ref/assertion_boost_error.html" title="BOOST_ERROR"><code class="computeroutput"><span class="identifier">BOOST_ERROR</span></code></a>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Logs an error message, fails but does not abort the current test.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a class="link" href="testing_tool_ref/assertion_boost_fail.html" title="BOOST_FAIL"><code class="computeroutput"><span class="identifier">BOOST_FAIL</span></code></a>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Logs an error message, fails and aborts the current test.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a class="link" href="testing_tool_ref/assertion_boost_is_defined.html" title="BOOST_IS_DEFINED"><code class="computeroutput"><span class="identifier">BOOST_IS_DEFINED</span></code></a>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Checks at runtime whether or not the supplied preprocessor symbol
|
|
is defined.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
|
<td align="left"></td>
|
|
<td align="right"><div class="copyright-footer">Copyright © 2001-2014 Gennadiy
|
|
Rozental<p>
|
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
|
</p>
|
|
</div></td>
|
|
</tr></table>
|
|
<hr>
|
|
<div class="spirit-nav">
|
|
<a accesskey="p" href="runtime_parameters_reference/save_patterm.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="testing_tool_ref/assertion_boost_level.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
|
|
</div>
|
|
</body>
|
|
</html>
|