Re: [Unit tests] Mocking D objects

2018-08-23 Thread Jesse Phillips via Digitalmars-d-learn
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 t

Re: Nested template arguments

2018-08-23 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/22/18 11:37 AM, Alex wrote: On Wednesday, 22 August 2018 at 15:18:29 UTC, XavierAP wrote: On Wednesday, 22 August 2018 at 14:48:57 UTC, Alex wrote: Because it could be meant as the argument to some templates to the left. Like (foo!bar)!x Sure, it would be a coincidence, if both will wo