Mercurial > projects > dstress
comparison run/line_token_04.d @ 1560:36bedfa079e6
D1 -> D2 : 2/N
author | thomask |
---|---|
date | Sun, 19 Aug 2007 19:15:01 +0000 |
parents | 9a121126b077 |
children |
comparison
equal
deleted
inserted
replaced
1559:ec5e144583ea | 1560:36bedfa079e6 |
---|---|
22 * @WARNING@: this code depends on the phobos implementation. | 22 * @WARNING@: this code depends on the phobos implementation. |
23 * char[]s returned by wrong assertions have to look like: | 23 * char[]s returned by wrong assertions have to look like: |
24 * "blah blah filename(123) blah blah" | 24 * "blah blah filename(123) blah blah" |
25 */ | 25 */ |
26 void checkFileSpec(Object o){ | 26 void checkFileSpec(Object o){ |
27 char[] string=o.toString(); | 27 string x=o.toString(); |
28 | 28 |
29 int start; | 29 int start; |
30 for(start=0; start<string.length; start++){ | 30 for(start=0; start<x.length; start++){ |
31 if(string[start]=='('){ | 31 if(x[start]=='('){ |
32 break; | 32 break; |
33 } | 33 } |
34 } | 34 } |
35 | 35 |
36 assert(string[start-2 .. start+3]==" a(0)"); | 36 assert(x[start-2 .. start+3]==" a(0)"); |
37 } | 37 } |