aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Wedgwood <cw@f00f.org>2010-04-11 10:18:49 -0700
committerRob Pike <r@golang.org>2010-04-11 10:18:49 -0700
commit3fbe7f4f41a89b85659bcfdacb40373f49870b89 (patch)
tree9d0aff19cef115b33ed35a2d90007f514245ae1a
parent094732f7eb51544b80b762bc59e92e90b735d934 (diff)
downloadgo-3fbe7f4f41a89b85659bcfdacb40373f49870b89.tar.gz
go-3fbe7f4f41a89b85659bcfdacb40373f49870b89.zip
testing: update documentation to match current coding style
R=rsc, r CC=golang-dev https://golang.org/cl/823045
-rw-r--r--src/pkg/testing/quick/quick.go4
-rw-r--r--src/pkg/testing/script/script.go8
-rw-r--r--src/pkg/testing/testing.go8
3 files changed, 10 insertions, 10 deletions
diff --git a/src/pkg/testing/quick/quick.go b/src/pkg/testing/quick/quick.go
index ae5cff6e22..da35d64db5 100644
--- a/src/pkg/testing/quick/quick.go
+++ b/src/pkg/testing/quick/quick.go
@@ -224,11 +224,11 @@ func (s *CheckEqualError) String() string {
//
// func TestOddMultipleOfThree(t *testing.T) {
// f := func(x int) bool {
-// y := OddMultipleOfThree(x);
+// y := OddMultipleOfThree(x)
// return y%2 == 1 && y%3 == 0
// }
// if err := quick.Check(f, nil); err != nil {
-// t.Error(err);
+// t.Error(err)
// }
// }
func Check(function interface{}, config *Config) (err os.Error) {
diff --git a/src/pkg/testing/script/script.go b/src/pkg/testing/script/script.go
index 9a41a467f3..3dbfbd5ff6 100644
--- a/src/pkg/testing/script/script.go
+++ b/src/pkg/testing/script/script.go
@@ -206,10 +206,10 @@ func NewEvent(name string, predecessors []*Event, action action) *Event {
// receive events must list the send event as a predecessor but there is no
// ordering between the receive events.
//
-// send := NewEvent("send", nil, Send{c, 1});
-// recv1 := NewEvent("recv 1", []*Event{send}, Recv{c, 1});
-// recv2 := NewEvent("recv 2", []*Event{send}, Recv{c, 1});
-// Perform(0, []*Event{send, recv1, recv2});
+// send := NewEvent("send", nil, Send{c, 1})
+// recv1 := NewEvent("recv 1", []*Event{send}, Recv{c, 1})
+// recv2 := NewEvent("recv 2", []*Event{send}, Recv{c, 1})
+// Perform(0, []*Event{send, recv1, recv2})
//
// At first, only the send event would be in the ready set and thus Perform will
// send a value to the input channel. Now the two receive events are ready and
diff --git a/src/pkg/testing/testing.go b/src/pkg/testing/testing.go
index 5bdbd8aa27..763b65b05c 100644
--- a/src/pkg/testing/testing.go
+++ b/src/pkg/testing/testing.go
@@ -29,11 +29,11 @@
// If a benchmark needs some expensive setup before running, the timer
// may be stopped:
// func BenchmarkBigLen(b *testing.B) {
-// b.StopTimer();
-// big := NewBig();
-// b.StartTimer();
+// b.StopTimer()
+// big := NewBig()
+// b.StartTimer()
// for i := 0; i < b.N; i++ {
-// big.Len();
+// big.Len()
// }
// }
package testing