ubjson / universal-binary-json

Community workspace for the Universal Binary JSON Specification.
115 stars 12 forks source link

Add more positive / negative test cases #9

Open kxepal opened 11 years ago

kxepal commented 11 years ago

We need to have some set of test cases that covers not only positive UBJSON parser behavior, but also negative situations that shouldn't be parsed at all.

We could share idea of JSON test suite[1][2]for this task.

[1] http://json.org/JSON_checker/ [2] http://json.org/JSON_checker/test.zip

meisme commented 10 years ago

Yes, if UBJSON is ever to be adopted as common format it must be easy to verify that implementations work as expected. As it stands now we don't even have any test-files for draft 10 easily available.

ghost commented 10 years ago

@meisme you and @kxepal are exactly right, this detail is not lost on me, I just want the spec to stabilize before a big effort to provide tooling around it is done.

In my mind Draft 11 was going to become 1.0 final spec until #43 got filed - I am currently vetting that idea and asking for feedback and waiting to see what the community says.

If we can bottom out on #43 I think the 1.0 spec will be defined and we can move forward with formalization around it.