redding / assert

Assertion style testing framework.
https://github.com/redding/assert
MIT License
10 stars 1 forks source link

up the default integer max #193

Closed kellyredding closed 10 years ago

kellyredding commented 10 years ago

This switches the integer factory to return values up to the highest signed 8bit integer (32_767) value by default. In large test suites making many integer factories, the odds of duplicating an integer become very high. This can cause uniqueness validations for things that expect unique integers.

This doesn't totally solve that case, and you can argue you shouldn't use this factory for things that demand unique integers, but this increases the probability for getting unique values.

@jcredding going to go ahead and roll this. FYI.