diff options
| author | Russ Cox <rsc@golang.org> | 2009-09-15 09:41:59 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-09-15 09:41:59 -0700 |
| commit | ca6a0fee1b3f68ab4e9f8e1c7fbe80f178e68c09 (patch) | |
| tree | 46eac6aefe26f0b9056bff646d960bcba3d076cf /src/pkg/unicode/script_test.go | |
| parent | 1a3198907bf18ac961762024cf2a27581e6be6c3 (diff) | |
| download | go-ca6a0fee1b3f68ab4e9f8e1c7fbe80f178e68c09.tar.xz | |
more "declared and not used".
the last round omitted := range and only
checked 1 out of N vars in a multi-var :=
R=r
OCL=34624
CL=34638
Diffstat (limited to 'src/pkg/unicode/script_test.go')
| -rw-r--r-- | src/pkg/unicode/script_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pkg/unicode/script_test.go b/src/pkg/unicode/script_test.go index 613b569ea1..64e205ccf6 100644 --- a/src/pkg/unicode/script_test.go +++ b/src/pkg/unicode/script_test.go @@ -174,7 +174,7 @@ func TestScripts(t *testing.T) { for k := range Scripts { notTested[k] = true } - for i, test := range inTest { + for _, test := range inTest { if _, ok := Scripts[test.script]; !ok { t.Fatal(test.script, "not a known script") } @@ -183,7 +183,7 @@ func TestScripts(t *testing.T) { } notTested[test.script] = false, false } - for i, test := range outTest { + for _, test := range outTest { if Is(Scripts[test.script], test.rune) { t.Errorf("IsScript(%#x, %s) = true, want false\n", test.rune, test.script); } @@ -198,7 +198,7 @@ func TestCategories(t *testing.T) { for k := range Categories { notTested[k] = true } - for i, test := range inCategoryTest { + for _, test := range inCategoryTest { if _, ok := Categories[test.script]; !ok { t.Fatal(test.script, "not a known category") } @@ -217,7 +217,7 @@ func TestProperties(t *testing.T) { for k := range Properties { notTested[k] = true } - for i, test := range inPropTest { + for _, test := range inPropTest { if _, ok := Properties[test.script]; !ok { t.Fatal(test.script, "not a known prop") } |
