repo: uritools action: commit revision: path_from: revision_from: 95efb4c7bfeb150f74f9b489fe23049f016c34a4: path_to: revision_to:
commit 95efb4c7bfeb150f74f9b489fe23049f016c34a4 Author: epochDate: Mon Aug 14 18:07:38 2023 -0500 add a space after the filename of the current test so it is easily selectable diff --git a/test.sh b/test.sh
--- a/test.sh
+++ b/test.sh
@@ -6,18 +6,18 @@ failed=0
for i in tests/*;do
uri="$(tail -n1 "${i}" | cut '-d ' -f2)"
if diff <(uricut <<< "${uri}") "${i}";then
- printf 'uricut\t%s[\x1b[32mGOOD\x1b[0m] %s\n' "$i" "$uri"
+ printf 'uricut\t%s [\x1b[32mGOOD\x1b[0m] %s\n' "$i" "$uri"
passed=$[$passed+1]
else
- printf 'uricut\t%s[\x1b[31mFAIL\x1b[0m] %s\n' "$i" "$uri"
+ printf 'uricut\t%s [\x1b[31mFAIL\x1b[0m] %s\n' "$i" "$uri"
failed=$[$failed+1]
fi
joined="$(grep -v '^whole_uri:' "${i}" | urijoin)"
if [ "${joined}" = "${uri}" ];then
- printf 'urijoin\t%s[\x1b[32mGOOD\x1b[0m] %s == %s\n' "$i" "$uri" "$joined"
+ printf 'urijoin\t%s [\x1b[32mGOOD\x1b[0m] %s == %s\n' "$i" "$uri" "$joined"
passed=$[$passed+1]
else
- printf 'urijoin\t%s[\x1b[31mFAIL\x1b[0m] %s != %s\n' "$i" "$uri" "$joined"
+ printf 'urijoin\t%s [\x1b[31mFAIL\x1b[0m] %s != %s\n' "$i" "$uri" "$joined"
failed=$[$failed+1]
fi
done
-----END OF PAGE-----