summaryrefslogtreecommitdiff
path: root/t/02-graph.t
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-07-16 14:14:14 +0200
committerfranck cuny <franck@lumberjaph.net>2010-07-16 14:14:14 +0200
commitf4b1e8d72d89383b75ea39febf05255215a49bb1 (patch)
tree7f0de874d0efdab2daee9afb7549ee01dd9cccd9 /t/02-graph.t
parentadd attributes to edge (diff)
downloadgraph-gexf-f4b1e8d72d89383b75ea39febf05255215a49bb1.tar.gz
reflect API change on tests
Diffstat (limited to '')
-rw-r--r--t/02-graph.t4
1 files changed, 2 insertions, 2 deletions
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;