diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/extra/prefix/README.md | 4 | ||||
-rw-r--r-- | test/extra/prefix/manifest.ttl | 20 | ||||
-rw-r--r-- | test/extra/prefix/remove-prefixes.nt | 4 | ||||
-rw-r--r-- | test/extra/prefix/remove-prefixes.ttl | 7 | ||||
-rw-r--r-- | test/meson.build | 17 | ||||
-rw-r--r-- | test/multifile/output.nq | 4 | ||||
-rw-r--r-- | test/test_overflow.c | 2 | ||||
-rw-r--r-- | test/test_reader_writer.c | 14 |
8 files changed, 3 insertions, 69 deletions
diff --git a/test/extra/prefix/README.md b/test/extra/prefix/README.md deleted file mode 100644 index 56a07244..00000000 --- a/test/extra/prefix/README.md +++ /dev/null @@ -1,4 +0,0 @@ -Prefix Test Suite -================= - -This small suite tests adding/chopping prefixes to/from blank node labels. diff --git a/test/extra/prefix/manifest.ttl b/test/extra/prefix/manifest.ttl deleted file mode 100644 index 12a0f9ca..00000000 --- a/test/extra/prefix/manifest.ttl +++ /dev/null @@ -1,20 +0,0 @@ -@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix rdft: <http://www.w3.org/ns/rdftest#> . -@prefix serd: <http://drobilla.net/ns/serd#> . - -<> - a mf:Manifest ; - rdfs:comment "Serd blank node prefixing test suite" ; - mf:entries ( - <#remove-prefixes> - ) . - -<#remove-prefixes> - a rdft:TestTurtleEval ; - mf:action <remove-prefixes.ttl> ; - mf:name "remove-prefixes" ; - mf:result <remove-prefixes.nt> . - -rdft:Test - rdfs:subClassOf mf:ManifestEntry . diff --git a/test/extra/prefix/remove-prefixes.nt b/test/extra/prefix/remove-prefixes.nt deleted file mode 100644 index 26ac46ee..00000000 --- a/test/extra/prefix/remove-prefixes.nt +++ /dev/null @@ -1,4 +0,0 @@ -_:s1 <http://example.org/p1> _:o1 . -_:s1 <http://example.org/p2> _:o3 . -_:s1 <http://example.org/p2> _:o4 . -_:b0 <http://example.org/p3> _:b1 . diff --git a/test/extra/prefix/remove-prefixes.ttl b/test/extra/prefix/remove-prefixes.ttl deleted file mode 100644 index f3002a59..00000000 --- a/test/extra/prefix/remove-prefixes.ttl +++ /dev/null @@ -1,7 +0,0 @@ -_:tests1 - <http://example.org/p1> _:testo1 ; - <http://example.org/p2> _:testo3 , - _:testo4 . - -_:testb0 - <http://example.org/p3> _:testb1 . diff --git a/test/meson.build b/test/meson.build index 2de2348f..d7dcfa05 100644 --- a/test/meson.build +++ b/test/meson.build @@ -35,7 +35,6 @@ ttl_metadata_file_paths = [ 'extra/lax/manifest.ttl', 'extra/pattern/manifest.ttl', 'extra/perfect/manifest.ttl', - 'extra/prefix/manifest.ttl', 'extra/pretty/manifest.ttl', 'extra/qualify/manifest.ttl', 'extra/root/manifest.ttl', @@ -189,12 +188,10 @@ simple_command_tests = { ['-b', '1024junk'], ['-b', '9223372036854775807'], ['-b'], - ['-c'], ['-k', '-1'], ['-k', '1024junk'], ['-k', '9223372036854775807'], ['-k'], - ['-p'], ['-qi'], ['-r'], ['-s', '<foo> a <Bar> .'], @@ -500,20 +497,6 @@ test_suites = { files('extra/perfect/manifest.ttl'), ns_serdtest + 'perfect/', ], - 'prefix_add': [ - '--reverse', - files('extra/prefix/manifest.ttl'), - ns_serdtest + 'prefix/', - '--', - ['-I', 'generated'], - ['-p', 'test'], - ], - 'prefix_remove': [ - files('extra/prefix/manifest.ttl'), - ns_serdtest + 'prefix/', - '--', - ['-c', 'test'], - ], 'pretty': [ files('extra/pretty/manifest.ttl'), ns_serdtest + 'pretty/', diff --git a/test/multifile/output.nq b/test/multifile/output.nq index dd35dc4d..cf3ea93e 100644 --- a/test/multifile/output.nq +++ b/test/multifile/output.nq @@ -1,3 +1,3 @@ -_:f0b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/Type> . _:f1b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/Type> . -_:f1b2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/OtherType> <http://example.org/graph> . +_:f2b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/Type> . +_:f2b2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/OtherType> <http://example.org/graph> . diff --git a/test/test_overflow.c b/test/test_overflow.c index 8b47cd2b..62a77022 100644 --- a/test/test_overflow.c +++ b/test/test_overflow.c @@ -9,7 +9,7 @@ #include <stdio.h> static const size_t min_stack_size = 4U * sizeof(size_t) + 238U; -static const size_t max_stack_size = 1024U; +static const size_t max_stack_size = 2048U; static SerdStatus test_size(SerdWorld* const world, diff --git a/test/test_reader_writer.c b/test/test_reader_writer.c index aea0976d..9a4c988f 100644 --- a/test/test_reader_writer.c +++ b/test/test_reader_writer.c @@ -151,9 +151,6 @@ test_writer(const char* const path) assert(writer); - serd_writer_chop_blank_prefix(writer, "tmp"); - serd_writer_chop_blank_prefix(writer, NULL); - SerdNode* lit = serd_node_new(NULL, serd_a_string("hello")); const SerdSink* const iface = serd_writer_sink(writer); @@ -273,17 +270,6 @@ test_reader(const char* path) assert(serd_reader_read_chunk(reader) == SERD_BAD_CALL); assert(serd_reader_read_document(reader) == SERD_BAD_CALL); - serd_reader_add_blank_prefix(reader, "tmp"); - -#if defined(__GNUC__) -# pragma GCC diagnostic push -# pragma GCC diagnostic ignored "-Wnonnull" -#endif - serd_reader_add_blank_prefix(reader, NULL); -#if defined(__GNUC__) -# pragma GCC diagnostic pop -#endif - SerdInputStream in = serd_open_input_file(path); assert(!serd_reader_start(reader, &in, NULL, 4096)); assert(!serd_reader_read_document(reader)); |