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