From 7627f877560120dc1c82a450f3eed8ac5c4f7df7 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Sun, 29 Apr 2012 13:44:11 -0700 Subject: [PATCH] One more test case for RatioUtilizationTieBreak --- cpp/tests/Completer_test.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cpp/tests/Completer_test.cpp b/cpp/tests/Completer_test.cpp index ffecfaad..b9d9cb7a 100644 --- a/cpp/tests/Completer_test.cpp +++ b/cpp/tests/Completer_test.cpp @@ -162,6 +162,15 @@ TEST_F( CompleterTest, RatioUtilizationTieBreak ) EXPECT_THAT( ToStringVector( results ), ElementsAre( "FooBarQux", "FooBarQuxZaa" ) ); + + Pylist results2; + Completer( Candidates( + "FooBar", + "FooBarRux" ) ).GetCandidatesForQuery( "fba", results2 ); + + EXPECT_THAT( ToStringVector( results2 ), + ElementsAre( "FooBar", + "FooBarRux" ) ); } TEST_F( CompleterTest, QueryPrefixOfCandidateWins )