Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
a35f23f3
Commit
a35f23f3
authored
Oct 24, 2012
by
Marcel van Lohuizen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exp/locale/collate/tools/colcmp: add locale to output of regression failure.
R=r CC=golang-dev
https://golang.org/cl/6749058
parent
80dbe743
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
colcmp.go
src/pkg/exp/locale/collate/tools/colcmp/colcmp.go
+4
-4
No files found.
src/pkg/exp/locale/collate/tools/colcmp/colcmp.go
View file @
a35f23f3
...
...
@@ -399,7 +399,7 @@ var cmdRegress = &Command{
}
const
failedKeyCompare
=
`
%d: incorrect comparison result for input:
%
s:%
d: incorrect comparison result for input:
a: %q (%.4X)
key: %s
b: %q (%.4X)
...
...
@@ -412,7 +412,7 @@ const failedKeyCompare = `
`
const
failedCompare
=
`
%d: incorrect comparison result for input:
%
s:%
d: incorrect comparison result for input:
a: %q (%.4X)
b: %q (%.4X)
Compare(a, b) = %d; want %d.
...
...
@@ -453,12 +453,12 @@ func runRegress(ctxt *Context, args []string) {
count
++
a
:=
string
(
ia
.
UTF8
)
b
:=
string
(
ib
.
UTF8
)
fmt
.
Printf
(
failedKeyCompare
,
i
-
1
,
a
,
[]
rune
(
a
),
keyStr
(
ia
.
key
),
b
,
[]
rune
(
b
),
keyStr
(
ib
.
key
),
cmp
,
goldCmp
,
keyStr
(
gold
.
Key
(
ia
)),
keyStr
(
gold
.
Key
(
ib
)))
fmt
.
Printf
(
failedKeyCompare
,
t
.
Locale
,
i
-
1
,
a
,
[]
rune
(
a
),
keyStr
(
ia
.
key
),
b
,
[]
rune
(
b
),
keyStr
(
ib
.
key
),
cmp
,
goldCmp
,
keyStr
(
gold
.
Key
(
ia
)),
keyStr
(
gold
.
Key
(
ib
)))
}
else
if
cmp
:=
t
.
Col
.
Compare
(
ia
,
ib
);
cmp
!=
goldCmp
{
count
++
a
:=
string
(
ia
.
UTF8
)
b
:=
string
(
ib
.
UTF8
)
fmt
.
Printf
(
failed
KeyCompar
e
,
i
-
1
,
a
,
[]
rune
(
a
),
b
,
[]
rune
(
b
),
cmp
,
goldCmp
)
fmt
.
Printf
(
failed
Compare
,
t
.
Local
e
,
i
-
1
,
a
,
[]
rune
(
a
),
b
,
[]
rune
(
b
),
cmp
,
goldCmp
)
}
}
if
count
>
0
{
...
...
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