Boost logo

Boost Users :

Subject: [Boost-users] [BOOST]BOOST_AUTO_TEST_CASE_TEMPLATE usage
From: Hemanth Choudary M V (RBEI/ETA1) (HemanthChoudary.MV_at_[hidden])
Date: 2013-09-10 02:28:13


Hi,

In the code snippet below,
The 3rd parameter in the BOOST_AUTO_TEST_CASE_TEMPLATE is a boost::mpl::list.
Is the 3rd parameter restricted only to boost::mpl::list or anything else can also be used?

#define BOOST_TEST_MODULE example
#include <boost/test/included/unit_test.hpp>
#include <boost/test/test_case_template.hpp>
#include <boost/mpl/list.hpp>

//____________________________________________________________________________//

typedef boost::mpl::list<long long,unsigned char> test_types;

BOOST_AUTO_TEST_CASE_TEMPLATE( my_test, T, test_types )
{
    BOOST_CHECK_EQUAL( sizeof(T), (unsigned)4 );
}

//_

Mit freundlichen Grüßen / Best Regards,
Hemanth Choudary MV
RBEI/ETA1




Picture (Device Independent Bitmap) 1.jpg

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net