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

Abstractions for enforcing maximum or minimum length of values #12

Merged
merged 3 commits into from
Jan 16, 2020
Merged

Conversation

remnestal
Copy link
Contributor

In one of my projects, I came across the need for not only asserting a specific length but also asserting a minimum and maximum length. Working against a database that mirrors a live one, records unrelated to the tests may appear and disappear, making the total size of the response payload indeterministic.

I thought that this is something others may appreciate so here I am 🎊

Each function and related test/docs can be found in a separate commit.

@steinfletcher
Copy link
Owner

Hey @remnestal. This is great - thanks for the contribution.

Can we please change to GreaterThan? I think that's a little more common and appears in testify, hamcrest and assertj.

Happy to merge after that.

Thanks!

@remnestal
Copy link
Contributor Author

Can we please change to GreaterThan? I think that's a little more common and appears in testify, hamcrest and assertj.

Much better!

@steinfletcher steinfletcher merged commit e98e53e into steinfletcher:master Jan 16, 2020
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