Definition at line 60 of file TestMakeRandom.h. References ILOG_DEBUG, Impala::Core::Array::MakeRandomScalarReal64(), and Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::Value(). 00061 { 00062 Array2dScalarReal64* a = MakeRandomScalarReal64(w, h, maxVal); 00063 // we could use PixMax here, but PixMax itself doesn't have unit-tests... 00064 bool error = false; 00065 for(int y=0 ; y<h ; ++y) 00066 for(int x=0 ; x<w ; ++x) 00067 { 00068 if(a->Value(x, y) > maxVal) 00069 { 00070 ILOG_DEBUG(a->Value(x, y) <<" > "<< maxVal <<" @ ("<< x 00071 <<", "<< y <<")"); 00072 error = true; 00073 } 00074 } 00075 CPPUNIT_ASSERT(!error); 00076 }
Here is the call graph for this function:
|