forked from qt-creator/qt-creator
This particular test was apparently supposed to check that the two occurrences of "foo" (one const, one non-const) appear next to each other in the list of completions. However, there is only one occurrence of "foo" and the test only succeeded because it happens to be at index 0 and -1 is returned for the second lookup, resulting in a absolute difference of 1. So let's explicitly check for that instead. Change-Id: I6049689911decc114239f2be7e63b091a4a18226 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
27 KiB
27 KiB