We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36b9672 commit f57b1adCopy full SHA for f57b1ad
tests/scripts/ptc.sh
@@ -34,8 +34,8 @@ for header in ../library/**/*.hpp; do
34
for i in $(seq "$(wc --lines <"$header")" -5 1); do
35
hash=$(head --lines "$i" "$header" | sed '/^#include/d' | cpp -dD -P -fpreprocessed | ./../library/contest/hash.sh)
36
line_length=$(sed --quiet "${i}p" "$header" | wc --chars)
37
- padding_length=$((60 - 8 - $line_length))
38
- padding_length=$(( $padding_length > 0 ? $padding_length : 0 ))
+ padding_length=$((60 - 8 - line_length))
+ padding_length=$(( padding_length > 0 ? padding_length : 0 ))
39
padding=$(printf '%*s' "$padding_length")
40
sed --in-place "${i}s/$/$padding\/\/${hash}/" "$header"
41
done
0 commit comments