summaryrefslogtreecommitdiff
path: root/src/pkg/once/once_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/once/once_test.go')
-rw-r--r--src/pkg/once/once_test.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/pkg/once/once_test.go b/src/pkg/once/once_test.go
index e31bcc278..e7aaec312 100644
--- a/src/pkg/once/once_test.go
+++ b/src/pkg/once/once_test.go
@@ -5,25 +5,25 @@
package once_test
import (
- "once";
- "testing";
+ "once"
+ "testing"
)
var ncall int
-func call() { ncall++ }
+func call() { ncall++ }
func TestDo(t *testing.T) {
- ncall = 0;
- once.Do(call);
+ ncall = 0
+ once.Do(call)
if ncall != 1 {
t.Fatalf("once.Do(call) didn't call(): ncall=%d", ncall)
}
- once.Do(call);
+ once.Do(call)
if ncall != 1 {
t.Fatalf("second once.Do(call) did call(): ncall=%d", ncall)
}
- once.Do(call);
+ once.Do(call)
if ncall != 1 {
t.Fatalf("third once.Do(call) did call(): ncall=%d", ncall)
}