Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/doc/html/function/testsuite.html @ 25

Last change on this file since 25 was 12, checked in by landauf, 17 years ago

added boost

File size: 8.8 KB
Line 
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
4<title>Testsuite</title>
5<link rel="stylesheet" href="../boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
7<link rel="start" href="../index.html" title="The Boost C++ Libraries">
8<link rel="up" href="../function.html" title="Chapter 4. Boost.Function">
9<link rel="prev" href="misc.html" title="Miscellaneous Notes">
10<link rel="next" href="../hash.html" title="Chapter 5. Boost.Functional/Hash">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%">
14<td valign="top"><img alt="boost.png (6897 bytes)" width="277" height="86" src="../../../boost.png"></td>
15<td align="center"><a href="../../../index.htm">Home</a></td>
16<td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td>
17<td align="center"><a href="../../../people/people.htm">People</a></td>
18<td align="center"><a href="../../../more/faq.htm">FAQ</a></td>
19<td align="center"><a href="../../../more/index.htm">More</a></td>
20</table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="misc.html"><img src="../images/prev.png" alt="Prev"></a><a accesskey="u" href="../function.html"><img src="../images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../images/home.png" alt="Home"></a><a accesskey="n" href="../hash.html"><img src="../images/next.png" alt="Next"></a>
24</div>
25<div class="section" lang="en">
26<div class="titlepage"><div><div><h3 class="title">
27<a name="function.testsuite"></a>Testsuite</h3></div></div></div>
28<div class="toc"><dl>
29<dt><span class="section"><a href="testsuite.html#function.testsuite.acceptance">Acceptance tests</a></span></dt>
30<dt><span class="section"><a href="testsuite.html#function.testsuite.negative">Negative tests</a></span></dt>
31</dl></div>
32<div class="section" lang="en">
33<div class="titlepage"><div><div><h4 class="title">
34<a name="function.testsuite.acceptance"></a>Acceptance tests</h4></div></div></div>
35<div class="informaltable"><table class="table">
36<colgroup>
37<col>
38<col>
39<col>
40</colgroup>
41<thead><tr>
42<th>Test</th>
43<th>Type</th>
44<th>Description</th>
45<th>If failing...</th>
46</tr></thead>
47<tbody>
48<tr>
49<td><p><a href="../../../libs/function/test/function_test.cpp" target="_top">function_test.cpp</a></p></td>
50<td><p>run</p></td>
51<td><p>Test the capabilities of the <code class="computeroutput"><a href="../boost/function.html" title="Class template function">boost::function</a></code> class template.</p></td>
52<td><p>The <code class="computeroutput"><a href="../boost/function.html" title="Class template function">boost::function</a></code> class template may not be usable on your compiler. However, the library may still be usable via the <code class="computeroutput"><a href="../functionN.html" title="Class template functionN">boost::functionN</a></code> class templates.</p></td>
53</tr>
54<tr>
55<td><p><a href="../../../libs/function/test/function_n_test.cpp" target="_top">function_n_test.cpp</a></p></td>
56<td><p>run</p></td>
57<td><p>Test the capabilities of the <code class="computeroutput"><a href="../functionN.html" title="Class template functionN">boost::functionN</a></code> class templates.</p></td>
58<td> </td>
59</tr>
60<tr>
61<td><p><a href="../../../libs/function/test/allocator_test.cpp" target="_top">allocator_test.cpp</a></p></td>
62<td><p>run</p></td>
63<td><p>Test the use of custom allocators.</p></td>
64<td><p>Allocators are ignored by the implementation.</p></td>
65</tr>
66<tr>
67<td><p><a href="../../../libs/function/test/stateless_test.cpp" target="_top">stateless_test.cpp</a></p></td>
68<td><p>run</p></td>
69<td><p>Test the optimization of stateless function objects in the Boost.Function library.</p></td>
70<td><p>The exception-safety and performance guarantees given for stateless function objects may not be met by the implementation.</p></td>
71</tr>
72<tr>
73<td><p><a href="../../../libs/function/test/lambda_test.cpp" target="_top">lambda_test.cpp</a></p></td>
74<td><p>run</p></td>
75<td><p>Test the interaction between Boost.Function and Boost.Lambda.</p></td>
76<td><p>Either Boost.Lambda does not work on the platform, or Boost.Function cannot safely be applied without the use of <code class="computeroutput">boost::unlambda</code>.</p></td>
77</tr>
78<tr>
79<td><p><a href="../../../libs/function/test/contains_test.cpp" target="_top">contains_test.cpp</a></p></td>
80<td><p>run</p></td>
81<td><p>Test the operation of the
82    <code class="computeroutput">target</code> member function and the
83    equality operators.</p></td>
84<td> </td>
85</tr>
86<tr>
87<td><p><a href="../../../libs/function/test/function_30.cpp" target="_top">function_30.cpp</a></p></td>
88<td><p>compile</p></td>
89<td><p>Test the generation of a Boost.Function function object adaptor accepting 30 arguments.</p></td>
90<td><p>The Boost.Function library may work for function object adaptors of up to 10 parameters, but will be unable to generate adaptors for an arbitrary number of parameters. Failure often indicates an error in the compiler's preprocessor.</p></td>
91</tr>
92<tr>
93<td><p><a href="../../../libs/function/test/function_arith_cxx98.cpp" target="_top">function_arith_cxx98.cpp</a></p></td>
94<td><p>run</p></td>
95<td><p>Test the first tutorial example.</p></td>
96<td> </td>
97</tr>
98<tr>
99<td><p><a href="../../../libs/function/test/function_arith_portable.cpp" target="_top">function_arith_portable.cpp</a></p></td>
100<td><p>run</p></td>
101<td><p>Test the first tutorial example.</p></td>
102<td> </td>
103</tr>
104<tr>
105<td><p><a href="../../../libs/function/test/sum_avg_cxx98.cpp" target="_top">sum_avg_cxx98.cpp</a></p></td>
106<td><p>run</p></td>
107<td><p>Test the second tutorial example.</p></td>
108<td> </td>
109</tr>
110<tr>
111<td><p><a href="../../../libs/function/test/sum_avg_portable.cpp" target="_top">sum_avg_portable.cpp</a></p></td>
112<td><p>run</p></td>
113<td><p>Test the second tutorial example.</p></td>
114<td> </td>
115</tr>
116<tr>
117<td><p><a href="../../../libs/function/test/mem_fun_cxx98.cpp" target="_top">mem_fun_cxx98.cpp</a></p></td>
118<td><p>run</p></td>
119<td><p>Test member function example from tutorial.</p></td>
120<td> </td>
121</tr>
122<tr>
123<td><p><a href="../../../libs/function/test/mem_fun_portable.cpp" target="_top">mem_fun_portable.cpp</a></p></td>
124<td><p>run</p></td>
125<td><p>Test member function example from tutorial.</p></td>
126<td> </td>
127</tr>
128<tr>
129<td><p><a href="../../../libs/function/test/std_bind_cxx98.cpp" target="_top">std_bind_cxx98.cpp</a></p></td>
130<td><p>run</p></td>
131<td><p>Test standard binders example from tutorial.</p></td>
132<td> </td>
133</tr>
134<tr>
135<td><p><a href="../../../libs/function/test/std_bind_portable.cpp" target="_top">std_bind_portable.cpp</a></p></td>
136<td><p>run</p></td>
137<td><p>Test standard binders example from tutorial.</p></td>
138<td> </td>
139</tr>
140<tr>
141<td><p><a href="../../../libs/function/test/function_ref_cxx98.cpp" target="_top">function_ref_cxx98.cpp</a></p></td>
142<td><p>run</p></td>
143<td><p>Test <code class="computeroutput"><a href="../reference_wrapper.html#id2366489">boost::ref</a></code> example from tutorial.</p></td>
144<td> </td>
145</tr>
146<tr>
147<td><p><a href="../../../libs/function/test/function_ref_portable.cpp" target="_top">function_ref_portable.cpp</a></p></td>
148<td><p>run</p></td>
149<td><p>Test <code class="computeroutput"><a href="../reference_wrapper.html#id2366489">boost::ref</a></code> example from tutorial.</p></td>
150<td> </td>
151</tr>
152</tbody>
153</table></div>
154</div>
155<div class="section" lang="en">
156<div class="titlepage"><div><div><h4 class="title">
157<a name="function.testsuite.negative"></a>Negative tests</h4></div></div></div>
158<div class="informaltable"><table class="table">
159<colgroup>
160<col>
161<col>
162<col>
163</colgroup>
164<thead><tr>
165<th>Test</th>
166<th>Type</th>
167<th>Description</th>
168<th>If failing...</th>
169</tr></thead>
170<tbody>
171<tr>
172<td><p><a href="../../../libs/function/test/function_test_fail1.cpp" target="_top">function_test_fail1.cpp</a></p></td>
173<td><p>compile-fail</p></td>
174<td><p>Test the (incorrect!) use of comparisons between Boost.Function function objects.</p></td>
175<td><p>Intuitive (but incorrect!) code may compile and will give meaningless results.</p></td>
176</tr>
177<tr>
178<td><p><a href="../../../libs/function/test/function_test_fail2.cpp" target="_top">function_test_fail2.cpp</a></p></td>
179<td><p>compile-fail</p></td>
180<td><p>Test the use of an incompatible function object with Boost.Function</p></td>
181<td><p>Incorrect code may compile (with potentially unexpected results).</p></td>
182</tr>
183</tbody>
184</table></div>
185</div>
186</div>
187<table width="100%"><tr>
188<td align="left"></td>
189<td align="right"><small>Copyright © 2001-2004 Douglas Gregor</small></td>
190</tr></table>
191<hr>
192<div class="spirit-nav">
193<a accesskey="p" href="misc.html"><img src="../images/prev.png" alt="Prev"></a><a accesskey="u" href="../function.html"><img src="../images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../images/home.png" alt="Home"></a><a accesskey="n" href="../hash.html"><img src="../images/next.png" alt="Next"></a>
194</div>
195</body>
196</html>
Note: See TracBrowser for help on using the repository browser.