1
0
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:
源文雨
2023-10-10 22:02:52 +09:00
parent f04743c7a5
commit 30554f4ffc
9 changed files with 268 additions and 51 deletions

11
http_test.go Normal file
View 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)
}
}