aboutsummaryrefslogtreecommitdiffstats
path: root/tests/serd_test.c
AgeCommit message (Collapse)AuthorFilesLines
2019-01-07WIP: Fix warningsserd1-warningsDavid Robillard1-7/+21
2019-01-05Add serd_new_boolean()David Robillard1-0/+13
2018-12-31WIP: Add validationDavid Robillard1-1/+1
2018-12-31Add Env to SinkDavid Robillard1-2/+2
This isn't technically necessary for any sink, but is a pattern common to every sink implementation in serd, so having it here reduces boilerplate and parameters in user code.
2018-12-31Remove serd_env_foreach()David Robillard1-2/+4
2018-12-31Simplify reader test sinkDavid Robillard1-13/+8
2018-12-31Improve node test coverageDavid Robillard1-0/+8
2018-12-31Ensure serd_new_resolved_uri returns an absolute URI or NULLDavid Robillard1-1/+3
2018-12-31Add serd_env_copy() and serd_env_equals()David Robillard1-0/+16
2018-12-31Separate ByteSink from WriterDavid Robillard1-3/+11
2018-12-31Remove Remove serd_reader_set_default_graph()David Robillard1-9/+2
2018-12-31Add rooted URI resolution testDavid Robillard1-1/+3
2018-12-31Separate style enum from style flags typesDavid Robillard1-2/+2
2018-12-31Make SerdSink opaqueDavid Robillard1-6/+9
2018-12-31Simplify SerdEnv APIDavid Robillard1-19/+25
2018-12-31Remove escape parameter from serd_new_file_uriDavid Robillard1-9/+6
Since characters are escaped because they are not valid characters in a URI, any use of this function without escaping is problematic at best.
2018-12-31Shorten node constructor namesDavid Robillard1-50/+55
2018-12-31Make statement sink take a statement rather than nodesDavid Robillard1-20/+13
This makes the interface more extensible, towards associating more information with statements. The serd_sink_write_nodes wrapper remains so that user code does not need to allocate in order to write statement.
2018-12-31Use fixed size stackDavid Robillard1-2/+2
2018-12-30Set datatypes on integer, decimal, and base64 nodesDavid Robillard1-5/+17
2018-12-30Add serd_world_get_blank()David Robillard1-0/+21
2018-12-30Clean up node construction APIDavid Robillard1-85/+86
2018-12-30Clean up includes and improve source file separationDavid Robillard1-1/+2
2018-12-30Hide fopen wrapper and use reader interface consistentlyDavid Robillard1-13/+11
2018-12-30Add blank node APIDavid Robillard1-0/+10
2018-12-30Make serd_node_new_literal take datatype as a nodeDavid Robillard1-3/+9
2018-12-30Add SerdWorld for shared library stateDavid Robillard1-4/+12
2018-12-30Add SerdSink interface and hide individual function implementationsDavid Robillard1-18/+14
2018-12-30Bring read/write interface closer to C standardDavid Robillard1-1/+1
2018-12-30Merge datatype and/or language into nodeDavid Robillard1-32/+57
This moves closer to the sord API, and is more convenient in most cases.
2018-12-30Remove serd_uri_to_path()David Robillard1-26/+0
2018-12-30Make nodes opaqueDavid Robillard1-144/+170
2018-12-30Make serd_strtod API const-correctDavid Robillard1-2/+4
This is an API breakage, but a minor one (particularly since NULL is allowed) that avoids the flaw in the C API.
2018-12-30Rename SerdChunk to SerdSliceDavid Robillard1-1/+1
2018-12-30Use char* for strings in public APIDavid Robillard1-88/+83
The constant casting just makes user code a mess, for no benefit.
2018-12-30Remove useless character countingDavid Robillard1-19/+9
2018-12-30Use SerdBuffer for mutable buffersDavid Robillard1-4/+4
This avoids const violations from abusing SerdChunk as a mutable buffer for string sinks.
2018-12-30Fix unused parameter warningsDavid Robillard1-0/+10
2018-12-26Remove test utilities and simply use assert for unit testsDavid Robillard1-252/+105
2018-07-22Fix memory leak in test suiteDavid Robillard1-0/+1
2018-07-22Add serd_free for freeing memory allocated by serdDavid Robillard1-5/+5
2018-07-14Fix length of base64 encoded nodesDavid Robillard1-0/+3
2018-07-12Fix making relative URIs that are shorter than, but under, the rootDavid Robillard1-0/+9
2018-06-10Test serd_strlen() with NULL flagsDavid Robillard1-0/+4
2018-06-10Fix relative URI serialisationDavid Robillard1-0/+12
2018-01-04Open files in binary mode to preserve line endings on WindowsDavid Robillard1-1/+1
2017-12-26Report source file and line on test failuresDavid Robillard1-98/+89
2017-07-10Gracefully handle applications that write corrupt UTF-8David Robillard1-4/+11
2017-07-10Reduce test code lengthDavid Robillard1-17/+8
2017-07-09Add serd_node_from_substring()David Robillard1-0/+21
This allows creating nodes in-place from substrings of other strings to allow zero-copy serialization from existing delimited buffers.