summaryrefslogtreecommitdiffstats
path: root/src/sord_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-16 03:06:29 +0000
committerDavid Robillard <d@drobilla.net>2011-02-16 03:06:29 +0000
commitffec133350bad76a1a87427b75edbded52b1d255 (patch)
treeee9af58b59f2fe77d4124dd04c64bbade824875a /src/sord_test.c
parent35feabf61e3a2f9c15cb21ee5ec047f3c9937765 (diff)
downloadsord-ffec133350bad76a1a87427b75edbded52b1d255.tar.gz
sord-ffec133350bad76a1a87427b75edbded52b1d255.tar.bz2
sord-ffec133350bad76a1a87427b75edbded52b1d255.zip
Sord => SordModel.
git-svn-id: http://svn.drobilla.net/sord/trunk@35 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src/sord_test.c')
-rw-r--r--src/sord_test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sord_test.c b/src/sord_test.c
index ae3280b..a6517f5 100644
--- a/src/sord_test.c
+++ b/src/sord_test.c
@@ -43,7 +43,7 @@ uri(SordWorld world, int num)
}
void
-generate(SordWorld world, Sord sord, size_t n_quads, size_t n_objects_per)
+generate(SordWorld world, SordModel sord, size_t n_quads, size_t n_objects_per)
{
fprintf(stderr, "Generating %zu (S P *) quads with %zu objects each\n",
n_quads, n_objects_per);
@@ -105,14 +105,14 @@ test_fail()
((t)[2] ? sord_node_get_string((t)[2]) : USTR("*"))
int
-test_read(SordWorld world, Sord sord, const size_t n_quads, const int n_objects_per)
+test_read(SordWorld world, SordModel sord, const size_t n_quads, const int n_objects_per)
{
int ret = EXIT_SUCCESS;
SordQuad id;
SordIter iter = sord_begin(sord);
- if (sord_iter_get_sord(iter) != sord) {
+ if (sord_iter_get_model(iter) != sord) {
fprintf(stderr, "Fail: Iterator has incorrect sord pointer\n");
return test_fail();
}
@@ -232,7 +232,7 @@ test_read(SordWorld world, Sord sord, const size_t n_quads, const int n_objects_
}
int
-test_write(Sord sord, const size_t n_quads, const int n_objects_per)
+test_write(SordModel sord, const size_t n_quads, const int n_objects_per)
{
int ret = EXIT_SUCCESS;
@@ -267,7 +267,7 @@ main(int argc, char** argv)
SordWorld world = sord_world_new();
// Create with minimal indexing
- Sord sord = sord_new(world, SORD_SPO, false);
+ SordModel sord = sord_new(world, SORD_SPO, false);
generate(world, sord, n_quads, n_objects_per);
if (test_read(world, sord, n_quads, n_objects_per)) {