@@ -1021,41 +1021,41 @@ func (suite *IntegrationTestSuite) TestVerifierCompareIndexSpecs() {
10211021 },
10221022
10231023 {
1024- label : "simple deep " ,
1024+ label : "ignore `ns` field " ,
10251025 src : bson.D {
10261026 {"name" , "testIndex" },
1027- {"key" , bson.M {"$foo.bar" : 123 }},
1027+ {"key" , bson.M {"foo" : 123 }},
1028+ {"ns" , "foo.bar" },
10281029 },
10291030 dst : bson.D {
10301031 {"name" , "testIndex" },
1031- {"key" , bson.M {"$ foo.bar " : 123 }},
1032+ {"key" , bson.M {"foo" : 123 }},
10321033 },
10331034 shouldMatch : true ,
10341035 },
10351036
10361037 {
1037- label : "ignore `ns` field " ,
1038+ label : "ignore number types " ,
10381039 src : bson.D {
10391040 {"name" , "testIndex" },
10401041 {"key" , bson.M {"foo" : 123 }},
1041- {"ns" , "foo.bar" },
10421042 },
10431043 dst : bson.D {
10441044 {"name" , "testIndex" },
1045- {"key" , bson.M {"foo" : 123 }},
1045+ {"key" , bson.M {"foo" : float64 ( 123 ) }},
10461046 },
10471047 shouldMatch : true ,
10481048 },
10491049
10501050 {
1051- label : "ignore number types" ,
1051+ label : "ignore number types, deep " ,
10521052 src : bson.D {
10531053 {"name" , "testIndex" },
1054- {"key" , bson.M {"foo" : 123 }},
1054+ {"key" , bson.M {"foo.bar " : float64 ( 123 ) }},
10551055 },
10561056 dst : bson.D {
10571057 {"name" , "testIndex" },
1058- {"key" , bson.M {"foo" : float64 ( 123 ) }},
1058+ {"key" , bson.M {"foo.bar " : 123 }},
10591059 },
10601060 shouldMatch : true ,
10611061 },
0 commit comments