mirror of
https://github.com/fumiama/NanoBot.git
synced 2026-06-08 20:20:23 +08:00
add channel patch/delete
This commit is contained in:
11
http_test.go
Normal file
11
http_test.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package nano
|
||||
|
||||
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)
|
||||
if str != expstr {
|
||||
t.Fatal("expected", expstr, "but got", str)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user