znsio / specmatic

Turn your contracts into executable specifications. Contract Driven Development - Collaboratively Design & Independently Deploy MicroServices & MicroFrontends.
https://specmatic.io
MIT License
275 stars 51 forks source link

Added negative tests for the minimum and maximum keywords in NumberPattern #1149

Closed joelrosario closed 3 months ago

joelrosario commented 3 months ago

What:

When the minimum keyword is used in a number type in the specification, negativeBasedOn should generate a value that is below the minimum, as a negative value for the number.

When the maximum keyword is used in a number type in the specification, negativeBasedOn should generate a value that is above the maximum, as a negative value for the number.

Checklist: