Changeset 174455 in webkit for trunk/Source/JavaScriptCore/testRegExp.cpp
- Timestamp:
- Oct 8, 2014, 9:18:03 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/testRegExp.cpp
r173949 r174455 207 207 if (outVector.size() != regExpTest->expectVector.size()) { 208 208 result = false; 209 if (verbose) 210 printf("Line %d: output vector size mismatch - expected %lu got %lu\n", lineNumber, regExpTest->expectVector.size(), outVector.size()); 209 if (verbose) { 210 #if OS(WINDOWS) 211 printf("Line %d: output vector size mismatch - expected %Iu got %Iu\n", lineNumber, regExpTest->expectVector.size(), outVector.size()); 212 #else 213 printf("Line %d: output vector size mismatch - expected %zu got %zu\n", lineNumber, regExpTest->expectVector.size(), outVector.size()); 214 #endif 215 } 211 216 } else if (outVector.size() % 2) { 212 217 result = false; 213 if (verbose) 214 printf("Line %d: output vector size is odd (%lu), should be even\n", lineNumber, outVector.size()); 218 if (verbose) { 219 #if OS(WINDOWS) 220 printf("Line %d: output vector size is odd (%Iu), should be even\n", lineNumber, outVector.size()); 221 #else 222 printf("Line %d: output vector size is odd (%zu), should be even\n", lineNumber, outVector.size()); 223 #endif 224 } 215 225 } else { 216 226 // Check in pairs since the first value of the pair could be -1 in which case the second doesn't matter. … … 220 230 if (outVector[startIndex] != regExpTest->expectVector[startIndex]) { 221 231 result = false; 222 if (verbose) 223 printf("Line %d: output vector mismatch at index %lu - expected %d got %d\n", lineNumber, startIndex, regExpTest->expectVector[startIndex], outVector[startIndex]); 232 if (verbose) { 233 #if OS(WINDOWS) 234 printf("Line %d: output vector mismatch at index %Iu - expected %d got %d\n", lineNumber, startIndex, regExpTest->expectVector[startIndex], outVector[startIndex]); 235 #else 236 printf("Line %d: output vector mismatch at index %zu - expected %d got %d\n", lineNumber, startIndex, regExpTest->expectVector[startIndex], outVector[startIndex]); 237 #endif 238 } 224 239 } 225 240 if ((i > 0) && (regExpTest->expectVector[startIndex] != -1) && (outVector[startIndex+1] != regExpTest->expectVector[startIndex+1])) { 226 241 result = false; 227 if (verbose) 228 printf("Line %d: output vector mismatch at index %lu - expected %d got %d\n", lineNumber, startIndex+1, regExpTest->expectVector[startIndex+1], outVector[startIndex+1]); 242 if (verbose) { 243 #if OS(WINDOWS) 244 printf("Line %d: output vector mismatch at index %Iu - expected %d got %d\n", lineNumber, startIndex + 1, regExpTest->expectVector[startIndex + 1], outVector[startIndex + 1]); 245 #else 246 printf("Line %d: output vector mismatch at index %zu - expected %d got %d\n", lineNumber, startIndex + 1, regExpTest->expectVector[startIndex + 1], outVector[startIndex + 1]); 247 #endif 248 } 229 249 } 230 250 }
Note:
See TracChangeset
for help on using the changeset viewer.