incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: test for lib.includes
Date Wed, 08 Feb 2006 18:52:06 GMT
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

Mime
View raw message