1
0
mirror of https://github.com/fumiama/NanoBot.git synced 2026-06-05 02:30:23 +08:00
Files
NanoBot/http_test.go
源文雨 3e595b0dee fix http
2023-10-12 01:00:38 +09:00

12 lines
294 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(OpenAPI+"/testapi", "a", 0, "b", 1, "c", "", "d", 0.5)
if str != expstr {
t.Fatal("expected", expstr, "but got", str)
}
}