Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/AnalysisCorrelationToSurfaceUnitTest.cpp

    rc6394d re138de  
    1111#include <cppunit/extensions/TestFactoryRegistry.h>
    1212#include <cppunit/ui/text/TestRunner.h>
    13 
    14 #include <cstring>
    1513
    1614#include "analysis_correlation.hpp"
     
    181179  // put pair correlation into bins and check with no range
    182180  binmap = BinData( surfacemap, 0.5, 0., 0. );
     181  CPPUNIT_ASSERT_EQUAL( (size_t)2, binmap->size() );
    183182  OutputCorrelation ( (ofstream *)&cout, binmap );
    184   CPPUNIT_ASSERT_EQUAL( (size_t)9, binmap->size() );
    185183  // inside point is first and must have negative value
    186184  tester = binmap->lower_bound(2.95); // start depends on the min value and
     
    199197  // ... and check with [0., 2.] range
    200198  binmap = BinData( surfacemap, 0.5, -2., 4. );
     199  CPPUNIT_ASSERT_EQUAL( (size_t)13, binmap->size() );
    201200  OutputCorrelation ( (ofstream *)&cout, binmap );
    202   CPPUNIT_ASSERT_EQUAL( (size_t)13, binmap->size() );
    203201  // three outside points
    204202  tester = binmap->lower_bound(3.);
Note: See TracChangeset for help on using the changeset viewer.