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 )