interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / t / t4033-diff-patience.sh

20 lines · 441 bytes Raw Blame History
1#!/bin/sh
2
3test_description='patience diff algorithm'
4
5. ./test-lib.sh
6. "$TEST_DIRECTORY"/lib-diff-alternative.sh
7
8test_expect_success '--ignore-space-at-eol with a single appended character' '
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 test_grep "^+.*X" diff
14'
15
16test_diff_frobnitz "patience"
17
18test_diff_unique "patience"
19
20test_done