From ad53dbbf0ae90ca9a5a43c7713abe38dea70d09d Mon Sep 17 00:00:00 2001 From: Alexander Pantyukhin Date: Thu, 6 Feb 2020 00:26:43 +0400 Subject: [PATCH] put constants instead of values. --- assert/assertion_order_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assert/assertion_order_test.go b/assert/assertion_order_test.go index 3ee352a..e37fdeb 100644 --- a/assert/assertion_order_test.go +++ b/assert/assertion_order_test.go @@ -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) }