assert a correct number of errors and failures

This commit is contained in:
nojhan 2011-12-15 23:14:02 +01:00
commit 5310bba7fc

View file

@ -197,6 +197,7 @@ void test( unsigned int M, unsigned int N, unsigned int F, unsigned int R, unsig
if( errors[a].size() == 0 ) {
std::cout << "NAN";
} else {
assert( errors[a].size() == R - fails[a] );
std::cout << sum(errors[a])/R;
}
std::cout << std::endl;