diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/serd_test.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c index f7e7cbef..d5b8d33b 100644 --- a/tests/serd_test.c +++ b/tests/serd_test.c @@ -61,8 +61,7 @@ count_prefixes(void* handle, const SerdNode* name, const SerdNode* uri) } typedef struct { - int n_statements; - const SerdNode* graph; + int n_statements; } ReaderTest; static SerdStatus @@ -75,7 +74,6 @@ test_sink(void* handle, ReaderTest* rt = (ReaderTest*)handle; ++rt->n_statements; - rt->graph = serd_statement_get_graph(statement); return SERD_SUCCESS; } @@ -728,18 +726,15 @@ test_reader(const char* path) { SerdWorld* world = serd_world_new(); - ReaderTest rt = { 0, NULL }; + ReaderTest rt = { 0 }; SerdSink* sink = serd_sink_new(&rt); serd_sink_set_statement_func(sink, test_sink); SerdReader* reader = serd_reader_new(world, SERD_TURTLE, sink, 4096); assert(reader); - SerdNode* g = serd_new_uri("http://example.org/"); - serd_reader_set_default_graph(reader, g); serd_reader_add_blank_prefix(reader, "tmp"); serd_reader_add_blank_prefix(reader, NULL); - serd_node_free(g); assert(serd_reader_start_file(reader, "http://notafile", false)); assert(serd_reader_start_file(reader, "file://invalid", false)); @@ -748,8 +743,6 @@ test_reader(const char* path) assert(!serd_reader_start_file(reader, path, true)); assert(!serd_reader_read_document(reader)); assert(rt.n_statements == 13); - assert(rt.graph && serd_node_get_string(rt.graph) && - !strcmp(serd_node_get_string(rt.graph), "http://example.org/")); serd_reader_finish(reader); serd_reader_free(reader); |