summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2011-06-13 16:17:12 +0200
committerfranck cuny <franck@lumberjaph.net>2011-06-13 16:17:12 +0200
commita69fc91c3d349286e312198d9e8cac85c89e45cd (patch)
tree77a48125e60eda88230f2aa5d842ce7572501402
parentattributes are chained (diff)
downloadgraph-gexf-a69fc91c3d349286e312198d9e8cac85c89e45cd.tar.gz
add tests and remove warn
Signed-off-by: franck cuny <franck@lumberjaph.net>
-rw-r--r--t/08-viz.t5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/08-viz.t b/t/08-viz.t
index 40be120..33555ee 100644
--- a/t/08-viz.t
+++ b/t/08-viz.t
@@ -18,9 +18,10 @@ _test($n, 1, qw/r g b/);
 dies_ok {$n->r(256)} "can't set color to value > 255";
 dies_ok {$n->r(-1)} "can't set color to value < 0";
 
-my $xml = $graph->to_xml;
+my $n2 = $graph->add_node();
+$n->link_to($n2->id);
 
-warn $xml;
+my $xml = $graph->to_xml;
 
 sub _test{
     my ($n, $value, @attr) = @_;