We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9ce505 commit 4428c28Copy full SHA for 4428c28
middleware/tplfunc/tplfunc_test.go
@@ -4,6 +4,7 @@ import (
4
"testing"
5
6
"github.com/stretchr/testify/assert"
7
+ "github.com/webx-top/com"
8
)
9
10
func TestNumberFormat(t *testing.T) {
@@ -22,4 +23,7 @@ func TestInExt(t *testing.T) {
22
23
assert.True(t, InExt(`a/b/c/d.jpg`, `.jpg`))
24
assert.False(t, InExt(`a/b/c/d.jpeg`, `.jpg`))
25
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)
29
}
0 commit comments