mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-23 10:02:10 +08:00
add test case for function
This commit is contained in:
parent
d1db18da52
commit
e9907ad666
@ -56,3 +56,8 @@ func TestSource(t *testing.T) {
|
|||||||
bs = source(in, 1)
|
bs = source(in, 1)
|
||||||
assert.Equal(t, []byte("Hello world."), bs)
|
assert.Equal(t, []byte("Hello world."), bs)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestFunction(t *testing.T) {
|
||||||
|
bs := function(1)
|
||||||
|
assert.Equal(t, []byte("???"), bs)
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user