summaryrefslogtreecommitdiffstats
path: root/models/git_diff_test.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-16 07:45:06 -0700
committerUnknwon <u@gogs.io>2016-08-16 07:45:06 -0700
commit8bf57be9ba82d7b5289c894c902b5ecaaa1142bf (patch)
tree5f42185843e61df75f09739966c9966a4fafdb34 /models/git_diff_test.go
parentb1504ed99a145fbc8d3aaa43513f006f8b2fd253 (diff)
downloadgitea-8bf57be9ba82d7b5289c894c902b5ecaaa1142bf.tar.gz
gitea-8bf57be9ba82d7b5289c894c902b5ecaaa1142bf.zip
Fix git diff tests
Diffstat (limited to 'models/git_diff_test.go')
-rw-r--r--models/git_diff_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/git_diff_test.go b/models/git_diff_test.go
index e673094d2e..7f390adb3f 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 <span class=\"added-code\">bar</span> biz", diffToHTML([]dmp.Diff{
+ assertEqual(t, "+foo <span class=\"added-code\">bar</span> 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 <span class=\"removed-code\">bar</span> biz", diffToHTML([]dmp.Diff{
+ assertEqual(t, "-foo <span class=\"removed-code\">bar</span> biz", diffToHTML([]dmp.Diff{
dmp.Diff{dmp.DiffEqual, "foo "},
dmp.Diff{dmp.DiffDelete, "bar"},
dmp.Diff{dmp.DiffInsert, " baz"},