aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2016-01-09 17:05:21 -0200
committerAndrey Nering <andrey.nering@gmail.com>2016-01-09 17:05:21 -0200
commit9620f48ed0258c0a56be51b71a98763f0ac5c698 (patch)
treeb6499d6f47fc437c703059ec7b89159785da0bb4 /models
parent8a93113192cc5f8c22228dae2065c39c7fb8e6ed (diff)
downloadgitea-9620f48ed0258c0a56be51b71a98763f0ac5c698.tar.gz
gitea-9620f48ed0258c0a56be51b71a98763f0ac5c698.zip
Fix test case after 86bce4a2ae9915fad63c742cb68fcd0a5e64a223.
Diffstat (limited to 'models')
-rw-r--r--models/git_diff_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/git_diff_test.go b/models/git_diff_test.go
index a7b9bdd628..4084814ec8 100644
--- a/models/git_diff_test.go
+++ b/models/git_diff_test.go
@@ -18,15 +18,15 @@ 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{
+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"},
}, 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"},