Changeset 694:71939d63ae77 in lemon-main for test
- Timestamp:
- 07/21/09 22:43:31 (15 years ago)
- Branch:
- default
- Children:
- 695:8dae88c5943e, 721:99124ea4f048
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/maps_test.cc
r693 r694 23 23 #include <lemon/concepts/maps.h> 24 24 #include <lemon/maps.h> 25 #include <lemon/smart_graph.h> 25 26 26 27 #include "test_tools.h" … … 356 357 357 358 typedef IterableBoolMap<SmartGraph, SmartGraph::Node> Ibm; 358 checkConcept<Re adWriteMap<Item, int>, Ibm>();359 checkConcept<ReferenceMap<Item, bool, bool&, const bool&>, Ibm>(); 359 360 360 361 const int num = 10; … … 437 438 typedef IterableIntMap<SmartGraph, SmartGraph::Node> Iim; 438 439 439 checkConcept<Re adWriteMap<Item, int>, Iim>();440 checkConcept<ReferenceMap<Item, int, int&, const int&>, Iim>(); 440 441 441 442 const int num = 10; … … 468 469 int n = 0; 469 470 for (Iim::ItemIt it(map1, 0); it != INVALID; ++it) { 470 check(map1[static_cast<Item>(it)] == 0, "Wrong Value");471 check(map1[static_cast<Item>(it)] == 0, "Wrong value"); 471 472 ++n; 472 473 } … … 474 475 475 476 for (Iim::ItemIt it(map1, 1); it != INVALID; ++it) { 476 check(map1[static_cast<Item>(it)] == 1, "Wrong Value");477 check(map1[static_cast<Item>(it)] == 1, "Wrong value"); 477 478 ++n; 478 479 } … … 525 526 int n = 0; 526 527 for (Ivm::ItemIt it(map1, 0.0); it != INVALID; ++it) { 527 check(map1[static_cast<Item>(it)] == 0.0, "Wrong Value");528 check(map1[static_cast<Item>(it)] == 0.0, "Wrong value"); 528 529 ++n; 529 530 } … … 531 532 532 533 for (Ivm::ItemIt it(map1, 1.0); it != INVALID; ++it) { 533 check(map1[static_cast<Item>(it)] == 1.0, "Wrong Value");534 check(map1[static_cast<Item>(it)] == 1.0, "Wrong value"); 534 535 ++n; 535 536 }
Note: See TracChangeset
for help on using the changeset viewer.