One more test case for RatioUtilizationTieBreak
This commit is contained in:
parent
fedfcb8e44
commit
7627f87756
@ -162,6 +162,15 @@ TEST_F( CompleterTest, RatioUtilizationTieBreak )
|
|||||||
EXPECT_THAT( ToStringVector( results ),
|
EXPECT_THAT( ToStringVector( results ),
|
||||||
ElementsAre( "FooBarQux",
|
ElementsAre( "FooBarQux",
|
||||||
"FooBarQuxZaa" ) );
|
"FooBarQuxZaa" ) );
|
||||||
|
|
||||||
|
Pylist results2;
|
||||||
|
Completer( Candidates(
|
||||||
|
"FooBar",
|
||||||
|
"FooBarRux" ) ).GetCandidatesForQuery( "fba", results2 );
|
||||||
|
|
||||||
|
EXPECT_THAT( ToStringVector( results2 ),
|
||||||
|
ElementsAre( "FooBar",
|
||||||
|
"FooBarRux" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F( CompleterTest, QueryPrefixOfCandidateWins )
|
TEST_F( CompleterTest, QueryPrefixOfCandidateWins )
|
||||||
|
Loading…
Reference in New Issue
Block a user