Peer Interface 수정
This commit is contained in:
@ -108,3 +108,12 @@ func TestPeerApiBroker(t *testing.T) {
|
||||
func1args, _ = json.Marshal([]any{float64(111.1), []int{99, 98}})
|
||||
ws.Call(tp, "test.ApiFunc3", bytes.NewBuffer(func1args))
|
||||
}
|
||||
|
||||
func TestUnmarshal(t *testing.T) {
|
||||
src := []byte(`{"123" :"str1", "456": "str2"}`)
|
||||
var test map[int]string
|
||||
err := json.Unmarshal(src, &test)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user