move to gitea actions
This commit is contained in:
14
main_test.go
Normal file
14
main_test.go
Normal file
@@ -0,0 +1,14 @@
|
||||
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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user