Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not seem to pre-release version for semver 2.0.0 #27

Closed
skinowski opened this issue Feb 12, 2018 · 1 comment
Closed

does not seem to pre-release version for semver 2.0.0 #27

skinowski opened this issue Feb 12, 2018 · 1 comment

Comments

@skinowski
Copy link

Please see:

https://semver.org/

Steps to reproduce:

func TestSemVer(t *testing.T) {
	actual, err := semver.NewVersion("17.06.0-ce")
	if err != nil {
		t.Fatal(err.Error())
	}

	wanted, err := semver.NewVersion("17.06.0")
	if err != nil {
		t.Fatal(err.Error())
	}

	if actual.Compare(*wanted) < 0 {
		t.Fatal("not good")
	}
}
@skinowski
Copy link
Author

Not enough coffee :-) This works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant