]>
Commit | Line | Data |
---|---|---|
34292bdd JS |
1 | #!/bin/sh |
2 | ||
3 | test_description='patience diff algorithm' | |
4 | ||
5 | . ./test-lib.sh | |
46c8f298 | 6 | . "$TEST_DIRECTORY"/lib-diff-alternative.sh |
34292bdd | 7 | |
044fb190 | 8 | test_expect_success '--ignore-space-at-eol with a single appended character' ' |
a5229cc9 JS |
9 | printf "a\nb\nc\n" >pre && |
10 | printf "a\nbX\nc\n" >post && | |
11 | test_must_fail git diff --no-index \ | |
12 | --patience --ignore-space-at-eol pre post >diff && | |
13 | grep "^+.*X" diff | |
14 | ' | |
15 | ||
46c8f298 | 16 | test_diff_frobnitz "patience" |
34292bdd | 17 | |
46c8f298 | 18 | test_diff_unique "patience" |
34292bdd JS |
19 | |
20 | test_done |