drone-hugo/plugin_test.go
AzurCrystal 5bb893c04e remove drone-hugo validate arg
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
2022-08-03 00:12:34 +08:00

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)
}
}