Changeset a3c47c for molecuilder


Ignore:
Timestamp:
Apr 26, 2010, 4:00:24 PM (15 years ago)
Author:
Frederik Heber <heber@…>
Children:
bb50e0
Parents:
b1c92e
Message:

FIX: AnalysisCorrelationToSurfaceUnitTest has been broken since change of initialisizing bins to zero.

  • test of binmap size in CorrelationToSurfaceCarbonBinNoRangeTest() has to find 9, not 2 bins (due to init). There are still only two non-zero bins.
  • Shifted output of binmap in front of size() test as then the error can be spotted, otherwise execution is interrupted before binmap is output.

Signed-off-by: Frederik Heber <heber@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/unittests/AnalysisCorrelationToSurfaceUnitTest.cpp

    rb1c92e ra3c47c  
    181181  // put pair correlation into bins and check with no range
    182182  binmap = BinData( surfacemap, 0.5, 0., 0. );
    183   CPPUNIT_ASSERT_EQUAL( (size_t)2, binmap->size() );
    184183  OutputCorrelation ( (ofstream *)&cout, binmap );
     184  CPPUNIT_ASSERT_EQUAL( (size_t)9, binmap->size() );
    185185  // inside point is first and must have negative value
    186186  tester = binmap->lower_bound(2.95); // start depends on the min value and
     
    199199  // ... and check with [0., 2.] range
    200200  binmap = BinData( surfacemap, 0.5, -2., 4. );
     201  OutputCorrelation ( (ofstream *)&cout, binmap );
    201202  CPPUNIT_ASSERT_EQUAL( (size_t)13, binmap->size() );
    202   OutputCorrelation ( (ofstream *)&cout, binmap );
    203203  // three outside points
    204204  tester = binmap->lower_bound(3.);
Note: See TracChangeset for help on using the changeset viewer.