Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/AnalysisCorrelationToPointUnitTest.cpp

    re138de r3d9df5  
    1111#include <cppunit/extensions/TestFactoryRegistry.h>
    1212#include <cppunit/ui/text/TestRunner.h>
     13
     14#include <cstring>
    1315
    1416#include "analysis_correlation.hpp"
     
    116118  // put pair correlation into bins and check with no range
    117119  binmap = BinData( pointmap, 0.5, 0., 0. );
    118   CPPUNIT_ASSERT_EQUAL( (size_t)2, binmap->size() );
    119   //OutputCorrelation ( binmap );
     120  OutputCorrelation ( (ofstream *)&cout, binmap );
     121  CPPUNIT_ASSERT_EQUAL( (size_t)3, binmap->size() );
    120122  tester = binmap->begin();
    121123  CPPUNIT_ASSERT_EQUAL( 1., tester->first );
     
    129131  // ... and check with [0., 2.] range
    130132  binmap = BinData( pointmap, 0.5, 0., 2. );
     133  OutputCorrelation ( (ofstream *)&cout, binmap );
    131134  CPPUNIT_ASSERT_EQUAL( (size_t)5, binmap->size() );
    132   //OutputCorrelation ( binmap );
    133135  tester = binmap->begin();
    134136  CPPUNIT_ASSERT_EQUAL( 0., tester->first );
Note: See TracChangeset for help on using the changeset viewer.