/fitzjson-test

Tests for the fitzJSON format

Primary LanguageJavaScriptMIT LicenseMIT

fitzJSON logo

fitzjson-tests

Tests for fitzJSON parsers.

ECMA-404 compliance

ecma404.test.js verifies compliance with JSON (ECMA-404/RFC 8259). It uses tests from the JSON Parsing Test Suite by Nicolas Seriot, available under JSONTestSuite (see also the excellent article Parsing JSON is a Minefield 💣 by the same author, for which the test suite is an appendix).

Note: fitzJSON is a superset of JSON, thus is not aiming for strict compliance with ECMA-404, but superset-compliance. Meaning, some tests that were expected to fail for JSON may pass for fitzJSON (because the syntax is more permissive), but all tests that were expected to pass for JSON must also pass for fitzJSON. This is how success is measured here.

Running

node ecma404.test.js > results.txt