summaryrefslogtreecommitdiff
path: root/tests-clar/diff/blob.c
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-02-27 14:50:32 -0800
committerVicent Martí <vicent@github.com>2013-02-27 14:50:32 -0800
commite68e33f33d98c171d31dac33257250b5ecded4c9 (patch)
tree527f7c1f05dfd0427a82410a0a51c39fa6a33044 /tests-clar/diff/blob.c
parent9f9477d650c33eddad9cb48c5ec84cd703300c16 (diff)
parent1be4ba984216dfcb1f07945240c2831395fd0460 (diff)
downloadlibgit2-e68e33f33d98c171d31dac33257250b5ecded4c9.tar.gz
Merge pull request #1233 from arrbee/file-similarity-metric
Add file similarity scoring to diff rename/copy detection
Diffstat (limited to 'tests-clar/diff/blob.c')
-rw-r--r--tests-clar/diff/blob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests-clar/diff/blob.c b/tests-clar/diff/blob.c
index a6950b871..2ac8dbc51 100644
--- a/tests-clar/diff/blob.c
+++ b/tests-clar/diff/blob.c
@@ -196,7 +196,7 @@ void test_diff_blob__can_compare_identical_blobs(void)
NULL, NULL, &opts, diff_file_cb, diff_hunk_cb, diff_line_cb, &expected));
cl_assert_equal_i(0, expected.files_binary);
- assert_identical_blobs_comparison(&expected);
+ cl_assert_equal_i(0, expected.files); /* NULLs mean no callbacks, period */
memset(&expected, 0, sizeof(expected));
cl_git_pass(git_diff_blobs(
@@ -399,7 +399,7 @@ void test_diff_blob__can_compare_blob_to_buffer(void)
assert_identical_blobs_comparison(&expected);
- /* diff from NULL blob to content of b */
+ /* diff from NULL blob to content of a */
memset(&expected, 0, sizeof(expected));
cl_git_pass(git_diff_blob_to_buffer(
NULL, a_content, strlen(a_content),