COIN-OR::LEMON - Graph Library

Ticket #429: 429-6bca1306a64c.patch

File 429-6bca1306a64c.patch, 951 bytes (added by Peter Kovacs, 8 years ago)
  • test/max_cardinality_search_test.cc

    # HG changeset patch
    # User Peter Kovacs <kpeter@inf.elte.hu>
    # Date 1319402534 -7200
    # Node ID 6bca1306a64c5b63b7035f89ea3d7ec71f5fd675
    # Parent  98961d3556a70c3a9967e35774e4af9357aa7a1a
    Fix windows-specific compilation error
    
    diff --git a/test/max_cardinality_search_test.cc b/test/max_cardinality_search_test.cc
    a b  
    117117   maxcard.addSource(s);
    118118   maxcard.start(x);
    119119
    120    check(maxcard.processed(s) and !maxcard.processed(x) and
     120   check(maxcard.processed(s) && !maxcard.processed(x) &&
    121121         !maxcard.processed(y), "Wrong processed()!");
    122122
    123123   a=maxcard.nextNode();
     
    127127   check(maxcard.processed(a), "Wrong processNextNode()!");
    128128
    129129   maxcard.start();
    130    check(maxcard.cardinality(x)==2 and maxcard.cardinality(y)>=4,
     130   check(maxcard.cardinality(x)==2 && maxcard.cardinality(y)>=4,
    131131         "Wrong cardinalities!");
    132132 }
    133133