Re: unittests and imported modules

2021-01-28 Thread H. S. Teoh via Digitalmars-d-learn
To answer your other question: On Thu, Jan 28, 2021 at 07:44:59PM +, kdevel via Digitalmars-d-learn wrote: [...] > After inserting print statements into the other modules I found that > the additional four unittests originate from the imported files. Is > there a trick to get only the unittest

Re: unittests and imported modules

2021-01-28 Thread kdevel via Digitalmars-d-learn
On Thursday, 28 January 2021 at 20:03:34 UTC, H. S. Teoh wrote: [...] 5 unittests passed Which version of dmd is this? $ dmd --version DMD64 D Compiler v2.093.1 Copyright (C) 1999-2020 by The D Language Foundation, All Rights Reserved written by Walter Bright In the latest releases, thi

Re: unittests and imported modules

2021-01-28 Thread H. S. Teoh via Digitalmars-d-learn
On Thu, Jan 28, 2021 at 07:44:59PM +, kdevel via Digitalmars-d-learn wrote: > Today I moved some functions to a new module within the same package > and ran > >dmd -g -i -unittest -checkaction=context -main -run . > > dmd reported > >5 unittests passed Which version of dmd is this?

unittests and imported modules

2021-01-28 Thread kdevel via Digitalmars-d-learn
Today I moved some functions to a new module within the same package and ran dmd -g -i -unittest -checkaction=context -main -run . dmd reported 5 unittests passed I would have expected that only the one unittest in would have been compiled. After inserting print statements into the o