Help for this page

Select Code to Download


  1. or download this
    $ cat graph.t
    
    ...
    for my $e (@edges) {
        ok($g->add_edge(@{$e}), sprintf("Add edge %-12s -> %s", @{$e}));
    }
    
  2. or download this
    $ prove -v graph.t
    graph.t .. 
    ...
    All tests successful.
    Files=1, Tests=7,  0 wallclock secs ( 0.02 usr  0.00 sys +  0.11 cusr 
    + 0.00 csys =  0.13 CPU)
    Result: PASS
    
  3. or download this
    ok(! $g->add_edge( 'Lord' => 'Tornado '),
        "I expect that I cannot add Lord -> Tornado edge");
    
  4. or download this
    $ prove -v graph.t
    graph.t .. 
    ...
      Non-zero exit status: 1
    Files=1, Tests=8,  0 wallclock secs ( 0.01 usr  0.01 sys +  0.11 cusr 
    + 0.00 csys =  0.13 CPU)
    Result: FAIL