TZStackView icon indicating copy to clipboard operation
TZStackView copied to clipboard

Refactor test

Open CosynPa opened this issue 10 years ago • 0 comments

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.

CosynPa avatar Nov 08 '15 09:11 CosynPa