@@ -4581,74 +4581,74 @@ TEST(CompletionTest, ListExplicitObjectOverloads) {
45814581 {
45824582 auto Result = codeComplete (testPath (TU.Filename ), Code.point (" c1" ),
45834583 Preamble.get (), Inputs, Opts);
4584- EXPECT_THAT (Result. Completions ,
4585- UnorderedElementsAre (
4586- AllOf (named (" foo1" ), signature (" (int a)" ),
4587- snippetSuffix (" (${1:int a})" )),
4588- AllOf (named (" foo2" ), signature (" (int a) const" ),
4589- snippetSuffix (" (${1:int a})" )),
4590- AllOf (named (" foo3" ), signature (" (int a)" /* const */ ),
4591- snippetSuffix (" (${1:int a})" )),
4592- AllOf (named (" foo4" ), signature (" (int a)" ),
4593- snippetSuffix (" (${1:int a})" ))));
4584+ EXPECT_THAT (
4585+ Result. Completions ,
4586+ UnorderedElementsAre ( AllOf (named (" foo1" ), signature (" (int a)" ),
4587+ snippetSuffix (" (${1:int a})" )),
4588+ AllOf (named (" foo2" ), signature (" (int a) const" ),
4589+ snippetSuffix (" (${1:int a})" )),
4590+ AllOf (named (" foo3" ), signature (" (int a) const" ),
4591+ snippetSuffix (" (${1:int a})" )),
4592+ AllOf (named (" foo4" ), signature (" (int a)" ),
4593+ snippetSuffix (" (${1:int a})" ))));
45944594 }
45954595 {
45964596 auto Result = codeComplete (testPath (TU.Filename ), Code.point (" c2" ),
45974597 Preamble.get (), Inputs, Opts);
4598- EXPECT_THAT (Result. Completions ,
4599- UnorderedElementsAre (
4600- AllOf (named (" foo2" ), signature (" (int a) const" ),
4601- snippetSuffix (" (${1:int a})" )),
4602- AllOf (named (" foo3" ), signature (" (int a)" /* const */ ),
4603- snippetSuffix (" (${1:int a})" ))));
4598+ EXPECT_THAT (
4599+ Result. Completions ,
4600+ UnorderedElementsAre ( AllOf (named (" foo2" ), signature (" (int a) const" ),
4601+ snippetSuffix (" (${1:int a})" )),
4602+ AllOf (named (" foo3" ), signature (" (int a) const" ),
4603+ snippetSuffix (" (${1:int a})" ))));
46044604 }
46054605 {
46064606 auto Result = codeComplete (testPath (TU.Filename ), Code.point (" c3" ),
46074607 Preamble.get (), Inputs, Opts);
4608- EXPECT_THAT (Result. Completions ,
4609- UnorderedElementsAre (
4610- AllOf (named (" foo2" ), signature (" (int a) const" ),
4611- snippetSuffix (" (${1:int a})" )),
4612- AllOf (named (" foo3" ), signature (" (int a)" /* const */ ),
4613- snippetSuffix (" (${1:int a})" ))));
4608+ EXPECT_THAT (
4609+ Result. Completions ,
4610+ UnorderedElementsAre ( AllOf (named (" foo2" ), signature (" (int a) const" ),
4611+ snippetSuffix (" (${1:int a})" )),
4612+ AllOf (named (" foo3" ), signature (" (int a) const" ),
4613+ snippetSuffix (" (${1:int a})" ))));
46144614 }
46154615 {
46164616 auto Result = codeComplete (testPath (TU.Filename ), Code.point (" c4" ),
46174617 Preamble.get (), Inputs, Opts);
4618- EXPECT_THAT (Result. Completions ,
4619- UnorderedElementsAre (
4620- AllOf (named (" foo1" ), signature (" (int a)" ),
4621- snippetSuffix (" (${1:int a})" )),
4622- AllOf (named (" foo2" ), signature (" (int a) const" ),
4623- snippetSuffix (" (${1:int a})" )),
4624- AllOf (named (" foo3" ), signature (" (int a)" /* const */ ),
4625- snippetSuffix (" (${1:int a})" )),
4626- AllOf (named (" foo4" ), signature (" (int a)" ),
4627- snippetSuffix (" (${1:int a})" ))));
4618+ EXPECT_THAT (
4619+ Result. Completions ,
4620+ UnorderedElementsAre ( AllOf (named (" foo1" ), signature (" (int a)" ),
4621+ snippetSuffix (" (${1:int a})" )),
4622+ AllOf (named (" foo2" ), signature (" (int a) const" ),
4623+ snippetSuffix (" (${1:int a})" )),
4624+ AllOf (named (" foo3" ), signature (" (int a) const" ),
4625+ snippetSuffix (" (${1:int a})" )),
4626+ AllOf (named (" foo4" ), signature (" (int a)" ),
4627+ snippetSuffix (" (${1:int a})" ))));
46284628 }
46294629 {
46304630 auto Result = codeComplete (testPath (TU.Filename ), Code.point (" c5" ),
46314631 Preamble.get (), Inputs, Opts);
4632- EXPECT_THAT (Result. Completions ,
4633- UnorderedElementsAre (
4634- AllOf (named (" foo1" ), signature (" (int a)" ),
4635- snippetSuffix (" (${1:int a})" )),
4636- AllOf (named (" foo2" ), signature (" (int a) const" ),
4637- snippetSuffix (" (${1:int a})" )),
4638- AllOf (named (" foo3" ), signature (" (int a)" /* const */ ),
4639- snippetSuffix (" (${1:int a})" )),
4640- AllOf (named (" foo4" ), signature (" (int a)" ),
4641- snippetSuffix (" (${1:int a})" ))));
4632+ EXPECT_THAT (
4633+ Result. Completions ,
4634+ UnorderedElementsAre ( AllOf (named (" foo1" ), signature (" (int a)" ),
4635+ snippetSuffix (" (${1:int a})" )),
4636+ AllOf (named (" foo2" ), signature (" (int a) const" ),
4637+ snippetSuffix (" (${1:int a})" )),
4638+ AllOf (named (" foo3" ), signature (" (int a) const" ),
4639+ snippetSuffix (" (${1:int a})" )),
4640+ AllOf (named (" foo4" ), signature (" (int a)" ),
4641+ snippetSuffix (" (${1:int a})" ))));
46424642 }
46434643 {
46444644 auto Result = codeComplete (testPath (TU.Filename ), Code.point (" c6" ),
46454645 Preamble.get (), Inputs, Opts);
4646- EXPECT_THAT (Result. Completions ,
4647- UnorderedElementsAre (
4648- AllOf (named (" foo2" ), signature (" (int a) const" ),
4649- snippetSuffix (" (${1:int a})" )),
4650- AllOf (named (" foo3" ), signature (" (int a)" /* const */ ),
4651- snippetSuffix (" (${1:int a})" ))));
4646+ EXPECT_THAT (
4647+ Result. Completions ,
4648+ UnorderedElementsAre ( AllOf (named (" foo2" ), signature (" (int a) const" ),
4649+ snippetSuffix (" (${1:int a})" )),
4650+ AllOf (named (" foo3" ), signature (" (int a) const" ),
4651+ snippetSuffix (" (${1:int a})" ))));
46524652 }
46534653}
46544654
0 commit comments