One more test case for RatioUtilizationTieBreak

This commit is contained in:
Strahinja Val Markovic 2012-04-29 13:44:11 -07:00
parent fedfcb8e44
commit 7627f87756

View File

@ -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 )