summaryrefslogtreecommitdiff
path: root/src/lib/once_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/once_test.go')
-rw-r--r--src/lib/once_test.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/once_test.go b/src/lib/once_test.go
index 21a889dd3..865c661da 100644
--- a/src/lib/once_test.go
+++ b/src/lib/once_test.go
@@ -10,22 +10,22 @@ import (
)
var ncall int;
-func Call() {
+func call() {
ncall++
}
export func TestOnce(t *testing.T) {
ncall = 0;
- once.Do(&Call);
+ once.Do(&call);
if ncall != 1 {
- t.Fatalf("once.Do(&Call) didn't Call(): ncall=%d", ncall);
+ 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);
+ 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);
+ t.Fatalf("third once.Do(&call) did call(): ncall=%d", ncall);
}
}