t6300: fix issues related to %(contents:size)
authorAlban Gruin <alban.gruin@gmail.com>
Fri, 31 Jul 2020 18:26:07 +0000 (20:26 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 31 Jul 2020 20:26:19 +0000 (13:26 -0700)
commit3db796c1c0d59e1857e6f16af2bb0be020b6fa7a
tree8b784f2db0f47c52d80efeb14783c1d2cd4b8b4c
parentb6839fda6809b1de8d528837dfc99d0837f77c9d
t6300: fix issues related to %(contents:size)

b6839fda68 (ref-filter: add support for %(contents:size), 2020-07-16)
added a new format for ref-filter, and added a function to generate
tests for this new feature in t6300.  Unfortunately, it tries to run
`test_expect_sucess' instead of `test_expect_success', and writes
$expect to `expected', but tries to read `expect'.  Those two issues
were probably unnoticed because the script only printed errors, but did
not crash.  This fixes these issues.

Signed-off-by: Alban Gruin <alban.gruin@gmail.com>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6300-for-each-ref.sh