test harness: Rewrite the columnar pretty-printer without external tools.
This commit is contained in:
parent
90a92b2bb8
commit
ea7c165b59
@ -230,10 +230,7 @@ run_test_internal() {
|
|||||||
if (( difference > 0 )); then
|
if (( difference > 0 )); then
|
||||||
left_column+=( ${(r:2*difference::. :):-} )
|
left_column+=( ${(r:2*difference::. :):-} )
|
||||||
fi
|
fi
|
||||||
paste \
|
print -rC2 -- "${left_column[@]}" "${right_column[@]}" \
|
||||||
=(print -rC1 -- $left_column) \
|
|
||||||
=(print -rC1 -- $right_column) \
|
|
||||||
| if type column >/dev/null; then column -t -s $'\t'; else cat; fi \
|
|
||||||
| sed 's/^/# /'
|
| sed 's/^/# /'
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user