diff options
author | Lev Dragunov <l.dragunov@corp.mail.ru> | 2015-10-26 13:58:02 +0300 |
---|---|---|
committer | Lev Dragunov <l.dragunov@corp.mail.ru> | 2015-10-26 13:58:02 +0300 |
commit | b9349c6ece8459d4849d2715cf228cd046b41d67 (patch) | |
tree | 060ff023e634bae0c768262a1f3bc7b526182396 /routing/routing_tests/cross_routing_tests.cpp | |
parent | a6452b96c07b5e9a8c0a796d0b20fda5d4328765 (diff) |
Use absolute parametrs in the GetAdjacencyCost function.
Diffstat (limited to 'routing/routing_tests/cross_routing_tests.cpp')
-rw-r--r-- | routing/routing_tests/cross_routing_tests.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routing/routing_tests/cross_routing_tests.cpp b/routing/routing_tests/cross_routing_tests.cpp index d5f355eb82..1ac0774824 100644 --- a/routing/routing_tests/cross_routing_tests.cpp +++ b/routing/routing_tests/cross_routing_tests.cpp @@ -96,9 +96,9 @@ UNIT_TEST(TestAdjacencyMatrix) newContext.Load(reader); auto ins = newContext.GetIngoingIterators(); auto outs = newContext.GetOutgoingIterators(); - TEST_EQUAL(newContext.GetAdjacencyCost(ins.first, outs.first), 5, ()); - TEST_EQUAL(newContext.GetAdjacencyCost(ins.first + 1, outs.first), 9, ()); - TEST_EQUAL(newContext.GetAdjacencyCost(ins.first + 2, outs.first), + TEST_EQUAL(newContext.GetAdjacencyCost(*ins.first, *outs.first), 5, ()); + TEST_EQUAL(newContext.GetAdjacencyCost(*(ins.first + 1), *outs.first), 9, ()); + TEST_EQUAL(newContext.GetAdjacencyCost(*(ins.first + 2), *outs.first), routing::INVALID_CONTEXT_EDGE_WEIGHT, ("Default cost")); } |