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 | 0ebfa231d21b255d84cfdb8a618cfe397db6c497 (patch) | |
tree | 46eac6aefe26f0b9056bff646d960bcba3d076cf /src/pkg/unicode/digit_test.go | |
parent | c67478eb2cfefebf09d0c648efa24bb9578078ba (diff) | |
download | golang-0ebfa231d21b255d84cfdb8a618cfe397db6c497.tar.gz |
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/digit_test.go')
-rw-r--r-- | src/pkg/unicode/digit_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/unicode/digit_test.go b/src/pkg/unicode/digit_test.go index a95051f3e..0d5582f59 100644 --- a/src/pkg/unicode/digit_test.go +++ b/src/pkg/unicode/digit_test.go @@ -104,12 +104,12 @@ var testLetter = []int { } func TestDigit(t *testing.T) { - for i, r := range testDigit { + for _, r := range testDigit { if !IsDigit(r) { t.Errorf("IsDigit(U+%04X) = false, want true\n", r); } } - for i, r := range testLetter { + for _, r := range testLetter { if IsDigit(r) { t.Errorf("IsDigit(U+%04X) = true, want false\n", r); } |