зеркало из https://github.com/golang/dep.git
Merge pull request #1483 from zkry/projectConstraint-sorting-order
Fixed sorting order and reorder test
This commit is contained in:
Коммит
9d4a82e6bd
|
@ -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},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче