[RFC/PATCH 0/2] here-doc test bodies
- From
Jeff King <peff@peff.net>
- Date
- Apr 9, 2021, 22:26 UTC
- Message-ID
- <YHDUg6ZR5vu93kGm@coredump.intra.peff.net>
I've been wanting to do this for years, but after getting bitten by a misplaced quote the other day, I finally did. This series allows you to do:
test_expect_success <<\EOT
something 'with single quotes'
EOTThoughts?
The first patch is the implementation. The second one shows it off.
[1/2]: test-lib: allow test snippets as here-docs [2/2]: t1404: convert to here-doc test bodies
t/README | 8 + t/t1404-update-ref-errors.sh | 274 +++++++++++++++++------------------ t/test-lib-functions.sh | 30 +++- 3 files changed, 171 insertions(+), 141 deletions(-)
-Peff