t0003: use named parameters in attr_check()
authorDenton Liu <redacted>
Fri, 20 Dec 2019 18:15:50 +0000 (10:15 -0800)
committerJunio C Hamano <redacted>
Fri, 20 Dec 2019 19:30:44 +0000 (11:30 -0800)
commit3738439c7779acf2dafadbbc488bb222c94a2b12
treedc809bbf2d3085a7ca20b4669e6b483705f2d791
parent7717242014dc59f58db7e56c2b8f9fc79e04fa0b
t0003: use named parameters in attr_check()

We had named the parameters in attr_check() but $2 was being used
instead of $expect. Make all variable accesses in attr_check() use named
variables instead of numbered arguments for clarity.

While we're at it, add variable assignments to the &&-chain. These
aren't ever expected to fail but if a future developer ever adds some
code above the assignments and they could fail in some way, the intact
&&-chain will ensure that the failure is caught.

Signed-off-by: Denton Liu <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t0003-attributes.sh
git clone https://git.99rst.org/PROJECT