The dependence of drone-hugo validate, hugo check, was removed since v0.92.0. As the hugo check does nothing in fact, a removal of command validate could be considered. - removed command validate in main.go and plugin_test.go - removed unused github.com/pkg/errors in plugin_test.go
17 lines
306 B
Go
17 lines
306 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestVersionEqual(t *testing.T) {
|
|
want := true
|
|
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"); want != got {
|
|
t.Errorf("want: %t, got: %t", want, got)
|
|
}
|
|
}
|