summaryrefslogtreecommitdiff
path: root/t/07-attributes.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/07-attributes.t
parentadd attributes to edge (diff)
downloadgraph-gexf-f4b1e8d72d89383b75ea39febf05255215a49bb1.tar.gz
reflect API change on tests
Diffstat (limited to 't/07-attributes.t')
-rw-r--r--t/07-attributes.t13
1 files changed, 13 insertions, 0 deletions
diff --git a/t/07-attributes.t b/t/07-attributes.t
new file mode 100644
index 0000000..c4d13dd
--- /dev/null
+++ b/t/07-attributes.t
@@ -0,0 +1,13 @@
+use strict;
+use warnings;
+use Test::More;
+
+use Graph::GEXF;
+
+my $graph = Graph::GEXF->new();
+ok $graph->add_node_attribute('foo','bar','baz');
+ok $graph->add_edge_attribute('baz', 'bar', 'foo');
+
+print $graph->to_xml;
+
+done_testing;