summaryrefslogtreecommitdiffstats
path: root/src/sord_test.c
AgeCommit message (Collapse)AuthorFilesLines
2017-12-16Update BTreeDavid Robillard1-5/+10
2017-04-14Fix missing NULL terminator in literal testDavid Robillard1-1/+1
2016-09-19Fix compilation as C++David Robillard1-29/+30
2016-09-18Update copyright datesDavid Robillard1-1/+1
2016-09-18Fix test suite memory leaksDavid Robillard1-0/+5
2016-09-18Fix erasing default graph iteratorsDavid Robillard1-2/+3
2016-07-11Improve test coverageDavid Robillard1-0/+15
2016-03-15Make sord_node_get_counted return byte countDavid Robillard1-7/+24
Also clarify formerly ambiguous documentation, and add sord_node_get_string_measured to get both byte and character counts. Technically, this breaks behaviour, but most (if not all) existing code that uses this function was actually expecting a byte count. This is unsurprising since a UTF-8 character count is almost always useless. This approach causes less problems in reality, since it fixes broken behaviour in the wild without requiring any changes in user code.
2015-10-08Improve test coverageDavid Robillard1-1/+2
git-svn-id: http://svn.drobilla.net/sord/trunk@338 3d64ff67-21c5-427c-a301-fe4f08042e5a
2015-10-04Improve test coverageDavid Robillard1-6/+50
git-svn-id: http://svn.drobilla.net/sord/trunk@335 3d64ff67-21c5-427c-a301-fe4f08042e5a
2015-10-03Improve test coverageDavid Robillard1-1/+90
git-svn-id: http://svn.drobilla.net/sord/trunk@331 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-09-24Add sord_erase() for erasing statements via an iterator.David Robillard1-6/+36
git-svn-id: http://svn.drobilla.net/sord/trunk@310 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-09-24Verify that removing actually succeeds.David Robillard1-0/+7
git-svn-id: http://svn.drobilla.net/sord/trunk@309 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-09-23Reduce memory usage and increase performance with a better data structure.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@307 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-08-08Update copyright dates.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@298 3d64ff67-21c5-427c-a301-fe4f08042e5a
2013-01-14Add sord_node_get() for easily getting single property values.David Robillard1-0/+16
git-svn-id: http://svn.drobilla.net/sord/trunk@280 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-08-09Fix warnings: -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes ↵David Robillard1-6/+6
-Wmissing-prototypes. git-svn-id: http://svn.drobilla.net/sord/trunk@244 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-03-30Add convenient sord_search(), sord_ask(), and sord_count().David Robillard1-9/+20
Add sord_validate tool for validating data against RDF/OWL schemas. git-svn-id: http://svn.drobilla.net/sord/trunk@211 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-03-18Make test blank actually a blank.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@207 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-03-09Add sord_new_relative_uri().David Robillard1-0/+18
git-svn-id: http://svn.drobilla.net/sord/trunk@204 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-03-03Add sord_iter_get_node().David Robillard1-4/+6
git-svn-id: http://svn.drobilla.net/sord/trunk@201 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-01-16Fix warnings.David Robillard1-4/+4
git-svn-id: http://svn.drobilla.net/sord/trunk@195 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-01-16Support compilation as C++ under MSVC++.David Robillard1-10/+10
git-svn-id: http://svn.drobilla.net/sord/trunk@194 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-01-14Lint.David Robillard1-15/+25
git-svn-id: http://svn.drobilla.net/sord/trunk@186 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-01-05Fix comparison of typed literals.David Robillard1-27/+149
Take advantage of interning in sord_node_equals(). Improve test coverage. git-svn-id: http://svn.drobilla.net/sord/trunk@185 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-09-29Tidy.David Robillard1-3/+6
git-svn-id: http://svn.drobilla.net/sord/trunk@166 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-09-28Tidy.David Robillard1-43/+33
git-svn-id: http://svn.drobilla.net/sord/trunk@164 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-06-09Add sord_contains (ticket #711).David Robillard1-0/+14
git-svn-id: http://svn.drobilla.net/sord/trunk@148 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-05-24Fix removing.David Robillard1-0/+20
git-svn-id: http://svn.drobilla.net/sord/trunk@125 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-05-13Tidy.David Robillard1-1/+2
git-svn-id: http://svn.drobilla.net/sord/trunk@114 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-05-12Expose sord_node_from_serd_node.David Robillard1-4/+3
Remove _counted node constructor methods. Use SerdNode directly for equivalent fields in SordNode. git-svn-id: http://svn.drobilla.net/sord/trunk@110 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-04-28Fix warnings.David Robillard1-12/+12
git-svn-id: http://svn.drobilla.net/sord/trunk@99 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-04-27Don't hide pointers behind typedefs.David Robillard1-19/+19
git-svn-id: http://svn.drobilla.net/sord/trunk@91 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-04-27Remove unused API.David Robillard1-30/+0
git-svn-id: http://svn.drobilla.net/sord/trunk@89 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-04-23Fix some memory leaks.David Robillard1-6/+9
git-svn-id: http://svn.drobilla.net/sord/trunk@83 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-04-22Fix license header (awk oops).David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@81 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-04-22Switch to ISC license (legally equivalent to MIT license but with less ↵David Robillard1-20/+11
obnoxious lawyer noise). git-svn-id: http://svn.drobilla.net/sord/trunk@77 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-04-16Update copyright headersDavid Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/sord/trunk@75 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-03-07Sane reference counting semantics.David Robillard1-13/+35
git-svn-id: http://svn.drobilla.net/sord/trunk@51 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-03-07Fix reference counting and memory leaks.David Robillard1-0/+5
git-svn-id: http://svn.drobilla.net/sord/trunk@50 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-03-07Fix literal comparison and memory leaks.David Robillard1-0/+8
git-svn-id: http://svn.drobilla.net/sord/trunk@47 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-25Update style and switch to 2-clause BSD license.David Robillard1-16/+24
git-svn-id: http://svn.drobilla.net/sord/trunk@41 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-16Sord => SordModel.David Robillard1-5/+5
git-svn-id: http://svn.drobilla.net/sord/trunk@35 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-16Add world object (to intern nodes and sanely support several models per ↵David Robillard1-40/+42
library instance). git-svn-id: http://svn.drobilla.net/sord/trunk@34 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-16Simpler and more typical node creation API.David Robillard1-16/+16
git-svn-id: http://svn.drobilla.net/sord/trunk@33 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-16Remove pointless SordID type.David Robillard1-18/+15
git-svn-id: http://svn.drobilla.net/sord/trunk@31 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-04Remove sord_set_option and sord_open, just pass options to sord_new instead.David Robillard1-14/+4
git-svn-id: http://svn.drobilla.net/sord/trunk@22 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-04SordTuple => SordQuad.David Robillard1-27/+27
git-svn-id: http://svn.drobilla.net/sord/trunk@21 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-04Use uint8_t for API char type for UTF-8 friendliness.David Robillard1-20/+22
Fix literal languages. git-svn-id: http://svn.drobilla.net/sord/trunk@20 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-01Terser iteration API.David Robillard1-7/+7
git-svn-id: http://svn.drobilla.net/sord/trunk@14 3d64ff67-21c5-427c-a301-fe4f08042e5a