Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
8e39472e
Commit
8e39472e
authored
Mar 26, 2009
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename redefined symbols
R=iant DELTA=4 (0 added, 0 deleted, 4 changed) OCL=26802 CL=26811
parent
b499da48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/lib/unicode/decimaldigit_test.go
src/lib/unicode/decimaldigit_test.go
+4
-4
No files found.
src/lib/unicode/decimaldigit_test.go
View file @
8e39472e
...
...
@@ -13,7 +13,7 @@ import (
// grep '^....;[^;]*;Nd;' UnicodeData.txt
// To generate this table:
// ,s/([^;]+).+/ 0x\1, \/\/ &/g
var
d
ecimal
=
[]
int
{
var
testD
ecimal
=
[]
int
{
0x0030
,
// 0030;DIGIT ZERO;Nd;0;EN;;0;0;0;N;;;;;
0x0031
,
// 0031;DIGIT ONE;Nd;0;EN;;1;1;1;N;;;;;
0x0032
,
// 0032;DIGIT TWO;Nd;0;EN;;2;2;2;N;;;;;
...
...
@@ -326,7 +326,7 @@ var decimal = []int{
0xFF19
,
// FF19;FULLWIDTH DIGIT NINE;Nd;0;EN;<wide> 0039;9;9;9;N;;;;;
}
var
l
etter
=
[]
int
{
var
testL
etter
=
[]
int
{
0x41
,
0x61
,
0xaa
,
...
...
@@ -362,12 +362,12 @@ var letter = []int{
}
func
TestIsDecimalDigit
(
t
*
testing
.
T
)
{
for
i
,
r
:=
range
(
d
ecimal
)
{
for
i
,
r
:=
range
(
testD
ecimal
)
{
if
!
IsDecimalDigit
(
r
)
{
t
.
Errorf
(
"IsDecimalDigit(%#x) = false, want true
\n
"
,
r
);
}
}
for
i
,
r
:=
range
(
l
etter
)
{
for
i
,
r
:=
range
(
testL
etter
)
{
if
IsDecimalDigit
(
r
)
{
t
.
Errorf
(
"IsDecimalDigit(%#x) = true, want false
\n
"
,
r
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment