diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2016-12-30 15:26:05 +0800 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2016-12-30 20:41:10 +0100 |
commit | 6510e5775896343f0a69c47ad31c439c7310ff34 (patch) | |
tree | 875044ba5fcd58a4cc7e7d1b1215f7217963a30d /models/git_diff_test.go | |
parent | d0490c187cf6720ed4d0e8ce14c8706e61adaf1f (diff) | |
download | gitea-6510e5775896343f0a69c47ad31c439c7310ff34.tar.gz gitea-6510e5775896343f0a69c47ad31c439c7310ff34.zip |
fix gofmt error
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Diffstat (limited to 'models/git_diff_test.go')
-rw-r--r-- | models/git_diff_test.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/models/git_diff_test.go b/models/git_diff_test.go index cf98f65399..f88e6fb610 100644 --- a/models/git_diff_test.go +++ b/models/git_diff_test.go @@ -20,16 +20,16 @@ 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{ - dmp.Diff{dmp.DiffEqual, "foo "}, - dmp.Diff{dmp.DiffInsert, "bar"}, - dmp.Diff{dmp.DiffDelete, " baz"}, - dmp.Diff{dmp.DiffEqual, " biz"}, + {dmp.DiffEqual, "foo "}, + {dmp.DiffInsert, "bar"}, + {dmp.DiffDelete, " baz"}, + {dmp.DiffEqual, " biz"}, }, DiffLineAdd)) 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"}, - dmp.Diff{dmp.DiffEqual, " biz"}, + {dmp.DiffEqual, "foo "}, + {dmp.DiffDelete, "bar"}, + {dmp.DiffInsert, " baz"}, + {dmp.DiffEqual, " biz"}, }, DiffLineDel)) } |