http://d.puremagic.com/issues/show_bug.cgi?id=8384



--- Comment #8 from Jonathan M Davis <jmdavisp...@gmx.com> 2012-07-13 14:48:31 
PDT ---
> Hooray for using "static" foreach to conveniently enumerate all the cases to
test!

Yeah. I do that all of the time when I have to test with multiple types
(especially with strings), and I always push for string-related tests to do
that when I see that someone is looking to submit code to Phobos for a function
that takes one or more strings as templated types, and their tests don't do
that. It's just one of those things that everyone who writes much in the way of
unit tests in D should learn and know about.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to