[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Test::Unit -- multiple errors in test method ???

Michael Campbell

9/15/2003 2:37:00 PM

> I've looked at the way JUNIT in Java does the same thing,
> and there I got *all* errors reported. That seems much more useful
> to mee.

Not in any Junit *I've* ever used.


public void testTest() throws Exception {
assertEquals(2, 1 + 1);
assertEquals(5, 2 + 2);
assertEquals(7, 2 + 5);
assertEquals(8, 3 + 4);
}

C:\j2sdk1.4.2\bin\javaw.exe -classpath ...

.F
Time: 0
There was 1 failure:
1)
testTest(com....)junit.framework.AssertionFailedError: expected:<5>
but was:<4>
at com. ... .java:51)



__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder...

1 Answer

Johan Holmberg

9/15/2003 3:33:00 PM

0