3 test_description
='ignore CR in CRLF sequence while computing similiarity'
5 TEST_PASSES_SANITIZE_LEAK
=true
8 test_expect_success setup
'
10 cat "$TEST_DIRECTORY"/t0022-crlf-rename.sh >sample &&
14 git commit -m Initial &&
16 append_cr <"$TEST_DIRECTORY"/t0022-crlf-rename.sh >elpmas &&
21 git commit -a -m Second
25 test_expect_success
'diff -M' '
27 git diff-tree -M -r --name-status HEAD^ HEAD >tmp &&
28 sed -e "s/R[0-9]*/RNUM/" tmp >actual &&
29 echo "RNUM sample elpmas" >expect &&
30 test_cmp expect actual