]>
Commit | Line | Data |
---|---|---|
34292bdd JS |
1 | #!/bin/sh |
2 | ||
3 | test_description='patience diff algorithm' | |
4 | ||
16d4bd4f | 5 | TEST_PASSES_SANITIZE_LEAK=true |
34292bdd | 6 | . ./test-lib.sh |
46c8f298 | 7 | . "$TEST_DIRECTORY"/lib-diff-alternative.sh |
34292bdd | 8 | |
044fb190 | 9 | test_expect_success '--ignore-space-at-eol with a single appended character' ' |
a5229cc9 JS |
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 | |
15 | ' | |
16 | ||
46c8f298 | 17 | test_diff_frobnitz "patience" |
34292bdd | 18 | |
46c8f298 | 19 | test_diff_unique "patience" |
34292bdd JS |
20 | |
21 | test_done |