Changeset 1945


Ignore:
Timestamp:
May 6, 2009, 3:46:01 PM (12 years ago)
Author:
Jari Häkkinen
Message:

Addresses #535. Changeset:1943 contained defect test for the issue ... it fails but due to other reasons than what we try to catch, this changeset fixes the test for nan in source.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.5-stable/test/normalization_test.cc

    r1943 r1945  
    211211  std::vector<utility::DataWeight> result_w2(src_w.size());
    212212  qQN(src_w.begin(), src_w.end(), result_w2.begin());
    213   // excluding missing value (result_w[0])
     213  // excluding missing value from comparison in suite.equal_range
     214  MWi=result_w2.begin();
     215  MWi+=5;
     216  result_w2.erase(MWi);
    214217  suite.add(suite.equal_range(utility::data_iterator(result_w.begin()),
    215218                              utility::data_iterator(result_w.end()),
    216                               ++utility::data_iterator(result_w2.begin())));
     219                              utility::data_iterator(result_w2.begin())));
    217220
    218221  suite.err() << "testing with weighted target" << std::endl;
Note: See TracChangeset for help on using the changeset viewer.