diff run/line_token_04.d @ 435:ec6d35cccfb5

pre dmd-0.121 review Walter <walter@digitalmars.com> 2005-04-15 mail:000e01c54203$22c0e850$0200a8c0@colossus
author thomask
date Sat, 16 Apr 2005 08:18:57 +0000
parents f87ba6507260
children 9a121126b077
line wrap: on
line diff
--- a/run/line_token_04.d	Fri Apr 15 22:54:15 2005 +0000
+++ b/run/line_token_04.d	Sat Apr 16 08:18:57 2005 +0000
@@ -19,24 +19,17 @@
 /*
  * @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(123) blah blah"
  */
 void checkFileSpec(Object o){
 	char[] string=o.toString();
 
 	int start;
 	for(start=0; start<string.length; start++){
-		if(string[start]=='"'){
+		if(string[start]=='('){
 			break;
 		}
 	}
 
-	int end;
-	for(end=start+1; end<string.length; end++){
-		if(string[end]=='"'){
-			break;
-		}
-	}
-
-	assert(string[start .. end]=="\"a");                           
+	assert(string[start-2 .. start+3]==" a(0)");                           
 }