debian: new upstream point release
[git/debian.git] / t / t4101-apply-nonl.sh
blobb1169193ef5d53e06302b01b9a54ad7ed165232c
1 #!/bin/sh
3 # Copyright (c) 2005 Junio C Hamano
6 test_description='git apply should handle files with incomplete lines.
10 TEST_PASSES_SANITIZE_LEAK=true
11 . ./test-lib.sh
13 # setup
15 (echo a; echo b) >frotz.0
16 (echo a; echo b; echo c) >frotz.1
17 (echo a; echo b | tr -d '\012') >frotz.2
18 (echo a; echo c; echo b | tr -d '\012') >frotz.3
20 for i in 0 1 2 3
22 for j in 0 1 2 3
24 test $i -eq $j && continue
25 cat frotz.$i >frotz
26 test_expect_success "apply diff between $i and $j" '
27 git apply <"$TEST_DIRECTORY"/t4101/diff.$i-$j &&
28 test_cmp frotz.$j frotz
30 done
31 done
33 test_done