On Wednesday, 22 August 2018 at 08:33:36 UTC, Andrey wrote:
Hello,
I know that D has build-in unit tests. If so, what mechanism D provides for mocking objects?

I'd like to pose the question, what are you testing. This looks like you are testing that your mocked object returns 10. I usually try to make functions more pure like.

Reply via email to