mirror of
https://github.com/boostorg/test.git
synced 2026-01-22 17:52:18 +00:00
54 lines
3.7 KiB
HTML
54 lines
3.7 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>Boost Test Library: test_exec_monitor example</TITLE>
|
|
<LINK rel="stylesheet" type="text/css" href="../style/btl.css" media="screen">
|
|
<LINK rel="stylesheet" type="text/css" href="../style/btl-print.css" media="print">
|
|
<META http-equiv="Content-Language" content="en-us">
|
|
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
</HEAD>
|
|
<BODY>
|
|
<DIV class="header"> <A href="../index.html">Boost.Test</A> > <A href="index.html">Examples</A> > <SPAN class="current_article">test case based on function template</SPAN></DIV>
|
|
<DIV class="body"> <IMG src="../btl1.gif" width="252" height="43" alt="Boost Test logo">
|
|
<H1 class="subtitle">The <span class="header"><SPAN class="current_article">test case based on function</SPAN></span> <span class="header"><SPAN class="current_article">template</SPAN></span> example</H1>
|
|
<TABLE class="test-example-summary">
|
|
<TR>
|
|
<TD class="title" valign="top" >Rationale:</TD>
|
|
<TD>to demonstrate how to define test cases using BOOST_FUNC_TEMPLATE_TEST_CASE facility and how to register them</TD>
|
|
</TR>
|
|
<TR>
|
|
<TD class="title" valign="top">Input:</TD>
|
|
<TD>This example does not require any input</TD>
|
|
</TR>
|
|
<TR>
|
|
<TD class="title" valign="top">Output:</TD>
|
|
<TD>Running 10 test cases...<br>
|
|
../../../libs/test/example/test_case_template_example.cpp(18): error in "free_test_function": test 2 == (int const)Number::value failed [2 != 0]<br>
|
|
../../../libs/test/example/test_case_template_example.cpp(18): error in "free_test_function": test 2 == (int const)Number::value failed [2 != 1]<br>
|
|
../../../libs/test/example/test_case_template_example.cpp(18): error in "free_test_function": test 2 == (int const)Number::value failed [2 != 3]<br>
|
|
../../../libs/test/example/test_case_template_example.cpp(18): error in "free_test_function": test 2 == (int const)Number::value failed [2 != 4]<br>
|
|
../../../libs/test/example/test_case_template_example.cpp(18): error in "free_test_function": test 2 == (int const)Number::value failed [2 != 5]<br>
|
|
../../../libs/test/example/test_case_template_example.cpp(18): error in "free_test_function": test 2 == (int const)Number::value failed [2 != 6]<br>
|
|
../../../libs/test/example/test_case_template_example.cpp(18): error in "free_test_function": test 2 == (int const)Number::value failed [2 != 7]<br>
|
|
../../../libs/test/example/test_case_template_example.cpp(18): error in "free_test_function": test 2 == (int const)Number::value failed [2 != 8]<br>
|
|
../../../libs/test/example/test_case_template_example.cpp(18): error in "free_test_function": test 2 == (int const)Number::value failed [2 != 9]
|
|
<p>*** 9 failures detected in test suite "Test case template example"
|
|
</p></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD class="title" valign="top">Source:</TD>
|
|
<TD><A href="../../example/test_case_template_example.cpp">test_case_template_example.cpp</A></TD>
|
|
</TR>
|
|
</TABLE>
|
|
</DIV>
|
|
<DIV class="footer">
|
|
<DIV class="footer-body">
|
|
<P> © <A name="Copyright">Copyright</A> <A href="mailto:boost-test%20at%20emailaccount%20dot%20com%20%28please%20unobscure%29">Gennadiy Rozental</A> 2001-2006. <BR>
|
|
Distributed under the Boost Software License, Version 1.0.
|
|
(See accompanying file <A href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</A> or copy at
|
|
<A href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</A>)</P>
|
|
<P>Revised: <!-- #BeginDate format:Sw1 -->8 January, 2004<!-- #EndDate --> </P>
|
|
</DIV>
|
|
</DIV>
|
|
</BODY>
|
|
</HTML>
|