put constants instead of values.

pull/910/head
Alexander Pantyukhin 2020-02-06 00:26:43 +04:00 committed by Boyan Soubachov
parent d583a38000
commit ad53dbbf0a
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ func TestCompare(t *testing.T) {
t.Error("object should be comparable for type " + currCase.cType)
}
if resLess != -1 {
if resLess != less {
t.Errorf("object less should be less than greater for type " + currCase.cType)
}
@ -38,7 +38,7 @@ func TestCompare(t *testing.T) {
t.Error("object are comparable for type " + currCase.cType)
}
if resGreater != 1 {
if resGreater != greater {
t.Errorf("object greater should be greater than less for type " + currCase.cType)
}