diff options
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; |
