tomvanzummeren / TZStackView

UIStackView replica for iOS 7.x and iOS 8.x
MIT License
1.15k stars 128 forks source link

Refactor test #54

Open CosynPa opened 8 years ago

CosynPa commented 8 years ago

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.