refactor: code improvement, ToString, Contain, Compact

This commit is contained in:
dudaodong committed 2022-12-01 11:38:14 +08:00
1 parent 6f458e4367
commit a16de97d1d
3 files changed
+53 -36

No files matched your search

+3 -2
View File
@@ -137,9 +137,10 @@ func TestToString(t *testing.T) {
"", "",
"0", "1", "-1",
"123", "123", "123", "123", "123", "123", "123",
"12.3", "12.300000190734863",
"12.3", "12.3",
"true", "false",
"[1,2,3]", "{\"a\":1,\"b\":2,\"c\":3}", "{\"Name\":\"TestStruct\"}", "hello"}
"[1,2,3]", "{\"a\":1,\"b\":2,\"c\":3}", "{\"Name\":\"TestStruct\"}", "hello",
}
for i := 0; i < len(cases); i++ {
actual := ToString(cases[i])