Hide build version behind plus character (fixes #473)

This commit is contained in:
Jakob Borg
2014-08-05 19:38:31 +02:00
parent 8ce8476547
commit 4be6a54bc0
4 changed files with 10 additions and 2 deletions

View File

@@ -28,6 +28,9 @@ var testcases = []struct {
{"1.0.0-beta.2", "1.0.0-beta.11", -1},
{"1.0.0-beta.11", "1.0.0-rc.1", -1},
{"1.0.0-rc.1", "1.0.0", -1},
{"1.0.0+45", "1.0.0+23-dev-foo", 0},
{"1.0.0-beta.23+45", "1.0.0-beta.23+23-dev-foo", 0},
{"1.0.0-beta.3+99", "1.0.0-beta.24+0", -1},
}
func TestCompareVersions(t *testing.T) {