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
Portable test data set #51
Comments
There is none. But my recommendation would be to take a look at the What language are you looking at and do you have any implementation yet? On Tue, Mar 4, 2014 at 9:48 PM, Tokuhiro Matsuno
|
When I was implementing tests for my json5 parser, I took this approach:
You can do the same thing, just compare your output with the existing json5 parsers. PS: is there a portable test data set for a classic JSON? |
This looks like a good approach. On Wed, Mar 5, 2014 at 7:55 AM, Alex Kocharin notifications@github.comwrote:
|
I just created one here: https://github.com/rlidwka/jju/blob/master/test/portable-json5-tests.yaml About a hundred tests, should cover pretty much anything about literals notation in ES5 spec. |
Nice. I had a brief look and found a couple of inconsistencies:
On Thu, Mar 27, 2014 at 3:03 PM, Alex Kocharin notifications@github.comwrote:
|
oops... you're right :)
Yeah, initially I wanted to write "this is json5, this is corresponding json", but I got this exact issue. Then I thought "hey, I'm using yaml anyway, so why do I need json at all"? So tests are written using YAML. It supports infinity using If someone converts it all to json, NaN's would be lost of course, so it would be a special case. Maybe do a |
I want to port JSON5 to another programming language.
Is there a portable test data set?
The text was updated successfully, but these errors were encountered: