From 8bf57be9ba82d7b5289c894c902b5ecaaa1142bf Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 16 Aug 2016 07:45:06 -0700 Subject: [PATCH] Fix git diff tests --- models/git_diff_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/git_diff_test.go b/models/git_diff_test.go index e673094d2ec..7f390adb3fe 100644 --- a/models/git_diff_test.go +++ b/models/git_diff_test.go @@ -19,14 +19,14 @@ func assertLineEqual(t *testing.T, d1 *DiffLine, d2 *DiffLine) { } func TestDiffToHTML(t *testing.T) { - assertEqual(t, "foo bar biz", diffToHTML([]dmp.Diff{ + assertEqual(t, "+foo bar biz", diffToHTML([]dmp.Diff{ dmp.Diff{dmp.DiffEqual, "foo "}, dmp.Diff{dmp.DiffInsert, "bar"}, dmp.Diff{dmp.DiffDelete, " baz"}, dmp.Diff{dmp.DiffEqual, " biz"}, }, DIFF_LINE_ADD)) - assertEqual(t, "foo bar biz", diffToHTML([]dmp.Diff{ + assertEqual(t, "-foo bar biz", diffToHTML([]dmp.Diff{ dmp.Diff{dmp.DiffEqual, "foo "}, dmp.Diff{dmp.DiffDelete, "bar"}, dmp.Diff{dmp.DiffInsert, " baz"},