add test case for function

This commit is contained in:
thinkerou 2018-08-09 13:19:19 +08:00
parent d1db18da52
commit e9907ad666

View File

@ -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)
}