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

Refactor test #54

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Refactor test #54

wants to merge 2 commits into from

Conversation

CosynPa
Copy link

@CosynPa CosynPa commented Nov 8, 2015

We had 70 test functions that exhaust all the combinations of 7 alignments, 2 axes, and 5 distributions (7 * 2 * 5 = 70). If we want to test more properties, for example layoutMarginsRelativeArrangement, we'll have to add another 70 test functions, which is nearly impossible.

So I refactor these test functions with only one function, which is more flexible to add more test cases.

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.

1 participant