11 for(i
= 0; i
< 10; i
++)
13 printf("Your answer is: ");
27 int main
(int argc
, char
**argv
)
40 return fib
(n-1
) + fib
(n-2
);
49 for(i
= 0; i
< 10; i
++)
55 int main
(int argc
, char
**argv
)
62 diff --git a
/file1 b
/file2
63 index
6faa5a3..e3af329
100644
73 + return fib
(n-1
) + fib
(n-2
);
82 for(i
= 0; i
< 10; i
++)
84 - printf("Your answer is: ");
93 - return fact
(n-1
) * n
;
98 int main
(int argc
, char
**argv
)
100 - frobnitz
(fact
(10));
107 test_expect_success
"$STRATEGY diff" '
108 test_must_fail git diff --no-index "--$STRATEGY" file1 file2 > output &&
109 test_cmp expect output
112 test_expect_success
"$STRATEGY diff output is valid" '
114 git apply < output &&
115 test_cmp expect file2
139 diff --git a
/uniq1 b
/uniq2
140 index b414108.
.0fdf397
100644
160 test_expect_success
'completely different files' '
161 test_must_fail git diff --no-index "--$STRATEGY" uniq1 uniq2 > output &&
162 test_cmp expect output