Do everything in Java…

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Fri Dec 5 17:19:52 PST 2014


On Friday, 5 December 2014 at 15:00:15 UTC, Ary Borenszweig wrote:
> On 12/5/14, 8:53 AM, Chris wrote:
>> On Friday, 5 December 2014 at 09:27:16 UTC, Paulo  Pinto wrote:
>>> On Friday, 5 December 2014 at 02:25:20 UTC, Walter Bright 
>>> wrote:
>>>> On 12/4/2014 5:32 PM, ketmar via Digitalmars-d wrote:
>>
>> Now is the right time to confess. I hardly ever use unit tests 
>> although
>> it's included (and encouraged) in D. Why? When I write new 
>> code I "unit
>> test" as I go along, with
>>
>> debug writefln("result %s", result);
>>
>> and stuff like this. Stupid? Unprofessional? I don't know. It 
>> works.
>
> You should trying writing a compiler without unit tests.

Yes, compiler is THE school case example where unittests shine.
Feed input, check output, no surprise.


More information about the Digitalmars-d mailing list