Re: Linking error while separating parser into _def and .cpp files

Joel de Guzman <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
On 09/11/2016 9:05 AM, Exagon wrote:
> Thank you very much this helps me a lot and works for me.
> But since I have to pass an attribute to the phrase_parse function, how can
> I write a test method for testing all parsers in unit test etc?
> It would be a pain to write a new function for every parser I have to test,
> and for every parser which returns another attribute.

I'd say that unit tests should reflect what actually you do, so I do not
understand why you shouldn't test the attributes too. But I suppose this
is outside the scope of this conversation, no?

Regards,
-- 
Joel de Guzman
http://www.ciere.com
http://boost-spirit.com
http://www.cycfi.com/


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.