$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] Boost Unit Testing Macros on Visual Studio	2005/Visual C++ 8.0
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-12-09 15:50:08
AMDG
Andrew Leer wrote:
> I'm reading this article
> (http://www.ibm.com/developerworks/aix/library/au-ctools1_boost/?S_TACT=105AGY20&S_CMP=HP)
>  on the Boost Unit Testing Framework.
>
> However I'm having a bit of trouble with the first example, my guess
> is that they left something out (something that would be obvious to
> hardcore C++ coders) as IBM often does in their articles.  Another
> possibility is that my Visual Studio 2005 C++ compiler is just too old
> for the example.
>   
This should work with recent versions of Boost.  However, with
older versions you may need
#include <boost/test/test_tools.hpp>
>     #define _MYSTRING
>     #define BOOST_TEST_MODULE stringtest
>     #include <boost/test/unit_test.hpp>
>     #include "stdafx.h"
>     //#include "mystring.h"
>
>     BOOST_AUTO_TEST_SUITE (stringtest) // name of the test suite is stringtest
>   
In Christ,
Steven Watanabe