fix codec test

This commit is contained in:
Andy Arthur
2022-02-21 09:38:42 -08:00
parent f1afe89743
commit f43a5bd6e4

View File

@@ -133,7 +133,9 @@ func encFloat(f float64) []byte {
}
func encStr(s string) []byte {
return []byte(s)
buf := make([]byte, len(s)+1)
writeString(buf, s)
return buf
}
func TestCodecRoundTrip(t *testing.T) {