Boost logo

Boost Users :

From: Ranji Raghavan (ranji.raghavan_at_[hidden])
Date: 2007-02-06 14:56:20


Actually, I am just looking into BOOST reading the documentation etc
Do you recommend any particular version of BOOST that I should install and
play with? I am looking to define all the test data in XML files - maybe
1000's of them - have a class that parses this XML file (some tests have
about 7-8 pieces of disparate primitive data types string, double, int
etc)and pass the array of class instances to a test method for repetitive
testing. If this is not pragmatic, could you recommend another way?

-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Gennadiy Rozental
Sent: Tuesday, February 06, 2007 12:56 PM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] Question about Boost.Test

> Hello Gennadiy -

> The question I have for you is this: Can I pass an instance of a class
> (that contains all the requisite data I parsed from the XML file) to a
> test method. For
> example -

Short answer is - yes. Do you have any problems?

> class my_complex_test
> {
> void test_assignment( can this be an instance of a class? )

Probably "ParameterType const&"?

> {
> ...
> }
> };
> ...
> std::list<can this be a list that holds instances of a class>
> possible_xmlvalues;
> ts->add( BOOST_PARAM_CLASS_TEST_CASE( &my_complex_test::test_assignment,
> possible_xmlvalues.begin(),
> possible_xmlvalues.end() ) );

What version of boost are you using? You sure you need class?

Gennadiy

_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


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