You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by Anton Pevtsov <an...@moscow.vdiweb.com> on 2006/02/08 17:24:11 UTC
test for lib.includes
The attached file contains the tests for the lib.includes algorithm.
With best wishes,
Anton Pevtsov
Re: test for lib.includes
Posted by Martin Sebor <se...@roguewave.com>.
Anton Pevtsov wrote:
> The attached file contains the tests for the lib.includes algorithm.
Great, thanks for taking the initiative and write the test from
scratch! :) It's committed here:
http://svn.apache.org/viewcvs.cgi?rev=376022&view=rev
[...]
> // check the returned value
> rw_assert (res == result, 0, line,
> "line %d: %s<%s, %s%{?}, %s%{;}> (\"%s\", \"%s\", ...) "
> "got %s, expected %s",
> __LINE__, fname, it1name, it2name, ppred, funname, src1, src2,
> result ? "true" : "false", res ? "true" : "false");
Use our "%b" extension to format bool values as false or true, like
this:
// check the returned value
rw_assert (res == result, 0, line,
"line %d: %s<%s, %s%{?}, %s%{;}>(\"%s\", \"%s\", ...) "
"== %b, got %b",
__LINE__, fname, it1name, it2name, ppred, predname,
src1, src2,
res, result);
Martin