@@ -27,7 +27,7 @@ func TestRender_Commits(t *testing.T) {
27
27
28
28
test := func (input , expected string ) {
29
29
buffer := RenderString (".md" , input , setting .AppSubURL , localMetas )
30
- assert .Equal (t , strings .TrimSpace (expected ), strings .TrimSpace (string ( buffer ) ))
30
+ assert .Equal (t , strings .TrimSpace (expected ), strings .TrimSpace (buffer ))
31
31
}
32
32
33
33
var sha = "b6dd6210eaebc915fd5be5579c58cce4da2e2579"
@@ -51,7 +51,7 @@ func TestRender_CrossReferences(t *testing.T) {
51
51
52
52
test := func (input , expected string ) {
53
53
buffer := RenderString ("a.md" , input , setting .AppSubURL , localMetas )
54
- assert .Equal (t , strings .TrimSpace (expected ), strings .TrimSpace (string ( buffer ) ))
54
+ assert .Equal (t , strings .TrimSpace (expected ), strings .TrimSpace (buffer ))
55
55
}
56
56
57
57
test (
@@ -83,7 +83,7 @@ func TestRender_links(t *testing.T) {
83
83
84
84
test := func (input , expected string ) {
85
85
buffer := RenderString ("a.md" , input , setting .AppSubURL , nil )
86
- assert .Equal (t , strings .TrimSpace (expected ), strings .TrimSpace (string ( buffer ) ))
86
+ assert .Equal (t , strings .TrimSpace (expected ), strings .TrimSpace (buffer ))
87
87
}
88
88
// Text that should be turned into URL
89
89
@@ -160,7 +160,7 @@ func TestRender_email(t *testing.T) {
160
160
161
161
test := func (input , expected string ) {
162
162
buffer := RenderString ("a.md" , input , setting .AppSubURL , nil )
163
- assert .Equal (t , strings .TrimSpace (expected ), strings .TrimSpace (string ( buffer ) ))
163
+ assert .Equal (t , strings .TrimSpace (expected ), strings .TrimSpace (buffer ))
164
164
}
165
165
// Text that should be turned into email link
166
166
@@ -214,9 +214,9 @@ func TestRender_ShortLinks(t *testing.T) {
214
214
215
215
test := func (input , expected , expectedWiki string ) {
216
216
buffer := markdown .RenderString (input , tree , nil )
217
- assert .Equal (t , strings .TrimSpace (expected ), strings .TrimSpace (string ( buffer ) ))
217
+ assert .Equal (t , strings .TrimSpace (expected ), strings .TrimSpace (buffer ))
218
218
buffer = markdown .RenderWiki ([]byte (input ), setting .AppSubURL , localMetas )
219
- assert .Equal (t , strings .TrimSpace (expectedWiki ), strings .TrimSpace (string ( buffer ) ))
219
+ assert .Equal (t , strings .TrimSpace (expectedWiki ), strings .TrimSpace (buffer ))
220
220
}
221
221
222
222
rawtree := util .URLJoin (AppSubURL , "raw" , "master" )
0 commit comments