diff options
| author | franck cuny <franck@lumberjaph.net> | 2010-07-16 14:14:14 +0200 |
|---|---|---|
| committer | franck cuny <franck@lumberjaph.net> | 2010-07-16 14:14:14 +0200 |
| commit | f4b1e8d72d89383b75ea39febf05255215a49bb1 (patch) | |
| tree | 7f0de874d0efdab2daee9afb7549ee01dd9cccd9 /t/02-graph.t | |
| parent | add attributes to edge (diff) | |
| download | graph-gexf-f4b1e8d72d89383b75ea39febf05255215a49bb1.tar.gz | |
reflect API change on tests
Diffstat (limited to 't/02-graph.t')
| -rw-r--r-- | t/02-graph.t | 4 |
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; |
