bearophile wrote:
Lutger Blijdestijn:
Actually the unix convention is to give exit code 0 as an indicator of
success, so there is feedback. It is very usable for scripting.
But currently something like that is not present in the D unittest system.
Yes, it is. Unit test failures return a
Walter:
Yes, it is. Unit test failures return a non-zero exit code.
I see, good. But real unit test systems don't just return that value, they give
a more visible feedback, like the number of failed/passed tests. One line of
text that shows those numbers is a good start.
Bye,
bearophile
But real unit test systems don't just return that value, they give a more
visible feedback, like the number of failed/passed tests. One line of text
that shows those numbers is a good start.
Or maybe that's not the job of a compiler...
Bye,
bearophile
On Friday 26 November 2010 17:17:56 bearophile wrote:
Walter:
Yes, it is. Unit test failures return a non-zero exit code.
I see, good. But real unit test systems don't just return that value, they
give a more visible feedback, like the number of failed/passed tests. One
line of text that
bearophile wrote:
Walter:
Yes, it is. Unit test failures return a non-zero exit code.
I see, good.
I wish you'd check these things before confidently posting incorrect assertions
about how D behaves.
Jonathan M Davis wrote:
I'm a firm believer that D unit tests should not change how they fundamentally
work at this point. I don't _want_ it to report the number of tests that passed.
That's right. The number that fail is completely useless window dressing.
That information is not at all
On Friday 26 November 2010 18:52:59 Walter Bright wrote:
Jonathan M Davis wrote:
I'm a firm believer that D unit tests should not change how they
fundamentally work at this point. I don't _want_ it to report the number
of tests that passed.
That's right. The number that fail is
Fawzi Mohamed fa...@gmx.ch wrote:
On 18-nov-10, at 09:11, Don wrote:
Jonathan M Davis wrote:
On Tuesday, November 16, 2010 13:33:54 bearophile wrote:
Jonathan M Davis:
Most of the rest (if not all of it) could indeed be done in a
library.
I am not sure it could be done nicely too
Jonathan M Davis wrote:
On Tuesday, November 16, 2010 13:33:54 bearophile wrote:
Jonathan M Davis:
Most of the rest (if not all of it) could indeed be done in a library.
I am not sure it could be done nicely too :-)
That would depend on what you're trying to do. Printing test success or
On 18-nov-10, at 09:11, Don wrote:
Jonathan M Davis wrote:
On Tuesday, November 16, 2010 13:33:54 bearophile wrote:
Jonathan M Davis:
Most of the rest (if not all of it) could indeed be done in a
library.
I am not sure it could be done nicely too :-)
That would depend on what you're trying
On 16/11/2010 21:11, Gide Nwawudu wrote:
On Tue, 16 Nov 2010 10:54:50 -0800, Jonathan M Davis
jmdavisp...@gmx.com wrote:
On Tuesday, November 16, 2010 07:53:01 Sean Kelly wrote:
bearophile Wrote:
He also gives a quite useful unittest that the student implementation
must pass, this is a good
On Thursday 18 November 2010 04:47:43 Bruno Medeiros wrote:
On 16/11/2010 21:11, Gide Nwawudu wrote:
On Tue, 16 Nov 2010 10:54:50 -0800, Jonathan M Davis
jmdavisp...@gmx.com wrote:
On Tuesday, November 16, 2010 07:53:01 Sean Kelly wrote:
bearophile Wrote:
He also gives a quite
bearophile wrote:
Lutger Blijdestijn:
Actually the unix convention is to give exit code 0 as an indicator of
success, so there is feedback. It is very usable for scripting.
But currently something like that is not present in the D unittest system.
rdmd --main -unittest somemodule.d
bearophile Wrote:
He also gives a quite useful unittest that the student implementation must
pass, this is a good usage of unittests. The unit test ends like this:
...
writeln(unit test passed);
}
Indeed, a person needs feedback that the unittests have run (and have
succeed), I
http://uvu.freshsources.com/page9/page7/files/Syllabus4450.html
Andrei
On 11/15/10 2:00 PM, Andrei Alexandrescu wrote:
http://uvu.freshsources.com/page9/page7/files/Syllabus4450.html
Andrei
I had a class from Chuck; he introduced me to D. He's an excellent teacher.
Andrei Alexandrescu seewebsiteforem...@erdani.org wrote:
[Good Stuff™]
Awesome!
--
Simen
Andrei:
http://uvu.freshsources.com/page9/page7/files/Syllabus4450.html
This is good. Despite its bugs/unfinished parts D2 is a good language to teach
certain kinds of lower level programming (and some OOP too).
This is the page of the resources of the course:
18 matches
Mail list logo