mirror of
https://github.com/fumiama/NanoBot.git
synced 2026-06-09 20:50:23 +08:00
fix http
This commit is contained in:
@@ -4,7 +4,7 @@ import "testing"
|
||||
|
||||
func TestWriteHTTPQueryIfNotNil(t *testing.T) {
|
||||
expstr := "https://api.sgroup.qq.com/testapi?b=1&d=0.5"
|
||||
str := WriteHTTPQueryIfNotNil(StandardAPI+"/testapi", "a", 0, "b", 1, "c", "", "d", 0.5)
|
||||
str := WriteHTTPQueryIfNotNil(OpenAPI+"/testapi", "a", 0, "b", 1, "c", "", "d", 0.5)
|
||||
if str != expstr {
|
||||
t.Fatal("expected", expstr, "but got", str)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user