Changeset 1775 for trunk/test/normalization_test.cc
- Timestamp:
- Feb 5, 2009, 7:56:55 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/normalization_test.cc
r1774 r1775 147 147 cn(m, result); 148 148 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..."; 150 150 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"; 152 155 153 156 // Enough iteration will make all columns to have the same values as … … 200 203 suite.xadd(suite.equal_range(result.begin(), result.end(), 201 204 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()))); 202 213 } 203 214
Note: See TracChangeset
for help on using the changeset viewer.