Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/AnalysisCorrelationToSurfaceUnitTest.cpp

    re138de rc6394d  
    1111#include <cppunit/extensions/TestFactoryRegistry.h>
    1212#include <cppunit/ui/text/TestRunner.h>
     13
     14#include <cstring>
    1315
    1416#include "analysis_correlation.hpp"
     
    179181  // put pair correlation into bins and check with no range
    180182  binmap = BinData( surfacemap, 0.5, 0., 0. );
    181   CPPUNIT_ASSERT_EQUAL( (size_t)2, binmap->size() );
    182183  OutputCorrelation ( (ofstream *)&cout, binmap );
     184  CPPUNIT_ASSERT_EQUAL( (size_t)9, binmap->size() );
    183185  // inside point is first and must have negative value
    184186  tester = binmap->lower_bound(2.95); // start depends on the min value and
     
    197199  // ... and check with [0., 2.] range
    198200  binmap = BinData( surfacemap, 0.5, -2., 4. );
     201  OutputCorrelation ( (ofstream *)&cout, binmap );
    199202  CPPUNIT_ASSERT_EQUAL( (size_t)13, binmap->size() );
    200   OutputCorrelation ( (ofstream *)&cout, binmap );
    201203  // three outside points
    202204  tester = binmap->lower_bound(3.);
Note: See TracChangeset for help on using the changeset viewer.