equal
deleted
inserted
replaced
449 String fileString = readOutputFile(path); |
449 String fileString = readOutputFile(path); |
450 int prevIndex = -1; |
450 int prevIndex = -1; |
451 for (String s : strings) { |
451 for (String s : strings) { |
452 int currentIndex = fileString.indexOf(s); |
452 int currentIndex = fileString.indexOf(s); |
453 checking(s + " at index " + currentIndex); |
453 checking(s + " at index " + currentIndex); |
454 if (currentIndex >= prevIndex) { |
454 if (currentIndex == -1) { |
455 passed(s + "is in the correct order"); |
455 failed(s + " not found."); |
|
456 continue; |
|
457 } |
|
458 if (currentIndex > prevIndex) { |
|
459 passed(s + " is in the correct order"); |
456 } else { |
460 } else { |
457 failed(s + " is in the wrong order."); |
461 failed(s + " is in the wrong order."); |
458 } |
462 } |
459 prevIndex = currentIndex; |
463 prevIndex = currentIndex; |
460 } |
464 } |