Show
Ignore:
Timestamp:
08/27/10 02:50:21 (1 year ago)
Author:
Abscissa
Message:

(NB) deferAssertTest: Works now.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/semitwist/util/deferAssert.d

    r134 r146  
    6262    Exception e = cast(Exception)thrown; 
    6363    if(e) 
    64         write(thrown); 
     64        writeln(thrown); 
    6565    else 
    6666        writefln("Object: type '%s': %s", thrown.classinfo.name, thrown); 
     
    112112    Exception e = cast(Exception)thrown; 
    113113    if(e) 
    114         write(thrown); 
     114        writeln(thrown); 
    115115    else 
    116116        writefln("Object: type '%s': %s", thrown.classinfo.name, thrown); 
     
    144144               file, line, msg=="" ? "" : ": " ~ msg, 
    145145               stmtStr, TExpected.classinfo.name, actualType); 
    146         Exception e = cast(Exception)thrown; 
     146        Throwable e = cast(Exception)thrown; 
    147147        if(e) 
    148             e.writeOut( (string msg) {Stdout(msg);} ); 
     148            writeln(e); //e.writeOut( (string msg) {Stdout(msg);} ); 
    149149        else 
    150150            writefln("%s: %s", actualType, thrown);