Commit 8e39472e authored by Rob Pike's avatar Rob Pike

rename redefined symbols

R=iant
DELTA=4  (0 added, 0 deleted, 4 changed)
OCL=26802
CL=26811
parent b499da48
...@@ -13,7 +13,7 @@ import ( ...@@ -13,7 +13,7 @@ import (
// grep '^....;[^;]*;Nd;' UnicodeData.txt // grep '^....;[^;]*;Nd;' UnicodeData.txt
// To generate this table: // To generate this table:
// ,s/([^;]+).+/ 0x\1, \/\/ &/g // ,s/([^;]+).+/ 0x\1, \/\/ &/g
var decimal = []int{ var testDecimal = []int{
0x0030, // 0030;DIGIT ZERO;Nd;0;EN;;0;0;0;N;;;;; 0x0030, // 0030;DIGIT ZERO;Nd;0;EN;;0;0;0;N;;;;;
0x0031, // 0031;DIGIT ONE;Nd;0;EN;;1;1;1;N;;;;; 0x0031, // 0031;DIGIT ONE;Nd;0;EN;;1;1;1;N;;;;;
0x0032, // 0032;DIGIT TWO;Nd;0;EN;;2;2;2;N;;;;; 0x0032, // 0032;DIGIT TWO;Nd;0;EN;;2;2;2;N;;;;;
...@@ -326,7 +326,7 @@ var decimal = []int{ ...@@ -326,7 +326,7 @@ var decimal = []int{
0xFF19, // FF19;FULLWIDTH DIGIT NINE;Nd;0;EN;<wide> 0039;9;9;9;N;;;;; 0xFF19, // FF19;FULLWIDTH DIGIT NINE;Nd;0;EN;<wide> 0039;9;9;9;N;;;;;
} }
var letter = []int{ var testLetter = []int{
0x41, 0x41,
0x61, 0x61,
0xaa, 0xaa,
...@@ -362,12 +362,12 @@ var letter = []int{ ...@@ -362,12 +362,12 @@ var letter = []int{
} }
func TestIsDecimalDigit(t *testing.T) { func TestIsDecimalDigit(t *testing.T) {
for i, r := range(decimal) { for i, r := range(testDecimal) {
if !IsDecimalDigit(r) { if !IsDecimalDigit(r) {
t.Errorf("IsDecimalDigit(%#x) = false, want true\n", r); t.Errorf("IsDecimalDigit(%#x) = false, want true\n", r);
} }
} }
for i, r := range(letter) { for i, r := range(testLetter) {
if IsDecimalDigit(r) { if IsDecimalDigit(r) {
t.Errorf("IsDecimalDigit(%#x) = true, want false\n", r); t.Errorf("IsDecimalDigit(%#x) = true, want false\n", r);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment