From f4b1e8d72d89383b75ea39febf05255215a49bb1 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Fri, 16 Jul 2010 14:14:14 +0200 Subject: reflect API change on tests --- t/02-graph.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 't/02-graph.t') diff --git a/t/02-graph.t b/t/02-graph.t index a81f889..f2ad146 100644 --- a/t/02-graph.t +++ b/t/02-graph.t @@ -10,9 +10,9 @@ ok my $graph = Graph::GEXF->new(), 'graph created'; $graph->add_node_attribute('url', 'anyURI'); $graph->add_node_attribute('lf', 'integer'); -is $graph->total_attributes, 2, 'got 2 attributes'; +is $graph->attributes_node_total, 2, 'got 2 attributes'; -ok my $attr = $graph->get_attribute('url'), 'fetch first attribute'; +ok my $attr = $graph->get_node_attribute('url'), 'fetch first attribute'; is $attr->{title}, 'url', 'first attribute is url'; done_testing; -- cgit v1.2.3