1 // Copyright 2022 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
9 func Test(t *testing.T) {
12 b.WriteString("hello")
14 b.Write([]byte(" world"))
15 b.WritePosIntWidth(17, 4)
18 want := "hello, world0017"
20 t.Errorf("got %q, want %q", got, want)