diff options
Diffstat (limited to 't/08-viz.t')
-rw-r--r-- | t/08-viz.t | 5 |
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) = @_; |