Added ordering of system path completion entries
This commit is contained in:
parent
8619099756
commit
00ae628443
@ -87,15 +87,17 @@ def IncludeCompletion_test():
|
|||||||
|
|
||||||
def SystemPathCompletion_test():
|
def SystemPathCompletion_test():
|
||||||
request_data[ 'line_value' ] = 'const char* c = "./'
|
request_data[ 'line_value' ] = 'const char* c = "./'
|
||||||
data = GetCompletionData( request_data )
|
# Order of system path completion entries may differ
|
||||||
|
# on different systems
|
||||||
|
data = sorted( GetCompletionData( request_data ) )
|
||||||
eq_( [
|
eq_( [
|
||||||
|
( 'include', '[Dir]' ),
|
||||||
( 'test.cpp', '[File]' ),
|
( 'test.cpp', '[File]' ),
|
||||||
( 'test.hpp', '[File]' ),
|
( 'test.hpp', '[File]' ),
|
||||||
( 'include', '[Dir]' ),
|
|
||||||
], data )
|
], data )
|
||||||
|
|
||||||
request_data[ 'line_value' ] = 'const char* c = "./include/'
|
request_data[ 'line_value' ] = 'const char* c = "./include/'
|
||||||
data = GetCompletionData( request_data )
|
data = sorted( GetCompletionData( request_data ) )
|
||||||
eq_( [
|
eq_( [
|
||||||
( 'Qt', '[Dir]' ),
|
( 'Qt', '[Dir]' ),
|
||||||
( 'QtGui', '[Dir]' ),
|
( 'QtGui', '[Dir]' ),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user