- From: Gregg Kellogg <gregg@kellogg-assoc.com>
- Date: Tue, 24 May 2011 18:57:45 -0400
- To: Linked JSON <public-linked-json@w3.org>
- Message-ID: <3C494FE3-EFF1-47A1-8DC6-D5A02A2AAE0B@kellogg-assoc.com>
I've ported the RDFa test suite [1] repo for the JSON-LD test-suite [2], and added a number of tests that I've used for my parser [3]. I made some blind changes to the Python and JavaScript bits, but it must be validated and hosted, provisionally at http://json-ld.org/test-suite/. There is plenty of room for negative test cases and more corner-cases. The repo is owned by the json-ld organization, and either Manu or I can add anyone else that would like full access. Or the clone/pull workflow can also be used, but please work on a separate branch to make merging easier. These are the tests run from my Ruby/RSpec environment: JSON::LD::Reader test suite that are required test 0001: Plain literal with URIs test 0002: Plain literal with CURIE from default context test 0003: Default subject is BNode test 0004: Literal with language tag test 0005: Extended character set literal test 0006: Typed literal test 0007: Tests 'a' generates rdf:type and object is implicit IRI test 0008: Test prefix defined in @context test 0009: Test using default prefix test 0010: Test object processing defines object test 0011: Test object processing defines object with implicit BNode test 0012: Multiple Objects for a Single Property test 0016: Test @base test 0017: Test @vocab test 0018: Test @base and @vocab together test 0019: Test type coercion to anyURI test 0020: Test type coercion to typed literal test 0022: Test coercion of double value test 0023: Test coercion of integer value test 0024: Test coercion of boolean value that are optional test 0013: Creation of an empty list test 0014: Creation of a list with single element test 0015: Creation of a list with multiple elements that are buggy test 0021: Test coercion of decimal value (PENDING: buggy test) Gregg [1] http://rdfa.digitalbazaar.com/test-suite/ [2] https://github.com/json-ld/json-ld-test-suite [3] https://github.com/gkellogg/json-ld
Received on Tuesday, 24 May 2011 22:58:24 UTC