mirror of https://github.com/stretchr/testify.git
put constants instead of values.
parent
d583a38000
commit
ad53dbbf0a
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue