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

Add a few tests #239

Merged
merged 2 commits into from
May 26, 2021
Merged

Add a few tests #239

merged 2 commits into from
May 26, 2021

Conversation

jtgeibel
Copy link
Contributor

The first commit adds some tests related to #217, that regressed in 0.12. The tests now pass on 1.0.0.

The second commit adds a test for a new parse error. I haven't checked yet if we have any legacy versions on crates.io that violate this, but the error is to spec.

jtgeibel added 2 commits May 25, 2021 23:52
I started looking into this a few months ago, but the issue is now fixed
in 1.0.0!

The version_req tests are based loosely on versions observed on crates.io.
They previously failed to parse.

The version tests do not fail on 0.12, but are added for completeness.
This parsed in 0.12 but is correctly rejected in 1.0.0.
Copy link
Owner

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dtolnay
Copy link
Owner

dtolnay commented May 26, 2021

I haven't checked yet if we have any legacy versions on crates.io that violate this, but the error is to spec.

According to #237 there are 4 cases:

@dtolnay dtolnay merged commit f55448e into dtolnay:master May 26, 2021
@jtgeibel jtgeibel deleted the tests-for-issue-217 branch May 27, 2021 01:40
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

Successfully merging this pull request may close these issues.

2 participants