Changeset 1946


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

Addresses #535. Another fix for the poor implentation in changeset:1943, now the test actually test what was intended.

File:
1 edited

Legend:

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

    r1945 r1946  
    227227  std::vector<utility::DataWeight> result_w3(src_w.size());
    228228  qQNw(src_w.begin(), src_w.end(), result_w3.begin());
    229   suite.add(suite.equal_range(++utility::data_iterator(result_w3.begin()),
     229  // excluding missing value from comparison in suite.equal_range
     230  MWi=result_w3.begin();
     231  MWi+=5;
     232  result_w3.erase(MWi);
     233  suite.add(suite.equal_range(utility::data_iterator(result_w3.begin()),
    230234                              utility::data_iterator(result_w3.end()),
    231                               ++utility::data_iterator(result_w2.begin())));
     235                              utility::data_iterator(result_w2.begin())));
    232236 
    233237}
Note: See TracChangeset for help on using the changeset viewer.