aboutsummaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2012-07-05Add error callback to reader and writer for custom error reporting.David Robillard1-1/+1
Add -q option to serdi to suppress all non-data output, e.g. errors. Resolves #815. git-svn-id: http://svn.drobilla.net/serd/trunk@354 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-29Don't break relative URIs with up-references when parsing a document with no ↵David Robillard2-0/+2
base URI. git-svn-id: http://svn.drobilla.net/serd/trunk@342 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-27Delete trailing whitespace.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@340 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-18Add serd_reader_set_default_graph() for reading a file as a named graph.David Robillard1-17/+30
git-svn-id: http://svn.drobilla.net/serd/trunk@338 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-10Add serd_writer_set_root_uri(), root parameter toDavid Robillard4-0/+16
serd_uri_serialise_relative(), and -r option to serdi, to enable writing URIs with up references (../) within a parent namespace. Resolve dot segments in serd_uri_resolve() instead of at write time. git-svn-id: http://svn.drobilla.net/serd/trunk@336 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-08Add escape parameter to serd_node_new_file_uri().David Robillard1-6/+6
git-svn-id: http://svn.drobilla.net/serd/trunk@333 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-08Make serd_node_from_string tolerate NULL.David Robillard1-0/+5
git-svn-id: http://svn.drobilla.net/serd/trunk@332 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-08serd_node_new_uri_from_path => serd_node_new_file_uri.David Robillard1-6/+6
git-svn-id: http://svn.drobilla.net/serd/trunk@331 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-08Add serd_writer_get_env().David Robillard1-2/+98
Add serd_node_new_uri_from_path() and serd_file_uri_parse() and implement proper URI to/from path hex escaping, etc. Add serd_uri_serialise_relative() for making URIs relative to a base where possible (by chopping a common prefix and adding dot segments). Make URIs serialised by the writer properly escape characters. git-svn-id: http://svn.drobilla.net/serd/trunk@330 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-03Add serd_chunk_sink for easy writing to a string.David Robillard1-0/+21
git-svn-id: http://svn.drobilla.net/serd/trunk@329 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-29Handle files and strings that start with a UTF-8 Byte Order Mark (fix #814).David Robillard2-0/+4
git-svn-id: http://svn.drobilla.net/serd/trunk@326 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-28Fix serialisation of decimals like 10.0, 20.0, etc.David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@325 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Add test case and update ChangeLog.David Robillard1-0/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@321 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-20Use iterative algorithm for collection parsing.David Robillard2-1/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@306 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-20Implement pretty-printing for collections.David Robillard9-1/+111
git-svn-id: http://svn.drobilla.net/serd/trunk@305 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-09Add missing files.David Robillard2-0/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@304 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-05Add Windows path test cases (100% coverage for uri.c).David Robillard1-0/+8
git-svn-id: http://svn.drobilla.net/serd/trunk@303 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-01Use failure() function for all test failures.David Robillard1-108/+70
git-svn-id: http://svn.drobilla.net/serd/trunk@300 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-01-16Support compilation as C++ under MSVC++David Robillard1-5/+6
git-svn-id: http://svn.drobilla.net/serd/trunk@291 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-01-16Update copyright dates.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@285 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-30Add serd_node_new_blob and serd_base64_decode for handling arbitrary binaryDavid Robillard1-1/+34
data via base64 encoding. git-svn-id: http://svn.drobilla.net/serd/trunk@280 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-27Warn on invalid unicode character and replace (fix #796).David Robillard4-2/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@279 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-26Escape non-printable ASCII characters in ASCII output (fix #795).David Robillard2-0/+8
git-svn-id: http://svn.drobilla.net/serd/trunk@278 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-25Near 100% branch coverage.David Robillard37-24/+291
git-svn-id: http://svn.drobilla.net/serd/trunk@277 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-25100% test coverage.David Robillard14-2/+193
git-svn-id: http://svn.drobilla.net/serd/trunk@276 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-24Cover serd_node_from_string.David Robillard1-0/+11
git-svn-id: http://svn.drobilla.net/serd/trunk@275 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-24Add tests for malformed UTF-8 input.David Robillard3-0/+5
git-svn-id: http://svn.drobilla.net/serd/trunk@274 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-24Allow digit as first character of prefixed name suffix (match latest Turtle ↵David Robillard2-0/+6
spec). Improve env.c test coverage. Add test case for ticket #734. git-svn-id: http://svn.drobilla.net/serd/trunk@271 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-24Move serd_test.c to tests/ so it doesn't show up in test coverage output.David Robillard1-0/+181
git-svn-id: http://svn.drobilla.net/serd/trunk@270 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-24Improve URI resolution to cover most of the abnormal cases from RFC3986.David Robillard2-1/+37
Improve test coverage of uri.c. git-svn-id: http://svn.drobilla.net/serd/trunk@266 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-23Escape ASCII control characters in output (e.g. fix problems with stringDavid Robillard2-0/+2
literals that start with a backspace). git-svn-id: http://svn.drobilla.net/serd/trunk@263 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-12Remove branch for EOF detection in eat_byte.David Robillard4-0/+12
git-svn-id: http://svn.drobilla.net/serd/trunk@251 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-06-19Fix abbreviation of repeated predicates with blank objects, and abbreviation ↵David Robillard2-0/+8
memory errors (hopefully fix ticket #710). Add example test from ticket #710 (as of this revision, this graph, tests/test-blank-cont.ttl, correctly serialises with serdi -i turtle -o turtle, though the indentation is a bit off...). git-svn-id: http://svn.drobilla.net/serd/trunk@205 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-18Add test to ensure blank node IDs don't clash with generated IDs.David Robillard2-0/+6
Add handle destructor parameter to serd_reader_new. Add serd_reader_get_handle. Rename serd_reader_set_blank_prefix to serd_reader_add_blank_prefix. Rename serd_reader_read_file to serd_reader_read_file_handle. Add new serd_reader_read_file that takes a path/URI parameter. Add serdi -i option to select input syntax. Add serdi -p and -c options to add/chop a prefix to/from blank IDs. Add optional base_uri parameter to serd_env_new. Add serd_writer_chop_blank_prefix. Bump version to 0.3.0. git-svn-id: http://svn.drobilla.net/serd/trunk@183 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-04-23Fix parsing of language tags with several hyphens.David Robillard2-1/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@146 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-02-04Fix parsing double with signs in their exponents (e.g. 1.234e+56).David Robillard2-1/+6
git-svn-id: http://svn.drobilla.net/serd/trunk@95 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-25Fix UTF-8 test file.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@66 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-25Fix handling of EOF in collections.David Robillard1-0/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@65 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-25Fix URI resolution of absolute URIs.David Robillard2-0/+10
Better URI test coverage. git-svn-id: http://svn.drobilla.net/serd/trunk@64 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-25Fix crash when parsing malformed numbers.David Robillard3-0/+3
Add bad test cases (reach 95% test coverage). git-svn-id: http://svn.drobilla.net/serd/trunk@59 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-25Remove unused character escape code.David Robillard1-1/+0
git-svn-id: http://svn.drobilla.net/serd/trunk@58 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-25Add URI test cases.David Robillard2-0/+11
git-svn-id: http://svn.drobilla.net/serd/trunk@57 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-25Fix parsing of numbers that begin with a `.'.David Robillard2-0/+15
Add number parsing test case. git-svn-id: http://svn.drobilla.net/serd/trunk@56 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-24Remove support for 5 and 6 byte UTF-8 characters.David Robillard1-3/+2
The UTF-8 spec supports this, but I can't even find real characters to test it with. There don't seem to be actual Unicode code points this high yet. If it can't be tested, it can't be useful. Gone. git-svn-id: http://svn.drobilla.net/serd/trunk@55 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-23Gracefully handle failure to emit statement.David Robillard2-1/+7
Add test cases for 5 and 6-byte UTF-* characters and undefined namespaces. git-svn-id: http://svn.drobilla.net/serd/trunk@48 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-23Test language tags with hyphens.David Robillard2-0/+2
Remove unused reader->err. git-svn-id: http://svn.drobilla.net/serd/trunk@42 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-22Emit triples in the correct order for streaming abbreviation.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@38 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-22Add output for language test (oops).David Robillard1-0/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@33 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-22Add language tag test.David Robillard1-0/+4
git-svn-id: http://svn.drobilla.net/serd/trunk@31 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-21More extensive test coverage.David Robillard1-0/+215
git-svn-id: http://svn.drobilla.net/serd/trunk@19 490d8e77-9747-427b-9fa3-0b8f29cee8a0