diff options
author | David Robillard <d@drobilla.net> | 2024-06-24 15:12:05 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-06-25 15:54:43 -0400 |
commit | 51cc405d288a078543523efd380ce3c7d11ac501 (patch) | |
tree | 48d3b3263e966cc46c0667fd40212304cb70cbde /test/test_reader_writer.c | |
parent | 2f51df8eed40bb808dce0ce1d5ba218a1b2b0071 (diff) | |
download | serd-51cc405d288a078543523efd380ce3c7d11ac501.tar.gz serd-51cc405d288a078543523efd380ce3c7d11ac501.tar.bz2 serd-51cc405d288a078543523efd380ce3c7d11ac501.zip |
Improve test suite coverage
Diffstat (limited to 'test/test_reader_writer.c')
-rw-r--r-- | test/test_reader_writer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_reader_writer.c b/test/test_reader_writer.c index cd7ca408..374ec4e1 100644 --- a/test/test_reader_writer.c +++ b/test/test_reader_writer.c @@ -41,6 +41,8 @@ static const char* const doc_string = " \"lang\"@en ;\n" " eg:p <http://example.com/o> .\n" "}\n" + "@prefix other: <http://example.org/other> .\n" + "@base <http://drobilla.net/> .\n" "eg:s\n" " <http://example.org/p> [\n" " eg:p 3.0 ,\n" @@ -399,7 +401,7 @@ test_write_errors(void) ErrorContext ctx = {0U, 0U}; const SerdStyle style = (SerdStyle)(SERD_STYLE_STRICT | SERD_STYLE_CURIED); - const size_t max_offsets[] = {0, 386, 1911, 2003, 386}; + const size_t max_offsets[] = {0, 462, 1911, 2003, 462}; // Test errors at different offsets to hit different code paths for (unsigned s = 1; s <= (unsigned)SERD_TRIG; ++s) { |