Test: JSON Roundtrip
d-xo opened this issue · comments
dxo commented
It would be cool to have some quickcheck tests that:
- Generate some behaviours
- Write those behaviours to JSON
- Parse the JSON into a behaviour
- 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.