Changeset 4077 for branches/kendall-score/test/ranking.cc
- Timestamp:
- Aug 26, 2021, 6:07:09 AM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/kendall-score/test/ranking.cc
r4072 r4077 283 283 284 284 285 void test_insert_hint(test::Suite& suite) 286 { 287 suite.out() << YAT_TEST_PROLOGUE; 288 289 utility::Ranking<double> ranking; 290 ranking.insert(1); 291 ranking.insert(2); 292 ranking.insert(3); 293 294 auto hint = ranking.lower_bound(2); 295 ranking.insert(hint, 2); 296 ranking.insert(hint, 1); 297 ranking.insert(hint, 0); 298 ranking.insert(hint, 3); 299 ranking.insert(hint, 4); 300 hint = ranking.lower_bound(4); 301 ranking.insert(hint, 5); 302 303 hint = ranking.lower_bound(4); 304 ranking.insert(hint, 4.1); 305 } 306 307 285 308 int main(int argc, char* argv[]) 286 309 { … … 291 314 test_copy(suite); 292 315 test_erase(suite); 316 test_insert_hint(suite); 293 317 } 294 318 catch (std::exception& e) {
Note: See TracChangeset
for help on using the changeset viewer.