aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
9 daysSimplify lax EOF reading testsHEADmainDavid Robillard2-5/+4
I don't think the "ignore" feature of the testing script is actually necessary here, and it's risky because it can hide more issues than necessary. Instead, use the "lax" feature, which is used to ignore warnings when lax testing in general.
9 daysRemove unused prefixes in test manifestsDavid Robillard6-6/+0
9 daysWrite a blank line between statements and base directivesDavid Robillard3-0/+32
9 daysUse more descriptive names in relative URI testDavid Robillard2-12/+12
9 daysPrint expected string comparison failures in testsDavid Robillard7-32/+64
This makes life a little easier when working on things, and makes it easier/possible to know what went wrong from the test output alone (for example if a test fails on CI).
9 daysStrengthen header clang-tidy configurationDavid Robillard1-1/+2
2025-08-18Fix indentation of named objects after anonymous objectsDavid Robillard1-6/+6
Some indentation cases with anonymous objects are pretty subjective, but this one seems pretty clear: named or empty objects after a comma should be comma-indented regardless of whether they follow an anonymous object or not.
2025-08-18Add comprehensive test for comma pretty-printingDavid Robillard2-0/+133
This covers the various cases of named, anonymous, and empty objects following another. The following commits will make some improvements here.
2025-07-31Fix indentation when ending anonymous nodes with many objectsDavid Robillard4-2/+34
2025-06-30Improve test coverageDavid Robillard1-0/+17
2025-06-25Fix handling of bad predicates in anonymous blank nodesDavid Robillard2-0/+7
2025-04-11Write a blank line between statements and Turtle/TriG directivesDavid Robillard2-1/+8
2025-04-10Add test for repeated directivesDavid Robillard2-0/+17
2025-03-24Add test case with only a UTF-8 byte order markDavid Robillard3-0/+7
2025-03-24Always specify encoding to subprocess run functionsDavid Robillard4-13/+25
2025-03-24Remove unnecessary condition and improve error message test coverageDavid Robillard12-6/+61
Not all of these cases are grammatically interesting, but the invalid characters are significant for error reporting (for example, error messages shouldn't contain raw control characters).
2025-03-24Improve coverage of blank node label charactersDavid Robillard4-7/+7
2025-03-20Remove unused temporary file from writer testDavid Robillard1-7/+1
2025-03-16Drop graphs when writing Turtle outputDavid Robillard1-1/+1
2025-03-16Strengthen exhaustive write error testDavid Robillard1-29/+45
Factor out the check, then also check that writing with enough space succeeds. This makes the test more future-proof since it will fail if the maximum sizes aren't updated (meaning errors near the end of the document aren't covered). Strengthen the check itself by including the status of serd_writer_finish(), and bump the Turtle and TriG sizes by the three corresponding trailing bytes.
2025-03-16Clean up writer testsDavid Robillard1-25/+24
2025-03-16Check that test values are non-null before useDavid Robillard6-32/+30
2025-03-16Avoid implicit double promotionDavid Robillard1-2/+2
2025-03-16Avoid "static inline" outside headersDavid Robillard1-1/+1
2025-03-16Disable meson implicit include directories anti-featureDavid Robillard2-0/+2
2025-03-16Fix reading prefix names that start with "true." or "false."David Robillard3-0/+14
2025-03-16Fix reading numbers with no space before the final dotDavid Robillard11-0/+60
2025-03-16Refuse to write incoherent statementsDavid Robillard2-14/+73
2025-02-25Isolate standalone writer testsDavid Robillard2-42/+58
Move these to test_writer so that test_reader_writer is focused on the file-based case where the writer output is later read.
2025-02-23Fix doc comment syntaxDavid Robillard1-1/+1
2025-01-30Fix handling of some invalid EOF cases in lax modeDavid Robillard2-3/+15
The return status of these tests unfortunately isn't consistent, so instead of testing for an exact exit status, instead check that the return status doesn't seem to be an abort() or other signal code (which are negative on Linux, while serdi itself never exits with a negative status).
2025-01-30Separate EOF tests from catch-all "bad" test suiteDavid Robillard40-216/+234
2025-01-19Fix building lint tests when serdi is unavailableDavid Robillard1-8/+10
2025-01-10Use cppcheck working directoryDavid Robillard2-128/+132
This allows for better analysis, and adds a cache to improve checking times, especially on repeated runs.
2024-12-11Always assert the return value of fopen() in testsDavid Robillard2-2/+6
2024-12-11Ensure success of fclose() for writable files in testsDavid Robillard3-8/+10
2024-12-11Avoid assignments in assert statementsDavid Robillard1-5/+9
The ways these tests are written fundamentally requires assertions to always run, but some tools like to warn about it anyway, so avoid obvious cases.
2024-11-23Use angle brackets for library includesDavid Robillard9-9/+9
2024-10-06Clean up lint test definitionsDavid Robillard1-22/+20
2024-10-06Check all sources in clang-format testDavid Robillard1-6/+12
2024-10-06Relocate lint test definitionsDavid Robillard1-135/+135
Towards reusing source lists for checks across all the code (not just the library sources).
2024-09-28Add clang-format lint testDavid Robillard1-0/+11
2024-09-28Add cppcheck lint testDavid Robillard1-0/+21
2024-09-27Make more pointer variables constDavid Robillard1-2/+3
2024-09-27Make function parameters const wherever possibleDavid Robillard5-14/+19
The early history of this code didn't tend to make parameters const, but the "const density" is high enough now that I often find myself wondering if something is mutable for some reason, or just old and sloppier. So, eliminate this confusion by making (hopefully) all function parameters const if possible.
2024-09-27Clean up and update clang-format configurationDavid Robillard1-2/+1
Fix "SERD_CONST_FINC" typo, add the other function attributes, and sort all fields.
2024-09-21Remove pointless and inconsistent printing from unit testsDavid Robillard5-10/+0
2024-09-21Factor out test runner script argument and output parsingDavid Robillard4-46/+41
2024-09-01Use a consistent naming scheme for test helper functionsDavid Robillard3-101/+76
2024-08-03Fix reading chunks from files without trailing newlinesDavid Robillard1-7/+10