Merge pull request #89508 from KobayashiD27/test-coverage-up

Add test case to improve the test coverage.
This commit is contained in:
Kubernetes Prow Robot 2020-05-01 13:00:31 -07:00 committed by GitHub
commit 594cbdfd19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,11 @@ func TestDefaultNormalizeScore(t *testing.T) {
scores: []int64{1000, 1, 1, 1},
expectedScores: []int64{100, 0, 0, 0},
},
{
reverse: true,
scores: []int64{0, 1, 1, 1},
expectedScores: []int64{100, 0, 0, 0},
},
}
for i, test := range tests {