There is the occasional parsing bug that manifests itself. Also, our parser is not written for super high performance so we may decide to replace it some day. For that, we need tests that JSON documents & values are parsed correctly into the corresponding Json elements.
The unit tests should focus especially on corner cases with lots of ill-formed JSON documents. Well-formed document with no syntax errors are important as well, but new bugs are likely to be discovered with how the parser deals with bad syntax.
Also, it would be nice, once we have error test cases to improve the error reporting of the parser itself..
There is the occasional parsing bug that manifests itself. Also, our parser is not written for super high performance so we may decide to replace it some day. For that, we need tests that JSON documents & values are parsed correctly into the corresponding Json elements.
The unit tests should focus especially on corner cases with lots of ill-formed JSON documents. Well-formed document with no syntax errors are important as well, but new bugs are likely to be discovered with how the parser deals with bad syntax.
Also, it would be nice, once we have error test cases to improve the error reporting of the parser itself..