Unit Testing in Action
Ali Çehreli
acehreli at yahoo.com
Wed Oct 25 05:43:05 UTC 2017
On 10/24/2017 07:15 PM, Walter Bright wrote:
> On 10/24/2017 3:06 PM, Ali Çehreli wrote:
>> It would be very useful if the compiler could do that automatically.
>
> On 10/24/2017 2:58 PM, qznc wrote:
> > The information is there just not expressed in a useable way.
>
>
> The problem is how to display it in a text file with the original source
> code.
>
I wouldn't mind as ugly as needed. The following original code
if (api1 == 1 && api2 == 2 ||
api2 == 2 && api3 == 3) {
foo();
}
could be broken like the following and I wouldn't mind:
if (api1 == 1 &&
api2 == 2 ||
api2 == 2 &&
api3 == 3) {
foo();
}
I would go work on the original code anyway.
Ali
More information about the Digitalmars-d-announce
mailing list