Skip to content

Commit

Permalink
fix: Fix can't match array of numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
tienvx committed Sep 6, 2024
1 parent effa4c7 commit 5d38945
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rust/pact_matching/src/matchingrules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ impl <T: Debug + Display + PartialEq + Clone> Matches<&[T]> for &[T] {
MatchingRule::EachKey(_) => Ok(()),
MatchingRule::EachValue(_) => Ok(()),
MatchingRule::Values => Ok(()),
MatchingRule::Number | MatchingRule::Decimal | MatchingRule::Integer => Ok(()),
_ => Err(anyhow!("Unable to match {} using {:?}", self.for_mismatch(), matcher))
};
debug!("Comparing '{:?}' to '{:?}' using {:?} -> {:?}", self, actual, matcher, result);
Expand Down

0 comments on commit 5d38945

Please sign in to comment.