@@ -5353,6 +5353,12 @@ TEST(Parser_NestedMixedDictionaryList)
53535353 list_george.add (2 );
53545354 list_george.add (3 );
53555355
5356+ Obj ringo = persons->create_object_with_primary_key (" Ringo" );
5357+ ringo.set (col_self, ringo.get_key ());
5358+ ringo.set_collection (col, CollectionType::Dictionary);
5359+ auto dict_ringo = ringo.get_dictionary (col);
5360+ dict_ringo.insert (" Foo" , " Bar" );
5361+
53565362 auto q = persons->column <Mixed>(col).path ({" instruments" , 0 , " strings" }) == 6 ;
53575363 CHECK_EQUAL (q.count (), 1 );
53585364
@@ -5369,15 +5375,16 @@ TEST(Parser_NestedMixedDictionaryList)
53695375 verify_query (test_context, persons, " properties[*] == {3, 2, 1}" , 0 );
53705376 verify_query (test_context, persons, " properties[*] == {1, 2, 3}" , 1 );
53715377 verify_query (test_context, persons, " ANY properties[*] == 2" , 1 );
5372- verify_query (test_context, persons, " NONE properties[*] == 2" , 2 );
5378+ verify_query (test_context, persons, " NONE properties[*] == 2" , 3 );
53735379 verify_query (test_context, persons, " properties.@keys == 'instruments'" , 2 );
53745380 verify_query (test_context, persons, " properties.@keys == 'pets'" , 2 );
53755381 verify_query (test_context, persons, " properties.@keys == 'tickets'" , 1 );
53765382 verify_query (test_context, persons, " properties.@size == 3" , 2 );
53775383 verify_query (test_context, persons, " properties.instruments.@size == 2" , 1 );
5378- verify_query (test_context, persons, " properties.@type == 'object'" , 2 );
5384+ verify_query (test_context, persons, " properties.@type == 'object'" , 3 );
53795385 verify_query (test_context, persons, " properties.@type == 'array'" , 1 );
5380- verify_query (test_context, persons, " properties.@type == 'collection'" , 3 );
5386+ verify_query (test_context, persons, " properties.@type == 'collection'" , 4 );
5387+ verify_query (test_context, persons, " properties.Foo == 'Bar'" , 1 );
53815388}
53825389
53835390TEST (Parser_NestedDictionaryDeep)
0 commit comments