X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft0021-conversion.sh;h=8fc39d77cec6168dae930beef785597dace24aa3;hb=5bdd8d4a3062ac8f29ec511fecb85049f6ff3ecc;hp=a839f4e0744cd9344a3d71a48fe2224a99750729;hpb=071a8877662974f588dfc0b1ac7df2764b7e0337;p=git.git diff --git a/t/t0021-conversion.sh b/t/t0021-conversion.sh index a839f4e07..8fc39d77c 100755 --- a/t/t0021-conversion.sh +++ b/t/t0021-conversion.sh @@ -5,7 +5,9 @@ test_description='blob conversion via gitattributes' . ./test-lib.sh cat <<\EOF >rot13.sh -tr '[a-zA-Z]' '[n-za-mN-ZA-M]' +tr \ + 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' \ + 'nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM' EOF chmod +x rot13.sh @@ -42,7 +44,12 @@ test_expect_success check ' git diff --raw --exit-code :test :test.i && id=$(git rev-parse --verify :test) && embedded=$(sed -ne "$script" test.i) && - test "z$id" = "z$embedded" + test "z$id" = "z$embedded" && + + git cat-file blob :test.t > test.r && + + ./rot13.sh < test.o > test.t && + cmp test.r test.t ' # If an expanded ident ever gets into the repository, we want to make sure that