Merge branch 'ds/reprepare-alternates-when-repreparing-packfiles'
[alt-git.git] / t / t4033-diff-patience.sh
blobf7be7f5ef0139b8384746518c676d80cb88dd5dd
1 #!/bin/sh
3 test_description='patience diff algorithm'
5 TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7 . "$TEST_DIRECTORY"/lib-diff-alternative.sh
9 test_expect_success '--ignore-space-at-eol with a single appended character' '
10 printf "a\nb\nc\n" >pre &&
11 printf "a\nbX\nc\n" >post &&
12 test_must_fail git diff --no-index \
13 --patience --ignore-space-at-eol pre post >diff &&
14 grep "^+.*X" diff
17 test_diff_frobnitz "patience"
19 test_diff_unique "patience"
21 test_done