1
0
mirror of https://github.com/fumiama/NanoBot.git synced 2026-06-06 03:00:24 +08:00
Files
NanoBot/http_test.go
2023-10-10 22:02:52 +09:00

12 lines
298 B
Go

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)
}
}