From a69fc91c3d349286e312198d9e8cac85c89e45cd Mon Sep 17 00:00:00 2001 From: franck cuny Date: Mon, 13 Jun 2011 16:17:12 +0200 Subject: add tests and remove warn Signed-off-by: franck cuny --- t/08-viz.t | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 't') 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) = @_; -- cgit v1.2.3