summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-01-10 11:02:14 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-01-10 11:02:14 +0100
commitfb3483672193c2fc360d3c6e450dc051541556e5 (patch)
treee800e5621fb4bb18f162146796d565570bd00432 /src/tests
parent5e8e882c7092feaaf4a56506dbda611ed7755d28 (diff)
downloadeina_graph-fb3483672193c2fc360d3c6e450dc051541556e5.zip
eina_graph-fb3483672193c2fc360d3c6e450dc051541556e5.tar.gz
add eina_graph_dot_write()
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/eina_graph_suite.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tests/eina_graph_suite.c b/src/tests/eina_graph_suite.c
index 138d852..bb4cdf1 100644
--- a/src/tests/eina_graph_suite.c
+++ b/src/tests/eina_graph_suite.c
@@ -120,6 +120,8 @@ END_TEST
START_TEST (test_eina_graph_simple)
{
+ FILE *outf;
+
ck_assert(eina_graph_init() == 1);
ck_assert(eina_graph_init() == 2);
@@ -153,6 +155,10 @@ START_TEST (test_eina_graph_simple)
ck_assert(eina_graph_degree_avg(g) < 2.154);
ck_assert(eina_graph_self_loops(g) == 1);
+ outf = fopen("/tmp/eina_graph.dot", "w");
+ eina_graph_dot_write(g, outf);
+ fclose(outf);
+
eina_graph_free(g);
ck_assert(eina_graph_shutdown() == 1);