Skip to content

Commit

Permalink
#124 test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Oct 23, 2023
1 parent 1a68470 commit ed41836
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/filters/test-050-delete-long-lines.sh
Expand Up @@ -35,7 +35,7 @@ list=${temp}/temp/filter-lists/files-with-long-lines.txt
rm -f "${list}"
msg=$("${LOCAL}/filters/050-delete-long-lines.sh" "${temp}" "${temp}/temp")
echo "${msg}"
echo "${msg}" | grep "No files out of 1 had lines longer than 1024 characters"
echo "${msg}" | grep "No files out of 1 had lines longer "
test -e "${java}"
test -e "${list}"
test "$(wc -l < "${list}" | xargs)" = 0
Expand All @@ -49,7 +49,7 @@ echo "👍🏻 A Java file with short lines wasn't deleted"
rm -f "${list}"
msg=$("${LOCAL}/filters/050-delete-long-lines.sh" "${temp}" "${temp}/temp")
echo "${msg}"
echo "${msg}" | grep "1 files out of 2 with at least one line longer than 1024 characters, which most probably is a symptom of an auto-generated code, were deleted"
echo "${msg}" | grep "1 files out of 2 with at least one line longer "
test ! -e "${java}"
test -e "${list}"
test "$(wc -l < "${list}" | xargs)" = 1
Expand Down

0 comments on commit ed41836

Please sign in to comment.