COIN-OR::LEMON - Graph Library

Changeset 210:81cfc04531e8 in lemon-1.2 for test/dijkstra_test.cc


Ignore:
Timestamp:
07/13/08 21:09:47 (11 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Children:
211:542dd614cbb4, 212:1ae84dea7d09, 214:60eecd3fe37a, 216:6d7bfcf5b48e
Phase:
public
Message:

Remove long lines (from all but one file)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/dijkstra_test.cc

    r209 r210  
    111111    Node u=G.source(e);
    112112    Node v=G.target(e);
    113     check( !dijkstra_test.reached(u) || (dijkstra_test.dist(v) - dijkstra_test.dist(u) <= length[e]),
    114            "dist(target)-dist(source)-arc_length= " << dijkstra_test.dist(v) - dijkstra_test.dist(u) - length[e]);
     113    check( !dijkstra_test.reached(u) ||
     114           (dijkstra_test.dist(v) - dijkstra_test.dist(u) <= length[e]),
     115           "dist(target)-dist(source)-arc_length= " <<
     116           dijkstra_test.dist(v) - dijkstra_test.dist(u) - length[e]);
    115117  }
    116118
     
    122124      check(u==dijkstra_test.predNode(v),"Wrong tree.");
    123125      check(dijkstra_test.dist(v) - dijkstra_test.dist(u) == length[e],
    124             "Wrong distance! Difference: " << std::abs(dijkstra_test.dist(v) - dijkstra_test.dist(u) - length[e]));
     126            "Wrong distance! Difference: " <<
     127            std::abs(dijkstra_test.dist(v)-dijkstra_test.dist(u)-length[e]));
    125128    }
    126129  }
Note: See TracChangeset for help on using the changeset viewer.