@@ -567,7 +567,7 @@ fn object_matching_test() {
567567 MatchingRule :: EachKey ( MatchingRuleDefinition :: new( "key1" . to_string( ) , ValueType :: String ,
568568 MatchingRule :: Regex ( "[a-z]{3}[0-9]" . to_string( ) ) , None ) ) ,
569569 MatchingRule :: EachValue ( MatchingRuleDefinition :: new( "\" value1\" " . to_string( ) ,
570- ValueType :: Unknown , MatchingRule :: Type , None ) )
570+ ValueType :: String , MatchingRule :: Type , None ) )
571571 ]
572572 } , rules) ;
573573}
@@ -786,7 +786,7 @@ fn each_value_is_pattern() {
786786 matchable. extract_matching_rules ( DocPath :: root ( ) , & mut rules) ;
787787 expect ! ( rules) . to ( be_equal_to ( matchingrules_list ! {
788788 "body" ; "$" => [
789- MatchingRule :: EachValue ( MatchingRuleDefinition :: new( "100" . to_string( ) , ValueType :: String ,
789+ MatchingRule :: EachValue ( MatchingRuleDefinition :: new( "\" 100\" " . to_string( ) , ValueType :: String ,
790790 MatchingRule :: Regex ( "\\ d+" . to_string( ) ) , None ) )
791791 ]
792792 } ) ) ;
@@ -820,7 +820,7 @@ fn each_value_test() {
820820 result. extract_matching_rules ( DocPath :: root ( ) , & mut rules) ;
821821 expect ! ( rules) . to ( be_equal_to ( matchingrules_list ! {
822822 "body" ; "$" => [
823- MatchingRule :: EachValue ( MatchingRuleDefinition :: new( "value1" . to_string( ) , ValueType :: Unknown ,
823+ MatchingRule :: EachValue ( MatchingRuleDefinition :: new( "\" value1\" " . to_string( ) , ValueType :: String ,
824824 MatchingRule :: Regex ( "[a-z]{5}[0-9]" . to_string( ) ) , None ) )
825825 ]
826826 } ) ) ;
0 commit comments