Skip to content

Commit 7357bfd

Browse files
Feedback from @bradfitz
1 parent ba159b1 commit 7357bfd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/testing/testing.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
// For more detail, run ``go help test'' and ``go help testflag''.
1919
//
2020
// A simple test function looks like this:
21+
//
2122
// func TestAbs(t *testing.T) {
2223
// got := Abs(-1)
23-
// want := 1
24-
// if got != want {
25-
// t.Errorf("Abs(-1) returns %d, want %d", got, want)
24+
// if got != 1 {
25+
// t.Errorf("Abs(-1) = %d; want 1", got)
2626
// }
2727
// }
2828
//
@@ -36,7 +36,7 @@
3636
// For a description of the testing flags, see
3737
// https://golang.org/cmd/go/#hdr-Testing_flags
3838
//
39-
// A simple benchmark function looks like this:
39+
// A sample benchmark function looks like this:
4040
// func BenchmarkHello(b *testing.B) {
4141
// for i := 0; i < b.N; i++ {
4242
// fmt.Sprintf("hello")
@@ -136,6 +136,7 @@
136136
//
137137
// Tests or benchmarks may be skipped at run time with a call to
138138
// the Skip method of *T or *B:
139+
//
139140
// func TestTimeConsuming(t *testing.T) {
140141
// if testing.Short() {
141142
// t.Skip("skipping test in short mode.")

0 commit comments

Comments
 (0)