3 ms·
> Anyway, why do you claim any of that is specific to OOP? There is no need for Mocks or Fakes with pure functions.
by throw_m239339 6y ago
> Anyway, why do you claim any of that is specific to OOP?
There is no need for Mocks or Fakes with pure functions.
- marcosdumay 6y agoAnd in what paradigm do your programs consist of only pure functions? Certainly not on FP, where IO is explicitly added to a lot of code. Anyway, there isn't much difference between mocking a unity and passing some static data into your functions and comparing the results with the expected ones.