unit test

This commit is contained in:
李斌
2023-03-26 16:01:35 +08:00
parent 3afcc88a9a
commit e436397995
16 changed files with 430 additions and 152 deletions

View File

@@ -26,6 +26,7 @@ func TestToString(t *testing.T) {
{"bool-false", false, "false"},
{"complex64", complex64(1 + 2i), "(1+2i)"},
{"complex128", complex128(3 + 4i), "(3+4i)"},
{"chan", make(chan int), ""},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {