aboutsummaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2019-12-19Remove 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.
2019-12-19Shorten node constructor namesDavid Robillard1-76/+85
2019-12-19Make statement sink take a statement rather than nodesDavid Robillard1-19/+12
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.
2019-12-19Clean up reader error handlingDavid Robillard1-5/+0
2019-12-19Use a fixed-size reader stackDavid Robillard1-3/+3
This improves performance, and makes the reader more suitable for embedded or network-facing applications, at the cost of requiring the user to specify a maximum stack size.
2019-12-19Set datatypes on integer, decimal, and base64 nodesDavid Robillard1-7/+19
2019-12-19Add serd_world_get_blank()David Robillard1-0/+18
2019-12-19Clean up node construction APIDavid Robillard1-83/+120
2019-12-19Clean up includes and improve source file separationDavid Robillard1-1/+2
2019-12-19Hide fopen wrapper and use reader interface consistentlyDavid Robillard1-13/+11
2019-12-19Add blank node APIDavid Robillard1-0/+16
2019-12-19Make serd_node_new_literal take datatype as a nodeDavid Robillard1-3/+9
2019-12-19Add SerdWorld for shared library stateDavid Robillard1-5/+17
2019-12-19Add SerdSink interface and hide individual function implementationsDavid Robillard1-24/+20
2019-12-19Bring read/write interface closer to C standardDavid Robillard1-2/+2
2019-12-19Merge datatype and/or language into nodeDavid Robillard1-32/+59
This moves closer to the sord API, and is more convenient in most cases.
2019-12-19Simplify reader interfaceDavid Robillard1-2/+12
2019-12-19Remove serd_uri_to_path()David Robillard1-29/+0
2019-12-19Make nodes opaqueDavid Robillard1-160/+192
2019-12-19Add support for parsing NaN, INF, and -INFDavid Robillard1-0/+10
2019-12-19Make serd_strtod API const-correctDavid Robillard1-2/+3
This is an API breakage, but a minor one (particularly since NULL is allowed) that avoids the flaw in the C API.
2019-12-18Rename SerdChunk to SerdStringViewDavid Robillard1-1/+2
2019-12-18Use char* for strings in public APIDavid Robillard1-91/+86
The constant casting just makes user code a mess, for no benefit.
2019-12-18Remove useless character countingDavid Robillard1-19/+9
2019-12-14Use SerdBuffer for mutable buffersDavid Robillard1-4/+4
This avoids const violations from abusing SerdChunk as a mutable buffer for string sinks.
2019-12-14Fix function prototypeDavid Robillard1-1/+1
2019-12-14Split up unit testsDavid Robillard1-39/+100
2019-12-08Fix reading from a null-delimited socketDavid Robillard1-0/+61
2019-10-27Fix EOF handling while reading in bulk or from stringsDavid Robillard5-0/+34
2019-10-27Fix example prefixes in test casesDavid Robillard10-10/+10
2019-10-27Add test case for base URI with no pathDavid Robillard3-0/+11
2019-10-27Fix lax handling of string errors and add separate lax test suiteDavid Robillard7-10/+41
2019-04-19Fix test coverageDavid Robillard1-28/+20
These returns values are legacy cruft from when test success was handled manually instead of using assert.
2019-03-30Fix parsing "a" abbreviation without padding whitespaceDavid Robillard3-0/+19
2019-03-17Fix bug parsing TriG graphs with several squashed trailing dotsDavid Robillard3-0/+16
2019-01-05Fix unused parameter warningsDavid Robillard1-0/+10
2019-01-05Remove manifest testDavid Robillard2-277/+0
2018-12-26Remove test utilities and simply use assert for unit testsDavid Robillard2-294/+105
2018-11-11Add tests for misspelled prefix and base directivesDavid Robillard3-0/+14
2018-11-11Remove some unnecessary test filesDavid Robillard6-593/+0
2018-11-11Add test for writing URIs that can not be shortenedDavid Robillard4-11/+28
2018-10-03Fix TriG test suite to not require clashing blank node IDsDavid Robillard4-3/+4
2018-07-30Fix resolving some URIs against base URIs with no trailing slashDavid Robillard4-24/+41
2018-07-22Remove long literal version of form feed testDavid Robillard2-4/+0
This causes problems with Windows checkouts that aren't configured properly, but the short version suffices to test the relevant code.
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