In TDD, wouldn't lambda's be detrimental? How do we test the functionality of a lambda that is encapsulated within another function? It would seem to me that you wouldn't be able to test that lambda to ensure that it was working as expected. The point of unit tests is to test small units of code. Lambdas are small units of code that seem to me, untestable.
Any help, opinions, clarification, or links would be appreciated.
Aucun commentaire:
Enregistrer un commentaire