Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changeset 643

Show
Ignore:
Timestamp:
08/28/10 20:23:36 (14 years ago)
Author:
braddr
Message:

fix assert due to line number changes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/test/runnable/testhtml2.html

    r642 r643  
    1313        return 0; 
    1414    } 
    1515    assert(-1, "b"); 
    1616    return 1; 
    1717} 
    1818 
    1919/* 
    2020 * @WARNING@ this code depends on the phobos implementation. 
    2121 * char[]s returned by wrong assertions have to look like: 
    2222 *   "blah blah (linenumber) blah blah" 
    2323 */ 
    2424void checkLineNumber(Object o){ 
    2525    string x=o.toString(); 
    2626 
    2727    int start; 
    2828    for(start=0; start<x.length; start++){if(x[start]=='('){break;}} 
    2929 
    3030    int end; 
    3131    for(end=start+1; end<x.length; end++){if(x[end]==')'){break;}} 
    3232 
    33     assert(end-start==2); 
    34     assert(x[start+1 .. end]=="9", x[start+1 .. end]); 
     33    assert(end-start==3); 
     34    assert(x[start+1 .. end]=="10", x[start+1 .. end]); 
    3535} 
    3636    </CODE></pre></body> 
    3737</html>