Re: DUB test and strings that look like D code

2023-03-04 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
The analysis is pretty brain dead. https://github.com/dlang/dub/blob/master/source/dub/internal/utils.d#L611

DUB test and strings that look like D code

2023-03-04 Thread 0xEAB via Digitalmars-d-learn
Is it just me, or does this happen for someone else, too? Init a fresh DUB project and create a file (e.g. `lib.d`) with the following content: ```d unittest { string x = "module oh.dear.dub.what.are.you.doing;"; } ``` Then run `dub test`: ```