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

Implement #[proptest(regex = "...")] #103

Merged
merged 15 commits into from
Nov 4, 2018

Conversation

Centril
Copy link
Collaborator

@Centril Centril commented Nov 1, 2018

This PR implements #[proptest(regex = "...")].

  • To do so cleanly, the trait StrategyFromRegex is introduced into proptest::string but is hidden and semver exempt.
  • The PR improves some of the error messages.
  • New error messages E0034 (reports malformed regex attribute modifiers), E0035 (reports params and regex used on the same field together which is nonsense since the params can't be used inside the regex string...).
  • Some minor refactoring is done.
  • Some missing test coverage is made up for.

@AltSysrq
Copy link
Collaborator

AltSysrq commented Nov 4, 2018

Thanks again!

@AltSysrq AltSysrq merged commit cba44e4 into proptest-rs:proptest-derive Nov 4, 2018
@Centril Centril deleted the derive/regex branch November 4, 2018 21:19
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