1
0
mirror of https://github.com/fumiama/orbyte.git synced 2026-06-05 02:00:30 +08:00

chore: tidy test

This commit is contained in:
源文雨
2025-04-14 23:20:06 +09:00
parent 63dd01e81e
commit 765c970d70

View File

@@ -94,6 +94,7 @@ func TestBytesCopy(t *testing.T) {
a := ParseBytes(buf...) a := ParseBytes(buf...)
x := a.Slice(5, i-5) x := a.Slice(5, i-5)
b := x.Copy() b := x.Copy()
a.ManualDestroy()
if b.Len() != i-10 { if b.Len() != i-10 {
t.Fatal("index", i, "excpet len", i, "but got", b.Len()) t.Fatal("index", i, "excpet len", i, "but got", b.Len())
} }