Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
gostnops
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wei.xuan
gostnops
Commits
cce873e9
Commit
cce873e9
authored
Jan 06, 2020
by
Ming Deng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix review
parent
406517db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
sort.go
sort/sort.go
+2
-2
sort_test.go
sort/sort_test.go
+2
-2
No files found.
gx
sort/sort.go
→
sort/sort.go
View file @
cce873e9
...
...
@@ -21,11 +21,11 @@ import (
"sort"
)
func
Sort
Int64
(
slice
[]
int64
)
{
func
Int64
(
slice
[]
int64
)
{
sort
.
Sort
(
Int64Slice
(
slice
))
}
func
Sort
Int32
(
slice
[]
int32
)
{
func
Int32
(
slice
[]
int32
)
{
sort
.
Sort
(
Int32Slice
(
slice
))
}
...
...
gx
sort/sort_test.go
→
sort/sort_test.go
View file @
cce873e9
...
...
@@ -27,7 +27,7 @@ import (
func
TestSortInt32
(
t
*
testing
.
T
)
{
data
:=
[]
int32
{
3
,
5
,
1
,
9
,
0
,
2
,
2
}
Sort
Int32
(
data
)
Int32
(
data
)
assert
.
Equal
(
t
,
int32
(
0
),
data
[
0
])
assert
.
Equal
(
t
,
int32
(
1
),
data
[
1
])
assert
.
Equal
(
t
,
int32
(
2
),
data
[
2
])
...
...
@@ -39,7 +39,7 @@ func TestSortInt32(t *testing.T) {
func
TestSortInt64
(
t
*
testing
.
T
)
{
data
:=
[]
int64
{
3
,
5
,
1
,
9
,
0
,
2
,
2
}
Sort
Int64
(
data
)
Int64
(
data
)
assert
.
Equal
(
t
,
int64
(
0
),
data
[
0
])
assert
.
Equal
(
t
,
int64
(
1
),
data
[
1
])
assert
.
Equal
(
t
,
int64
(
2
),
data
[
2
])
...
...
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