aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
36 hoursSplit out simple reader unit testsHEADmasterDavid Robillard3-341/+441
Some of the simpler tests here only test the reader directly, while others are higher level tests that test both the writer and reader together. Split the simple reader-only tests into a separate file so things can be cleaned up and simplified for each kind of test.
2 daysFactor out URI prefix in some testsDavid Robillard2-25/+28
3 daysImprove test suite coverageDavid Robillard15-20/+198
3 daysFix overly permissive parsing of syntax names on the command lineDavid Robillard1-2/+3
4 daysWrite blank lines between graphs and statements in TriGDavid Robillard1-3/+13
5 daysGracefully handle failure to terminate written anonymous nodesDavid Robillard1-0/+30
This case shouldn't be reachable when driven directly from a reader, but can be reached by invalid use of the writer in an application.
5 daysFix writer cleanup testDavid Robillard1-8/+18
Because nodes are shallow, this wasn't actually writing a stack of nested objects. Fix the blank node ping-pong algorithm so that it does.
5 daysSimplify pylint test definitionDavid Robillard1-4/+3
5 daysCheck that header has zero code complexityDavid Robillard1-1/+4
5 daysRemove redundant test manifest entryDavid Robillard1-1/+0
6 daysStrengthen clang-tidy configurationDavid Robillard1-1/+5
2024-06-09Add missing entries to "good" test manifestDavid Robillard1-6/+18
2024-06-09Treat out of range unicode characters as errorsDavid Robillard5-7/+8
2024-06-09Add test cases for special characters in local namesDavid Robillard6-1/+59
2024-06-07Add test cases for lax TriG parsingDavid Robillard4-0/+38
2024-06-07Add test case for bad graph URIs in NQuadsDavid Robillard2-2/+2
2024-06-04Suppress new warnings in clang-tidy 17David Robillard1-1/+2
2024-03-29Add NTriples test cases for bad blank nodes and trailing garbageDavid Robillard3-0/+14
2024-03-29Fix lax NQuads parsingDavid Robillard14-25/+98
2024-03-29Support reading lone lists in lax modeDavid Robillard3-0/+10
This allows parsing documents like "(42) ."
2024-03-08Add tests with as many rules as possible in a single documentDavid Robillard7-0/+115
2024-03-08Add more exhaustive NTriples and NQuads test casesDavid Robillard51-0/+394
2024-03-08Fix parsing NQuads lines with no space before the final dotDavid Robillard3-0/+22
2024-01-20Fix writing empty list objects within blank nodesDavid Robillard1-0/+74
2024-01-09Avoid regressions in clang nullability checksDavid Robillard2-4/+8
Clang 15 (and still as of 16) lost the ability to understand null checks in conditionals, which is supposed to suppress these warnings. For now, work around some, and suppress others. The suppression boilerplate here is noisy and ugly, and hopefully temporary. It should be removed once the issue is fixed in clang. See https://github.com/llvm/llvm-project/issues/63018
2023-10-06Tolerate reduce floating point precision on Apple SiliconDavid Robillard1-2/+2
This is... strange, and slightly worrying, although it's already known that this conversion code isn't exact in all cases. The next major version will fix that (and I've confirmed that these issues aren't present there), but that's a major change so, for now, just reduce the very large number in the test case slightly so that it passes on these chips as well.
2023-09-23Avoid use of deprecated meson string formatting with filesDavid Robillard1-10/+29
Meson annoyingly doesn't provide access to the path of file objects (but it should). It was possible to do that by formatting a string with a file argument, but now this triggers a loud warning that claims it has always been broken and will be deprecated. So, avoid this by juggling things around and maintaining unchecked path strings instead, and hope that they're all passed to files() at some point so they can't get stale.
2023-09-22Clean up meson formattingDavid Robillard1-35/+73
Formatted automatically with muon, with some manual changes to make things format more nicely.
2023-05-03Make serd_reader_read_chunk() work with NQuadsDavid Robillard1-7/+101
2023-05-03Remove test output file after executionDavid Robillard1-0/+1
2023-04-30Suppress cross-compilation warnings in MacOS buildsDavid Robillard1-0/+5
2023-04-30Add long "help" and "version" options to serdiDavid Robillard1-0/+2
Although serdi still "officially" has a BSD-style interface, meson uses --version to find the version of executables. So, support that, and also add --help, since users will often try that for unknown commands.
2023-04-16Gracefully handle errors when writing textDavid Robillard3-1/+164
2023-04-06Add test for different comment termination casesDavid Robillard3-0/+13
2023-04-06Improve pretty-printing of lists and inline subjectsDavid Robillard13-10/+87
2023-04-06Remove support for writing Turtle named inline nodes extensionDavid Robillard2-18/+0
2023-04-06Make URI writing stricter by defaultDavid Robillard2-1/+39
2023-04-06Gracefully handle boolean subject and predicate errorsDavid Robillard6-2/+17
2023-04-06Check formatting of project Turtle filesDavid Robillard1-0/+11
2023-04-06Use portable names for all test targetsDavid Robillard1-8/+8
2023-04-06Simplify stdout capturing codeDavid Robillard1-4/+2
This is slightly less excruciatingly slow on Windows, sometimes, maybe.
2023-04-06Add pylint testDavid Robillard1-1/+25
2023-04-06Fix flake8 warnings and add testDavid Robillard2-1/+7
2023-04-06Simplify command-line option test namesDavid Robillard1-2/+2
2023-04-06Simplify naming of W3C test directoriesDavid Robillard1025-8/+9
This matches the names used in <https://github.com/w3c/rdf-tests.git>.
2023-04-06Update TriG test suiteDavid Robillard4-18/+34
This suite can't be exactly copied because it has modifications to support exact streaming tests, but this commit incorporates some upstream changes manually.
2023-04-06Update Turtle test suiteDavid Robillard19-21/+123
This suite can't be exactly copied because it has modifications to support exact streaming tests, but this commit incorporates some upstream changes manually.
2023-04-06Update NQuads test suiteDavid Robillard7-13/+29
2023-04-06Update NTriples test suiteDavid Robillard3-2/+18
2023-04-06Use more consistent meson formattingDavid Robillard1-2/+2