26
edits
DaveLawrence (talk | contribs) |
(Recommend that jq sort keys before comparing phabricator email event data) |
||
| Line 333: | Line 333: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
$ diff output.txt expected.txt | $ diff <(jq -S . output.txt) <(jq -S . expected.txt) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
or on Windows: | or on Windows, if "jq" is installed: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
$ fc output.txt expected.txt | $ jq -S . output.txt > output-sorted.txt | ||
$ jq -S . expected.txt > expected-sorted.txt | |||
$ fc output-sorted.txt expected-sorted.txt | |||
</syntaxhighlight> | </syntaxhighlight> | ||
edits