Sophie

Sophie

distrib > Mandriva > 10.0 > i586 > by-pkgid > ef9bad9e14fc2a68cb7c992c11d75f5e > files > 4154

libboost1-devel-1.31.0-1mdk.i586.rpm

<HTML>
<HEAD>
<TITLE>Boost Test Library: unit_test_example4 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">unit_test_example4</SPAN> 
</DIV>
<DIV class="body"> <IMG src='../btl1.gif' width='252' height='43' alt="Boost Test logo"> 
  <H1 class="subtitle">The Unit Test Framework example 4</H1>
  <TABLE class="test-example-summary">
    <TR>
      <TD class="title" valign="top">Rationale:</TD>
      <TD>to demonstrate how to construct parameterized test case based on free function test case and 
        where to store the parameters </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>The output depends on whether or not your system support setting test case timeout. For Win32 
        it will look like this:<BR>
        <SPAN class="test-output">Running 1 test case...<BR>
        .../unit_test_example4.cpp(20): error in "check_string": test s.substr( 0, 3 ) == "hdr" failed 
        [3 != hdr]<BR>
        <BR>
        *** No errors detected </SPAN> </TD>
    </TR>
    <TR>
      <TD class="title" valign="top">Source:</TD>
      <TD><A href="../../example/unit_test_example4.cpp">unit_test_example4.cpp</A></TD>
    </TR>
  </TABLE>
</DIV>
<DIV class="footer"> 
  <DIV class="footer-body"> 
    <P> &copy <A name="Copyright">Copyright</A> <A href='mailto:rogeeff@fusemail.com'>Gennadiy Rozental</A> 2001-2004. <BR>
      Use, modification, and distribution are subject to 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 -->6 January, 2004<!-- #EndDate -->     </P>
  </DIV>
</DIV>
</BODY>
</HTML>