While the test is a bit more than a traditional unit test, I feel it's
more valuable and more clear what is happening. Without calling
perform_batch/2, it isn't really clear the purpose of the resulting
tuple, and we won't have tested that these two functions play nicely
together.
While the test is a bit more than a traditional unit test, I feel it's more valuable and more clear what is happening. Without calling
perform_batch/2
, it isn't really clear the purpose of the resulting tuple, and we won't have tested that these two functions play nicely together.