Skip to content

Commit 4428c28

Browse files
committed
update
1 parent c9ce505 commit 4428c28

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

middleware/tplfunc/tplfunc_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"testing"
55

66
"github.com/stretchr/testify/assert"
7+
"github.com/webx-top/com"
78
)
89

910
func TestNumberFormat(t *testing.T) {
@@ -22,4 +23,7 @@ func TestInExt(t *testing.T) {
2223
assert.True(t, InExt(`a/b/c/d.jpg`, `.jpg`))
2324
assert.False(t, InExt(`a/b/c/d.jpeg`, `.jpg`))
2425
assert.True(t, InExt(`a/b/c/d.jpeg`, `.jpeg`))
26+
var r []string
27+
err := com.JSONDecodeString(`null`, &r)
28+
assert.NoError(t, err)
2529
}

0 commit comments

Comments
 (0)