Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ExplodingDragon committed Jan 14, 2025
1 parent 1dbf859 commit 08b3967
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions services/packages/arch/vercmp_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package arch

import (
"fmt"
"testing"

"github.com/stretchr/testify/require"
Expand All @@ -15,8 +14,8 @@ func TestCompareVersions(t *testing.T) {
}
for _, check := range checks {
for i := 0; i < len(check)-1; i++ {
require.Equal(t, -1, compareVersions(check[i], check[i+1]), fmt.Sprintf("%s > %s", check[i], check[i+1]))
require.Equal(t, 1, compareVersions(check[i+1], check[i]), fmt.Sprintf("%s > %s", check[i], check[i+1]))
require.Equal(t, -1, compareVersions(check[i], check[i+1]))
require.Equal(t, 1, compareVersions(check[i+1], check[i]))
}
}
require.Equal(t, 1, compareVersions("1.0-2", "1.0"))
Expand Down

0 comments on commit 08b3967

Please sign in to comment.