yaml / yaml-test-suite

Comprehensive, language independent Test Suite for YAML
MIT License
172 stars 58 forks source link

canonicalize tml files #21

Closed rogpeppe closed 6 years ago

rogpeppe commented 6 years ago

We put the sections in this canonical order:

and run all the in-json sections through jq.

We also run all the in-json sections through jq and standardise the field ordering (lexically by key).

There should be no semantic changes in this PR. The only manual intervention was to FRK4.tml, which has a comment in the in-json section. By my reading of the point_lines production in http://testml.org/specification/language/index.html (which I think is in effect here), it seems like the comment is literal (included in the JSON data), not a TML-level comment, so that would make it invalid JSON. I've left the comment in anyway for now, and manually applied jq to the actual JSON.

perlpunk commented 6 years ago

Thanks, applied!