Test: JSON Roundtrip
- Dominant language
- Haskell
- Stars
- 279
- Forks
- 51
- Avg merge
- 17h 42m
- Merged PRs (30d)
- 1
Description
It would be cool to have some quickcheck tests that:
1. Generate some behaviours
2. Write those behaviours to JSON
3. Parse the JSON into a behaviour
4. Assert equality of the parse behaviour to the original
To do this we would need to implement `FromJSON` instances in `RefinedAST`, which adds some complexity, but it probably required anyway if we want to allow external tools to programatically generate act.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading the RefinedAST definitions and the existing JSON parsing or serialization code. Add the FromJSON instances needed for behaviours, then create QuickCheck properties that generate behaviours, round-trip them through JSON, and assert equality with the originals.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell, json
- Domain
- compilers, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100