зеркало из https://github.com/golang/dep.git
Fixed sorting order and reorder test
This commit is contained in:
Родитель
d9ce240c02
Коммит
df4231d3f7
|
@ -830,4 +830,4 @@ type byProject []projectConstraint
|
|||
|
||||
func (p byProject) Len() int { return len(p) }
|
||||
func (p byProject) Swap(i, j int) { p[i], p[j] = p[j], p[i] }
|
||||
func (p byProject) Less(i, j int) bool { return p[i].Project > p[j].Project }
|
||||
func (p byProject) Less(i, j int) bool { return p[i].Project < p[j].Project }
|
||||
|
|
|
@ -354,8 +354,8 @@ func TestCollectConstraints(t *testing.T) {
|
|||
{"github.com/darkowlzz/deptest-project-2", ver1},
|
||||
},
|
||||
"github.com/sdboyer/deptest": []projectConstraint{
|
||||
{"github.com/darkowlzz/deptest-project-2", ver08},
|
||||
{"github.com/darkowlzz/deptest-project-1", ver1},
|
||||
{"github.com/darkowlzz/deptest-project-2", ver08},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче