test: add some unit test function for convertor, random, slice, and formatter

This commit is contained in:
dudaodong committed 2021-11-29 17:27:02 +08:00
1 parent fee6cb17f3
commit f2ed3c6270
8 files changed
+92 -56

No files matched your search

+5
View File
@@ -11,6 +11,11 @@ import (
)
func TestHttpGet(t *testing.T) {
_, e := HttpGet("", nil)
if e == nil {
t.FailNow()
}
url := "https://gutendex.com/books?"
queryParams := make(map[string]interface{})
queryParams["ids"] = "1"