Skip to content

Commit

Permalink
fix(sequencing): replace vectors with arrays as test function inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
guy-starkware committed Dec 15, 2024
1 parent 723bf96 commit b1c33f0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ mod tests {
}

// Check if two vectors are the same, regardless of ordering
fn do_vecs_match_unordered<T: PartialEq + Ord + Clone>(a: &Vec<T>, b: &Vec<T>) -> bool
fn do_vecs_match_unordered<T: PartialEq + Ord + Clone>(a: &[T], b: &[T]) -> bool
where
T: std::hash::Hash + Eq,
{
let mut a = a.clone();
let mut a = a.to_owned();
a.sort();
let mut b = b.clone();
let mut b = b.to_owned();
b.sort();
a == b
}
Expand Down

0 comments on commit b1c33f0

Please sign in to comment.