Skip to content

Conversation

@atsampson
Copy link

See dajobe/raptor#78.

The rdf_parser test was passing on some platforms, presumably because the turtle parser was just reading the same data again and then terminating - which would still cause it to pass the test as it read the same number of triples. Add an extra set of tests with just a single triple, which should catch this.

Also fix the heading for one of the tests, which was in the wrong place so it was only getting printed on failure.

The name of this test (which happened to be the one that was failing for
me!) was only being printed on failure.
I've just tracked down an issue in raptor where the turtle parser's
buffer wasn't being cleared. The test was passing on most platforms -
because the condition being checked for was still true even if the
parser read the same data again.

Add a test that reads a different input (just one triple) through the
same parser, in the hope of catching similar problems in the future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant