Files
gitbump/main_test.go
Ondrej Belusky 4f46101d4c
Some checks failed
Gitbump CI / test (push) Failing after 51s
Gitbump CI / build (push) Successful in 10s
Gitbump CI / notify-failure (push) Has been skipped
move to gitea actions
2026-02-12 12:52:34 +01:00

15 lines
249 B
Go

package main
import "testing"
func TestParseVersion(t *testing.T) {
major, minor, patch, err := parseVersion("v0.0.0", "v")
if err != nil {
t.Fatal(err)
}
if major != 0 || minor != 0 || patch != 0 {
t.Fatal("version does not match")
}
}