Make vet and testing happy
This commit is contained in:
parent
df53de2dfa
commit
f723940bc7
2 changed files with 7 additions and 6 deletions
|
|
@ -1,8 +1,9 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/pkg/errors"
|
||||
"testing"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
func TestCommandValidate(t *testing.T) {
|
||||
|
|
@ -25,12 +26,12 @@ func TestCommandValidate(t *testing.T) {
|
|||
|
||||
func TestVersionEqual(t *testing.T) {
|
||||
want := true
|
||||
if got := versionsEqual("1.0", "1.0", false); want != got {
|
||||
if got := versionsEqual("1.0", "1.0"); want != got {
|
||||
t.Errorf("want: %t, got: %t", want, got)
|
||||
}
|
||||
|
||||
want = false
|
||||
if got := versionsEqual("1.5", "1.0", false); want != got {
|
||||
if got := versionsEqual("1.5", "1.0"); want != got {
|
||||
t.Errorf("want: %t, got: %t", want, got)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue