- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/unittests/AnalysisCorrelationToSurfaceUnitTest.cpp
rc6394d re138de 11 11 #include <cppunit/extensions/TestFactoryRegistry.h> 12 12 #include <cppunit/ui/text/TestRunner.h> 13 14 #include <cstring>15 13 16 14 #include "analysis_correlation.hpp" … … 181 179 // put pair correlation into bins and check with no range 182 180 binmap = BinData( surfacemap, 0.5, 0., 0. ); 181 CPPUNIT_ASSERT_EQUAL( (size_t)2, binmap->size() ); 183 182 OutputCorrelation ( (ofstream *)&cout, binmap ); 184 CPPUNIT_ASSERT_EQUAL( (size_t)9, binmap->size() );185 183 // inside point is first and must have negative value 186 184 tester = binmap->lower_bound(2.95); // start depends on the min value and … … 199 197 // ... and check with [0., 2.] range 200 198 binmap = BinData( surfacemap, 0.5, -2., 4. ); 199 CPPUNIT_ASSERT_EQUAL( (size_t)13, binmap->size() ); 201 200 OutputCorrelation ( (ofstream *)&cout, binmap ); 202 CPPUNIT_ASSERT_EQUAL( (size_t)13, binmap->size() );203 201 // three outside points 204 202 tester = binmap->lower_bound(3.);
Note:
See TracChangeset
for help on using the changeset viewer.
