Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Less(i, j int), maybe is return a[i].PassTime < a[j].PassTime
Browse files Browse the repository at this point in the history
  • Loading branch information
yangxuanjia committed Nov 26, 2017
1 parent e1410e9 commit 925e14a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.go
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ type ByPassTime []TestStats

func (a ByPassTime) Len() int { return len(a) }
func (a ByPassTime) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
func (a ByPassTime) Less(i, j int) bool { return a[i].PassTime > a[j].PassTime }
func (a ByPassTime) Less(i, j int) bool { return a[i].PassTime < a[j].PassTime }

func getTestsSorted(names []string, testMap map[string]*Test) []*Test {
sort.Strings(names)
Expand Down

0 comments on commit 925e14a

Please sign in to comment.