incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Vitek" <Travis.Vi...@roguewave.com>
Subject RE: svn commit: r647225 - /stdcxx/trunk/tests/algorithms/25.random.shuffle.cpp
Date Wed, 07 May 2008 02:02:00 GMT
 

>Martin Sebor wrote:
>
>
>AFAICT, this changes the behavior of the loop in a way we don't
>want: the loop will no longer break on the first failure and might
>generate dozens of lines of output. The effect I think we want is:
>
>     if (!rw_assert (array [i] == result [i], 0, line,
>                     "randomly shuffled sequence failed to match "
>                     "the expected result (data portability failure) "
>                     "%d != %d at %zu",
>                     array [i], result [i], i + 1))
>         break;
>

Yes, you are right. Fix committed to 4.2.x in r653966.

>Martin
>

Mime
View raw message