Nice/testsuite/compiler/designByContract assert.testsuite,1.6,1.7
Artem Gr Kozarezov <[email protected]> Mon, 11 Apr 2005 13:56:15 +0000
| Newsgroups | gmane.comp.lang.nice.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/nice/Nice/testsuite/compiler/designByContract
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31056/testsuite/compiler/designByContract
Modified Files:
assert.testsuite
Log Message:
Made assertions Object message to be JDK1.3 compatible.
Index: assert.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/designByContract/assert.testsuite,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** assert.testsuite 9 Apr 2005 20:59:12 -0000 1.6
--- assert.testsuite 11 Apr 2005 13:56:12 -0000 1.7
***************
*** 108,119 ****
toString() = "bar";
}
-
- /// PASS
- // if the message is Throwable, it should become a "cause" (as in java.lang.AssertionError).
- let cause = new Exception("bar");
- try{
- !assert 0 == 1 : cause;
- throw new Exception( "AssertionFailed not thrown." );
- }catch(AssertionFailed ok){
- !assert ok.getCause() == cause;
- }
--- 108,109 ----
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click