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 test cases to match with integers/floats #39

Merged
merged 2 commits into from
Aug 19, 2017

Conversation

LindomarReitz
Copy link

@LindomarReitz LindomarReitz commented Jul 24, 2017

These test cases are related to this PR: pact-foundation/pact-support#38

@bethesque I think it resolves this issue: #36

@LindomarReitz LindomarReitz changed the base branch from master to version-2 July 24, 2017 10:30
"expected": {
"headers": {"Content-Type": "application/json"},
"matchingRules": {
"$.body.alligator.feet": {"match": "regex", "regex": "\\d(\\.\\d{1,2})"}
Copy link
Member

Choose a reason for hiding this comment

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

$.body.alligator.feet does not match the body. Should it be $.body.product.price?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, I forgot this :)

Thanks @uglyog.

"expected": {
"headers": {"Content-Type": "application/json"},
"matchingRules": {
"$.body.alligator.feet": {"match": "regex", "regex": "\\d(\\.\\d{1,2})"}
Copy link
Member

Choose a reason for hiding this comment

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

Same as per comment on request body.

@uglyog uglyog merged commit f92ea6f into pact-foundation:version-2 Aug 19, 2017
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