Mercurial > projects > dstress
diff run/line_token_04.d @ 70:5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
2) updated todo
author | thomask |
---|---|
date | Sat, 23 Oct 2004 22:47:47 +0000 |
parents | 4e88d22c699a |
children | f87ba6507260 |
line wrap: on
line diff
--- a/run/line_token_04.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/line_token_04.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,23 +1,21 @@ +module dstress.run.line_token_04; + int main(){ try{ #line 0 "a" assert(0); - }catch(Exception e){ - checkFileSpec(e); - return 0; - }catch(Error e){ - checkFileSpec(e); + }catch(Object o){ + checkFileSpec(o); return 0; } - assert(-1); - return 1; + assert(0); } /* * @WARNING@: this code depends on the phobos implementation. * char[]s returned by wrong assertions have to look like: - * "blah blah "filename" blah blah" + * "blah blah \"filename\" blah blah" */ void checkFileSpec(Object o){ char[] string=o.toString(); @@ -36,7 +34,5 @@ } } - assert(end<string.length); - assert(end-start==2); - assert(string[start+1]=='a'); + assert(string[start .. end]=="\"a"); }