On 4/18/11, Aryeh Gregor <simetrical+...@gmail.com> wrote: > On Sun, Apr 17, 2011 at 9:38 PM, Garrett Smith <dhtmlkitc...@gmail.com> > wrote: >> The superfluous, badly worded maladvice remains: "Within each test one >> may have a number of asserts." >> >> Awkward wording to explicitly mention that such bad practice is allowed. > > I'll reiterate that I think multiple asserts per test are useful, and > have seen no substantive arguments to the contrary. It's true that > the sentence would be better worded as "Each test can have a number of > asserts." > Superfluous.
A test with 0 assertions could be used to test exceptions but only if the testing framework provides for "@throws" annotation (my TestRunner.js does). -- Garrett