The problem with loops in tests - Blog - TLBX
I have used loops in tests many times. Sometimes for iterating through an array of inputs, sometimes an array of tuples with an input and the expected output. It is a very convenient and dry way to code a test when you want to test against a lot of cases. But there is a problem with this approach.
tlbx.app