Changeset 1775


Ignore:
Timestamp:
Feb 5, 2009, 7:56:55 PM (12 years ago)
Author:
Peter
Message:

refs #478 - added another test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/normalization_test.cc

    r1774 r1775  
    147147  cn(m, result);
    148148
    149   suite.err() << "test that result can be stored in the source matrix\n";
     149  suite.err() << "test that result can be stored in the source matrix...";
    150150  cn(m,m);
    151   suite.add(result==m);
     151  if (suite.add(result==m))
     152    suite.err() << " ok.\n";
     153  else
     154    suite.err() << " failed.\n";
    152155
    153156  // Enough iteration will make all columns to have the same values as
     
    200203  suite.xadd(suite.equal_range(result.begin(), result.end(),
    201204                              utility::data_iterator(result_w.begin())));
     205
     206  // adding a missing value
     207  src_w.insert(src_w.begin(), DataWeight(5.2, 0.0));
     208  result_w.resize(src_w.size());
     209  qQN(src_w.begin(), src_w.end(), result_w.begin());
     210  // excluding missing value (result_w[0])
     211  suite.xadd(suite.equal_range(result.begin(), result.end(),
     212                              ++utility::data_iterator(result_w.begin())));
    202213}
    203214
Note: See TracChangeset for help on using the changeset viewer.