From 44cb41b8995b30c6b2754f3e1182cfdefc6c7b7b Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 19 Mar 2022 11:41:44 -0400 Subject: tests: Print format listing as TAP diagnostics --- diff --git a/tests/parse.sh b/tests/parse.sh index 08a8dea..1150f28 100755 --- a/tests/parse.sh +++ b/tests/parse.sh @@ -37,6 +37,13 @@ plan_ $((\ $(printf '%s\n' "${misc_fmts}" | wc -l) \ )) +IFS=' +' + +for fmt in $(printf '%s\n' "${fmts}"); do + diag_ "${fmt}" +done + run_test() { datetime="${1}" @@ -54,9 +61,6 @@ run_test() fi } -IFS=' -' - for time_fmt in ${time_fmts}; do run_test "${time_fmt}" for date_fmt in ${date_fmts}; do -- cgit v0.9.1