COIN-OR::LEMON - Graph Library

Changeset 2242:16523135943d in lemon-0.x for test/matrix_maps_test.cc


Ignore:
Timestamp:
10/14/06 17:26:05 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2991
Message:

New random interface
Switching to the new interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/matrix_maps_test.cc

    r2039 r2242  
    6868    for (Graph::NodeIt it(graph); it != INVALID; ++it) {
    6969      for (Graph::NodeIt jt(graph); jt != INVALID; ++jt) {
    70         int val = urandom(100);
     70        int val = rnd[100];
    7171        matrix.set(it, jt, val);
    7272        check(matrix(it, jt) == val, "Wrong assign");
     
    109109    for (Graph::NodeIt it(graph); it != INVALID; ++it) {
    110110      for (Graph::NodeIt jt(graph); jt != INVALID; ++jt) {
    111         int val = urandom(100);
     111        int val = rnd[100];
    112112        matrix.set(it, jt, val);
    113113        check(matrix(it, jt) == val, "Wrong assign");
     
    155155    for (Graph::NodeIt it(graph1); it != INVALID; ++it) {
    156156      for (Graph::EdgeIt jt(graph2); jt != INVALID; ++jt) {
    157         int val = urandom(100);
     157        int val = rnd[100];
    158158        matrix.set(it, jt, val);
    159159        check(matrix(it, jt) == val, "Wrong assign");
     
    199199    for (Graph::NodeIt it(graph); it != INVALID; ++it) {
    200200      for (Graph::NodeIt jt(graph); jt != INVALID; ++jt) {
    201         int val = urandom(100);
     201        int val = rnd[100];
    202202        matrix.set(it, jt, val);
    203203        check(matrix(it, jt) == val, "Wrong assign");
Note: See TracChangeset for help on using the changeset viewer.