summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-01-03 22:05:27 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-01-03 22:05:27 +0100
commit2c3450a380342ed1f63314e2d0e732415902484f (patch)
tree7cc8778f6f2a71a5d4745b6fabace79810c83169 /src/tests
parent1cdad817aeac33568efebc5656908373330f7b34 (diff)
downloadeina_graph-2c3450a380342ed1f63314e2d0e732415902484f.zip
eina_graph-2c3450a380342ed1f63314e2d0e732415902484f.tar.gz
add macros CAST_V() and CAST_D() to support Eina_List(data)<->vertex number conversion
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/eina_graph_suite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/eina_graph_suite.c b/src/tests/eina_graph_suite.c
index dea46e9..c187159 100644
--- a/src/tests/eina_graph_suite.c
+++ b/src/tests/eina_graph_suite.c
@@ -50,7 +50,7 @@ START_TEST (test_eina_graph_simple_dfs)
i = 0;
EINA_LIST_FOREACH(path, l, data)
{
- ck_assert(vsr[i] == (unsigned int) data);
+ ck_assert(vsr[i] == CAST_D(data));
i++;
}
eina_graph_dfs_free(dfs);
@@ -67,7 +67,7 @@ START_TEST (test_eina_graph_simple_dfs)
i = 0;
EINA_LIST_FOREACH(path, l, data)
{
- ck_assert(vss[i] == (unsigned int) data);
+ ck_assert(vss[i] == CAST_D(data));
i++;
}
eina_graph_dfs_free(dfs);