1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-28 19:35:36 +02:00

Bug 495095 - Fix a bug in the test suite where the test passes if there are no actual guesses

Change-Id: Ie8a4a2019a6f50e82b1e78f39bcbfa778951ebb6
This commit is contained in:
Nathan Ridge 2016-06-01 02:30:04 -04:00
parent efdd3c7986
commit 937113fe3a

View file

@ -227,8 +227,8 @@ public abstract class AbstractContentAssistTest extends BaseUITestCase {
String[][] expectedGuesses = expected.get(proposal); String[][] expectedGuesses = expected.get(proposal);
String exp = ""; String exp = "";
String guess = ""; String guess = "";
int minLength = expectedGuesses.length < result.length ? expectedGuesses.length : result.length; assertEquals(expectedGuesses.length, result.length);
for (int i = 0; i < minLength; i++) { for (int i = 0; i < result.length; i++) {
String[] tmp = expectedGuesses[i]; String[] tmp = expectedGuesses[i];
Arrays.sort(tmp); Arrays.sort(tmp);
exp += toString(tmp) + "\n"; exp += toString(tmp) + "\n";