summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/06-data.t6
-rw-r--r--t/07-attributes.t2
2 files changed, 4 insertions, 4 deletions
diff --git a/t/06-data.t b/t/06-data.t
index 5df0bb9..91532f9 100644
--- a/t/06-data.t
+++ b/t/06-data.t
@@ -5,9 +5,9 @@ use Test::More;
use Graph::GEXF;
my $graph = Graph::GEXF->new();
-$graph->add_node_attribute('url', 'string', 'http://');
-$graph->add_node_attribute('indegree', 'float');
-$graph->add_node_attribute('frog', 'boolean');
+$graph->add_node_attribute('url', 'string',);
+$graph->add_node_attribute('indegree', 'float', '0.0');
+$graph->add_node_attribute('frog', 'boolean', 1);
my $n1 = $graph->add_node(0);
$n1->label('Gephi');
diff --git a/t/07-attributes.t b/t/07-attributes.t
index c4d13dd..effb6da 100644
--- a/t/07-attributes.t
+++ b/t/07-attributes.t
@@ -5,7 +5,7 @@ use Test::More;
use Graph::GEXF;
my $graph = Graph::GEXF->new();
-ok $graph->add_node_attribute('foo','bar','baz');
+ok $graph->add_node_attribute('foo', 'bar', 'baz');
ok $graph->add_edge_attribute('baz', 'bar', 'foo');
print $graph->to_xml;