https://github.com/acrazing/json-test-suite
A JSON marshal/unmarshal unit test cases suite.
https://github.com/acrazing/json-test-suite
json test unit-test
Last synced: 4 months ago
JSON representation
A JSON marshal/unmarshal unit test cases suite.
- Host: GitHub
- URL: https://github.com/acrazing/json-test-suite
- Owner: acrazing
- Created: 2017-07-25T12:16:45.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-09-06T20:43:41.000Z (9 months ago)
- Last Synced: 2024-12-30T06:46:44.932Z (5 months ago)
- Topics: json, test, unit-test
- Language: TypeScript
- Homepage:
- Size: 156 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JSON test suite
This is a repo to hold some useful test cases for JSON parser/serializer.
## Usage
At first, clone this repo to your local:
```bash
git clone https://github.com/acrazing/json-test-suite
````git submodule` or `git subtree` is recommended
And then, all the files end up with `.json` is the test case except `package.json` is the
holder for `yarn` and the `all_*.json` is the all of the cases. each one of the test case
contains two file `NAME_inline.json` and `NAME_loose.json`, first one means no whitespace
between tokens, and second one is more readable.## PR is welcome
All the `*.json` is generated by [generate.ts](./generate.ts), you can modify it in any shape.
## TODO
- [ ] error cases
## LICENSE
None, you can do anything with this.