22 lines
279 B
Go
22 lines
279 B
Go
|
package script
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestOpenGame(t *testing.T) {
|
||
|
client, err := NewClient()
|
||
|
if err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
req := CreateOpenGameReq(7275)
|
||
|
|
||
|
resp, err := client.OpenGame(req)
|
||
|
if err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
|
||
|
fmt.Println(resp.Code, resp.Msg)
|
||
|
}
|