diff options
author | Patrick Steinhardt <ps@pks.im> | 2023-06-06 07:19:33 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-06-12 22:23:24 +0200 |
commit | b116c77307853a9fa8f74d1ad16bed98a7211207 (patch) | |
tree | 512fcce72a1e8635e652dedf278e3b079fcb88ef /oidtree.h | |
parent | t1006: don't strip timestamps from expected results (diff) | |
download | git-b116c77307853a9fa8f74d1ad16bed98a7211207.tar.xz git-b116c77307853a9fa8f74d1ad16bed98a7211207.zip |
t1006: modernize test style to use `test_cmp`
The tests for git-cat-file(1) are quite old and haven't ever been
updated since they were introduced. They thus tend to use old idioms
that have since grown outdated. Most importantly, many of the tests use
`test $A = $B` to compare expected and actual output. This has the
downside that it is impossible to tell what exactly is different between
both versions in case the test fails.
Refactor the tests to instead use `test_cmp`. While more verbose, it
both tends to be more readable and will result in a nice diff in case
states don't match.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'oidtree.h')
0 files changed, 0 insertions, 0 deletions