File: 01_simple.t

package info (click to toggle)
libgraph-moreutils-perl 0.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 152 kB
  • sloc: perl: 385; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 242 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/perl

use strict;
use warnings;

use Graph::MoreUtils qw( SSSR );
use Graph::Undirected;
use Test::More tests => 2;

my $g = Graph::Undirected->new;
$g->add_cycle( 'A'..'F' );

is scalar SSSR( $g ), 12;
is scalar SSSR( $g, 4 ), 0;