- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestAppendln (0.11 sec)
-
src/fmt/fmt_test.go
if string(got) != appendResult { t.Fatalf("Append returns %q not %q", got, appendResult) } if &b[0] != &got[0] { t.Fatalf("Append allocated a new slice") } } func TestAppendln(t *testing.T) { b := make([]byte, 100) b = b[:copy(b, hello)] got := Appendln(b, "world,", 23) if string(got) != appendResult+"\n" { t.Fatalf("Appendln returns %q not %q", got, appendResult+"\n") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:31:55 UTC 2024 - 58.6K bytes - Viewed (0)