2
0
mirror of https://github.com/boostorg/test.git synced 2026-01-24 18:32:30 +00:00
Files
test/old_doc/html/utf/examples-collection.html
Raffi Enficiaud bc2cd6cfaa Moving the new documentation to doc/
Moving the old documentation to old_doc/
2014-12-30 23:50:30 +01:00

215 lines
21 KiB
HTML

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>The UTF usage examples collection</title>
<link rel="stylesheet" href="../../style/style.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="../index.html" title="Boost Test Library">
<link rel="up" href="../utf.html" title="Boost Test Library: The Unit Test Framework">
<link rel="prev" href="usage-recommendations/command-line-specific.html" title="Command line usage recommendations">
<link rel="next" href="../execution-monitor.html" title="Boost Test Library: The Execution Monitor">
<script language="JavaScript1.2" src="../../js/boost-test.js"></script>
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table width="100%"><tr>
<td width="10%"><a href="../index.html"><img alt="Home" width="229" height="61" border="0" src="../../../../../libs/test/doc/img/boost.test.logo.png"></a></td>
<td valign="middle" align="left"> &gt; <a href="../utf.html">The Unit Test Framework</a><a href="../execution-monitor.html">
&gt;
</a><b>Examples collection</b>
</td>
<td><div class="spirit-nav">
<a href="usage-recommendations/command-line-specific.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a href="../execution-monitor.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div></td>
</tr></table>
<hr>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="utf.examples"></a>The <acronym class="acronym">UTF</acronym> usage examples collection</h3></div></div></div>
<div class="itemizedlist"><ul type="square">
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-organization/auto-nullary-test-case.html#utf.user-guide.test-organization.auto-nullary-test-case.example06" title="Example&#160;1.&#160;Nullary function based test case with automated registration">Example&#160;1, &#8220;Nullary function based test case with automated registration&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-organization/manual-nullary-test-case.html#utf.user-guide.test-organization.manual-nullary-test-case.example01" title="Example&#160;2.&#160;Nullary free function manually registered">Example&#160;2, &#8220;Nullary free function manually registered&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-organization/manual-nullary-test-case.html#utf.user-guide.test-organization.manual-nullary-test-case.example02" title="Example&#160;3.&#160;Nullary method of a class bound to global class instance and manually registered">Example&#160;3, &#8220;Nullary method of a class bound to global class instance and manually registered&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-organization/manual-nullary-test-case.html#utf.user-guide.test-organization.manual-nullary-test-case.example03" title="Example&#160;4.&#160;Nullary method of a class bound to shared class instance and manually registered">Example&#160;4, &#8220;Nullary method of a class bound to shared class instance and manually registered&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-organization/manual-nullary-test-case.html#utf.user-guide.test-organization.manual-nullary-test-case.example04" title="Example&#160;5.&#160;Nullary method of a class bound to local class instance inside free function">Example&#160;5, &#8220;Nullary method of a class bound to local class instance inside free function&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-organization/manual-nullary-test-case.html#utf.user-guide.test-organization.manual-nullary-test-case.example05" title="Example&#160;6.&#160;Binary free function bound to set of different parameter pairs">Example&#160;6, &#8220;Binary free function bound to set of different parameter pairs&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-organization/unary-test-case.html#utf.user-guide.test-organization.unary-test-case.example07" title="Example&#160;7.&#160;Unary free function based test case">Example&#160;7, &#8220;Unary free function based test case&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-organization/unary-test-case.html#utf.user-guide.test-organization.unary-test-case.example08" title="Example&#160;8.&#160;Unary class method based test case">Example&#160;8, &#8220;Unary class method based test case&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-organization/auto-test-case-template.html#utf.user-guide.test-organization.auto-test-case-template.example10" title="Example&#160;9.&#160;Test case template with automated registration">Example&#160;9, &#8220;Test case template with automated registration&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-organization/manual-test-case-template.html#utf.user-guide.test-organization.manual-test-case-template.example09" title="Example&#160;10.&#160;Manually registered test case template">Example&#160;10, &#8220;Manually registered test case template&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-organization/auto-test-suite.html#utf.user-guide.test-organization.auto-test-suite.example12" title="Example&#160;11.&#160;Test suites with automated registration">Example&#160;11, &#8220;Test suites with automated registration&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-organization/manual-test-suite.html#utf.user-guide.test-organization.manual-test-suite.example11" title="Example&#160;13.&#160;Manually registered test suites">Example&#160;13, &#8220;Manually registered test suites&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-organization/master-test-suite.html#utf.user-guide.test-organization.cla-access.example13" title="Example&#160;14.&#160;Command line access in initialization function">Example&#160;14, &#8220;Command line access in initialization function&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-organization/master-test-suite.html#utf.user-guide.test-organization.master-test-suite-name.example14" title="Example&#160;15.&#160;Naming master test suite using the macro BOOST_TEST_MODULE">Example&#160;15, &#8220;Naming master test suite using the macro BOOST_TEST_MODULE&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-organization/master-test-suite.html#utf.user-guide.test-organization.master-test-suite-name.example15" title="Example&#160;16.&#160;Naming master test suite explicitly in the test module initialization function">Example&#160;16, &#8220;Naming master test suite explicitly in the test module initialization function&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-organization/expected-failures.html#utf.user-guide.test-organization.manual-expected-failures.example16" title="Example&#160;17.&#160;Expected failures specification for manually registered test case">Example&#160;17, &#8220;Expected failures specification for manually registered test case&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-organization/expected-failures.html#utf.user-guide.test-organization.auto-expected-failures.example17" title="Example&#160;18.&#160;Expected failures specification for automatically registered test case">Example&#160;18, &#8220;Expected failures specification for automatically registered test case&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/output-test.html#utf.user-guide.testing-tools.output-test.example28" title="Example&#160;19.&#160;output_test_stream usage with explicit output checks">Example&#160;19, &#8220;output_test_stream usage with explicit output checks&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/output-test.html#utf.user-guide.testing-tools.output-test.example29" title="Example&#160;20.&#160;output_test_stream usage for pattern file matching">Example&#160;20, &#8220;output_test_stream usage for pattern file matching&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/custom-predicate.html#utf.user-guide.testing-tools.custom-predicate.example30" title="Example&#160;21.&#160;Custom predicate support using BOOST_CHECK_PREDICATE">Example&#160;21, &#8220;Custom predicate support using BOOST_CHECK_PREDICATE&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/custom-predicate.html#utf.user-guide.testing-tools.custom-predicate.example31" title="Example&#160;22.&#160;Custom predicate support using class predicate_result">Example&#160;22, &#8220;Custom predicate support using class predicate_result&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/reference.html#.example33" title="Example&#160;24.&#160;BOOST_&lt;level&gt;_BITWISE_EQUAL usage">Example&#160;24, &#8220;BOOST_&lt;level&gt;_BITWISE_EQUAL usage&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-output/test-log.html#utf.user-guide.test-output.log.testing-tool-args.example32" title="Example&#160;44.&#160;BOOST_TEST_DONT_PRINT_LOG_VALUE usage">Example&#160;44, &#8220;BOOST_TEST_DONT_PRINT_LOG_VALUE usage&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-output/BOOST_TEST_MESSAGE.html#utf.user-guide.test-output.log.BOOST_TEST_MESSAGE.example21" title="Example&#160;45.&#160;BOOST_TEST_MESSAGE usage">Example&#160;45, &#8220;BOOST_TEST_MESSAGE usage&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-output/BOOST_TEST_CHECKPOINT.html#utf.user-guide.test-output.log.BOOST_TEST_CHECKPOINT.example22" title="Example&#160;46.&#160;BOOST_TEST_CHECKPOINT usage">Example&#160;46, &#8220;BOOST_TEST_CHECKPOINT usage&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-output/BOOST_TEST_PASSPOINT.html#utf.user-guide.test-output.log.BOOST_TEST_PASSPOINT.example23" title="Example&#160;47.&#160;BOOST_TEST_PASSPOINT usage">Example&#160;47, &#8220;BOOST_TEST_PASSPOINT usage&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/fixture/per-test-case.html#utf.user-guide.fixture.per-test-case.example18" title="Example&#160;52.&#160;Per test case fixture">Example&#160;52, &#8220;Per test case fixture&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/fixture/test-suite-shared.html#utf.user-guide.fixture.test-suite-shared.example19" title="Example&#160;53.&#160;Test suite level fixture">Example&#160;53, &#8220;Test suite level fixture&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/fixture/global.html#utf.user-guide.fixture.global.example20" title="Example&#160;54.&#160;Global fixture">Example&#160;54, &#8220;Global fixture&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="../prg-exec-monitor.html#pem.usage.example24" title="Example&#160;55.&#160;The Program Execution Monitor: Hello World">Example&#160;55, &#8220;The Program Execution Monitor: Hello World&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="../prg-exec-monitor.html#pem.usage.example25" title="Example&#160;56.&#160;The Program Execution Monitor: standard exception detection">Example&#160;56, &#8220;The Program Execution Monitor: standard exception detection&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="../prg-exec-monitor.html#pem.usage.example26" title="Example&#160;57.&#160;The Program Execution Monitor: error return code detection">Example&#160;57, &#8220;The Program Execution Monitor: error return code detection&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="../minimal.html#minimal.example.example27" title="Example&#160;58.&#160;Minimal testing facility application">Example&#160;58, &#8220;Minimal testing facility application&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/reference.html#.example34" title="Example&#160;23.&#160;BOOST_&lt;level&gt; usage">Example&#160;23, &#8220;BOOST_&lt;level&gt; usage&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/reference.html#.example35" title="Example&#160;28.&#160;BOOST_&lt;level&gt;_EQUAL usage">Example&#160;28, &#8220;BOOST_&lt;level&gt;_EQUAL usage&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/reference.html#.example36" title="Example&#160;29.&#160;BOOST_&lt;level&gt;_EQUAL_COLLECTIONS usage">Example&#160;29, &#8220;BOOST_&lt;level&gt;_EQUAL_COLLECTIONS usage&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/reference.html#.example37" title="Example&#160;30.&#160;BOOST_&lt;level&gt;_EXCEPTION usage">Example&#160;30, &#8220;BOOST_&lt;level&gt;_EXCEPTION usage&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/reference.html#.example38" title="Example&#160;35.&#160;BOOST_&lt;level&gt;_MESSAGE usage">Example&#160;35, &#8220;BOOST_&lt;level&gt;_MESSAGE usage&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/reference.html#.example39" title="Example&#160;37.&#160;BOOST_&lt;level&gt;_NO_THROW usage">Example&#160;37, &#8220;BOOST_&lt;level&gt;_NO_THROW usage&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/reference.html#.example40" title="Example&#160;38.&#160;BOOST_&lt;level&gt;_PREDICATE usage">Example&#160;38, &#8220;BOOST_&lt;level&gt;_PREDICATE usage&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/reference.html#.example41" title="Example&#160;39.&#160;BOOST_&lt;level&gt;_SMALL usage">Example&#160;39, &#8220;BOOST_&lt;level&gt;_SMALL usage&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/reference.html#.example42" title="Example&#160;25.&#160;BOOST_&lt;level&gt;_CLOSE usage with very small values">Example&#160;25, &#8220;BOOST_&lt;level&gt;_CLOSE usage with very small values&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/reference.html#.example43" title="Example&#160;26.&#160;BOOST_&lt;level&gt;_CLOSE usage with very big values">Example&#160;26, &#8220;BOOST_&lt;level&gt;_CLOSE usage with very big values&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/reference.html#.example44" title="Example&#160;27.&#160;BOOST_&lt;level&gt;_CLOSE_FRACTION usage">Example&#160;27, &#8220;BOOST_&lt;level&gt;_CLOSE_FRACTION usage&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/reference.html#.example45" title="Example&#160;40.&#160;BOOST_&lt;level&gt;_THROW usage">Example&#160;40, &#8220;BOOST_&lt;level&gt;_THROW usage&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/reference.html#.example46" title="Example&#160;41.&#160;BOOST_ERROR usage">Example&#160;41, &#8220;BOOST_ERROR usage&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/reference.html#.example47" title="Example&#160;42.&#160;BOOST_FAIL usage">Example&#160;42, &#8220;BOOST_FAIL usage&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/reference.html#.example48" title="Example&#160;43.&#160;BOOST_IS_DEFINED usage">Example&#160;43, &#8220;BOOST_IS_DEFINED usage&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-output/test-progress.html#utf.user-guide.test-output.progress.example49" title="Example&#160;51.&#160;Progress report for the test module with large amount of test cases">Example&#160;51, &#8220;Progress report for the test module with large amount of test cases&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-output/log-ct-config.html#utf.user-guide.test-output.log.ct-config.output-stream.example50" title="Example&#160;48.&#160;Test log output redirection">Example&#160;48, &#8220;Test log output redirection&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-output/log-ct-config.html#utf.user-guide.test-output.log.ct-config.log-level.example51" title="Example&#160;49.&#160;Compile time log level configuration">Example&#160;49, &#8220;Compile time log level configuration&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-output/log-ct-config.html#utf.user-guide.test-output.log.ct-config.log-format.example52" title="Example&#160;50.&#160;Compile time log format selection">Example&#160;50, &#8220;Compile time log format selection&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/test-organization/auto-test-suite.html#utf.user-guide.test-organization.auto-test-suite.example53" title="Example&#160;12.&#160;Example of test suite extension using automated registration facility">Example&#160;12, &#8220;Example of test suite extension using automated registration facility&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/reference.html#.example54" title="Example&#160;36.&#160;BOOST_&lt;level&gt;_NE usage">Example&#160;36, &#8220;BOOST_&lt;level&gt;_NE usage&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/reference.html#.example55" title="Example&#160;33.&#160;BOOST_&lt;level&gt;_LE usage">Example&#160;33, &#8220;BOOST_&lt;level&gt;_LE usage&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/reference.html#.example56" title="Example&#160;34.&#160;BOOST_&lt;level&gt;_LT usage">Example&#160;34, &#8220;BOOST_&lt;level&gt;_LT usage&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/reference.html#.example57" title="Example&#160;31.&#160;BOOST_&lt;level&gt;_GE usage">Example&#160;31, &#8220;BOOST_&lt;level&gt;_GE usage&#8221;</a>
</li>
<li class="listitem" style="list-style-type: square">
<a class="xref" href="user-guide/testing-tools/reference.html#.example58" title="Example&#160;32.&#160;BOOST_&lt;level&gt;_GT usage">Example&#160;32, &#8220;BOOST_&lt;level&gt;_GT usage&#8221;</a>
</li>
</ul></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 &#169; 2001-2012 Gennadiy Rozental</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="usage-recommendations/command-line-specific.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../utf.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="../execution-monitor.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>