Unittests on a module

DLearner bmqazwsx123 at gmail.com
Fri Jan 13 19:07:46 UTC 2023


If unittest run without a main() being present, crashes on link 
error:
```
lld-link: error: subsystem must be defined
Error: linker exited with status 1
```

Is this intended?

It's not a problem to add temporary
```
void main() {

}
```
to the bottom of the module, but seems wrong as not then testing 
_exactly_ what is to be imported elsewhere.


More information about the Digitalmars-d-learn mailing list