Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for SPARQL results parsing. #39

Closed
wants to merge 8 commits into from

Conversation

tomjnixon
Copy link
Contributor

These commits add tests for the parse_x_bindings functions, and fix a few minor issues found along the way:

  • update nodes hash when parsing json and tsv.
  • support empty bindings in tsv results.

It was a bit tricky to wedge these into rspec; I'm open to suggestions. If nothing else this can be used to check the correctness of #36.

Thanks!

@gkellogg
Copy link
Member

Please check out the develop branch to make sure it's working properly for you.

@gkellogg gkellogg closed this Dec 19, 2013
@tomjnixon
Copy link
Contributor Author

That's great, thanks.

It works fine for me. There's a branch here that runs the tests in travis both with and without nokogiri. Results here:
https://travis-ci.org/tomjnixon/sparql-client/builds/15701083

It's probably not necesary for regular tests, but i wanted to prove to myself that it's correct.

@gkellogg
Copy link
Member

Thanks Tom, that's useful; I'll merge that in.

@tomjnixon
Copy link
Contributor Author

Thanks; i'd be happy to send a pull request if that's easier.

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.

2 participants